Function Module to get user details in SAP ABAP

 Based on user we need to find out user details in sap. we can use below FM to get our desire result.


FM:  'SUSR_USER_ADDRESS_READ'

     DATA: user_address LIKE  addr3_val.


    CALL FUNCTION 'SUSR_USER_ADDRESS_READ'
      EXPORTING

      IMPORTING
        user_address                 = user_address

      EXCEPTIONS
        user_address_not_found       = 1
        OTHERS                       = 2.
       write:/ user_address-name_text.
    ENDIF.

Comments

Popular posts from this blog

New commodity code create in SAP S/4 Hana

BAPI to Change STO PO/ PO Delivery date in SAP

Decimal remove in a smartforms report