Pues bueno ya lo resolvi,
Por si a alguien le interesa use este codigo:
data:
it_usr02 type standard table of ty_usr02 ,
it_usr21 type standard table of ty_usr21 ,
it_adcp type standard table of ty_adcp ,
it_adrp type standard table of ty_adrp ,
it_lista type standard table of ty_lista ,
* Datos funcion
w_address type bapiaddr3,
it_bapiret2 type standard table of bapiret2,
w_addressx type bapiaddr3x,
t_return type standard table of bapiret2,
it_return like bapiret2 .
w_address-function = c_inact .
w_addressx-function = 'X'.
call function 'BAPI_USER_CHANGE'
exporting
username = wa_lista-bname
address = w_address
addressx = w_addressx
tables
return = t_return.
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = '2'
importing
return = it_return.
__________________
Amparo Gómez Salazar
Seguridad SAP/Programmer ABAP
|