Posts

Showing posts from July, 2022

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'.        

Sum of a field in SAP ALV Report

 In sap ALV report some times we need to sum column value. We can easily doing this job just define <field catalog>-do_sum = 'X' and must define <field catalog>-fieldname = 'QUAN' / 'CUR'. example given below:       W_FIELDCAT - FIELDNAME  =  'Deviation' .   W_FIELDCAT - DO_SUM  =  'X' .   W_FIELDCAT - DATATYPE  =  'QUAN' .   W_FIELDCAT - SELTEXT_L  =  'Deviation %' .   W_FIELDCAT - TABNAME  =  'TY_TABLE' .    APPEND  W_FIELDCAT  TO  FIELDCAT .