‎2007 Apr 04 3:39 PM
Hi friends,
What is text module and
what is FM read_text
With Regards,
Sunil.
‎2007 Apr 04 3:49 PM
Hi,
READ_TEXT function module used to read the standard text. This text can either be create using transaction SO10 or can be text in any documents like PO header text, Sales order header text, Sales order line item text, Accounting document header text.
See this example to understand how the text is read. Here the FM is used to read the "header note" text from sales document
*----------------------------------------------------------------------*
*----------------------------------------------------------------------*
DATA: l_objname LIKE thead-tdname,
l_vbeln LIKE vbak-vbeln.
DATA: lit_textline LIKE tline OCCURS 10 WITH HEADER LINE.
*" move sales document number
l_vbeln = 'Pass Sales document number here'.
l_objname = l_vbeln.
*" Read text
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = '0001'
language = sy-langu
name = l_objname
object = 'VBBK'
TABLES
lines = lit_textline.
*----------------------------------------------------------------------*
*----------------------------------------------------------------------*Let me know if you need any other information.
Regards,
RS
‎2007 Apr 04 3:41 PM
The Function Module READ_TEXT reads the standard texts into internal tables which is stored in STXH/STXL tables.
Regards,
Ravi
‎2007 Apr 04 3:41 PM
Hi,
Standard texts are created in SO10 Transaction.
and most of the Std transactions contain Header and Item texts.
to retrive these Std texts from the Relative transactions we use the fun module READ_TEXT by passing the TEXT ID, OBJECT,NAME and LANGUAGE fields to it.
reward if useful
regards,
ANJI
‎2007 Apr 04 3:48 PM
All the long text can be retrieve using this function module.
In the real time, we use READ_TEXT functions to read the SAP long text.
E.g. Sales Order, Purchase Order Item text etc.
Example of READ_TEXT functions reading tables PBIM - Independent requirements for material.
You may want to check this sample link:
http://www.sap-basis-abap.com/sapac002.htm
SKJ
‎2007 Apr 04 3:49 PM
Hi,
READ_TEXT function module used to read the standard text. This text can either be create using transaction SO10 or can be text in any documents like PO header text, Sales order header text, Sales order line item text, Accounting document header text.
See this example to understand how the text is read. Here the FM is used to read the "header note" text from sales document
*----------------------------------------------------------------------*
*----------------------------------------------------------------------*
DATA: l_objname LIKE thead-tdname,
l_vbeln LIKE vbak-vbeln.
DATA: lit_textline LIKE tline OCCURS 10 WITH HEADER LINE.
*" move sales document number
l_vbeln = 'Pass Sales document number here'.
l_objname = l_vbeln.
*" Read text
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = '0001'
language = sy-langu
name = l_objname
object = 'VBBK'
TABLES
lines = lit_textline.
*----------------------------------------------------------------------*
*----------------------------------------------------------------------*Let me know if you need any other information.
Regards,
RS