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

READ_TEXT Function Module in SAP ABAP

 Use of FM 'READ_TEXT' to read the various text objects not only in sale order, any document in SAP. 

The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.

CALL FUNCTION 'READ_TEXT' 
EXPORTING 
ID = '0001' 
LANGUAGE = 'E' 
NAME = TDNAME
OBJECT = 'VBBK' 
HEADER = HTEXT
TABLES
LINES = LTEXT
EXCEPTIONS 
ID = 1 
LANGUAGE = 2 
NAME = 3 
NOT_FOUND = 4 
OBJECT = 5 
REFERENCE_CHECK = 6.
 

 

Comments

Popular posts from this blog

New commodity code create in SAP S/4 Hana

Convert First character to Upper case in SAP ABAP