|
Use FM READ_TEXT to Read the Various Text |
Views: 1542
|
Thread Tools | Rate Thread |
#1
|
|||
|
|||
Use FM READ_TEXT to Read the Various Text
Use FM READ_TEXT to Read the Various Text
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. data i_xtline like tline. clear i_xtline. refresh 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' EXPORTING ID = '0001' LANGUAGE = 'E' NAME = XNAME OBJECT = 'VBBP' TABLES LINES = i_XTLINE EXCEPTIONS ID = 1 LANGUAGE = 2 NAME = 3 NOT_FOUND = 4 OBJECT = 5 REFERENCE_CHECK = 6. If it is smartform or script you can include the text object directly with out using READ_TEXT FM. Similar Threads:
|