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

INITCAP- First letter of the word Capital in SAP ABAP

BAPI to Change STO PO/ PO Delivery date in SAP