Go Back   Wiki NewForum | Latest Entertainment News > Career Forum & Tips > Tech Forum & Tutorial > SAP Forum > SAP ABAP HR Forum


Use FM READ_TEXT to Read the Various Text


Reply
Views: 1542  
Thread Tools Rate Thread
  #1  
Old 05-22-2009, 06:19 AM
bholus7
Guest
 
Posts: n/a
Default 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.

Reply With Quote
Reply

New topics in SAP ABAP HR Forum





Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
WikiNewForum)