Posts

Showing posts with the label Function Module to get user details in SAP ABAP

BAPI for material storage location Add

 We can add material storage location plant wise using third party app or web. BAPI names : BAPI_MATERIAL_MAINTAINDATA_RT Import parameters: HEADDATA: Material Tables: STORAGELOCATIONDATA: Material: Plant: STGE_LOC:   STORAGELOCATIONDATAX: Material: Plant: STGE_LOC:   use below code after completing steps. CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.        

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.