Code: Alles auswählen.
report z_fullname.
data:
lr_address type bapiaddr3,
lt_return type table of bapiret2.
call function 'BAPI_USER_GET_DETAIL'
exporting
username = sy-uname
importing
address = lr_address
tables
return = lt_return.
if lt_return is initial.
write: / lr_address-fullname.
endif.