Code: Alles auswählen.
DATA: vs_address TYPE bapiaddr3,
vt_return TYPE STANDARD TABLE OF bapiret2,
vv_persnr TYPE ad_persnum.
CALL FUNCTION 'BAPI_USER_GET_DETAIL'
EXPORTING
username = 'USER1'
IMPORTING
address = vs_address
TABLES
return = vt_return.
vv_persnr = vs_address-pers_no.