Use FM READ_TEXT to Read the
Various Text
How write a program to read the sales order text? By : Hema Nagarajan Use FM READ_TEXT to read the various text objects not only in sale order, any document in SAP. See the following sample code. data xname like THEAD-TDNAME.
clear i_xtline.
move i_vbak-vbeln to XNAME. * The NAME & OBJECT differ from object to object. The composition of NAME and OBJECT can be found out in the text screen in the document. Double click into the Text field At the Top Menu - Click - Goto - Header
* XNAME refers to Text name CALL FUNCTION 'READ_TEXT'
If it is smartform or script you can include the text object directly with out using READ_TEXT FM.
Get help for your ABAP problems
ABAP Books
More ABAP Tips
SAP Basis, ABAP Programming and Other IMG Stuff http://www.erpgreat.com All the site contents are Copyright © www.erpgreat.com
and the content authors. All rights reserved.
|