Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

text module

Former Member
0 Likes
575

Hi friends,

What is text module and

what is FM read_text

With Regards,

Sunil.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
543

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

4 REPLIES 4
Read only

Former Member
0 Likes
543

The Function Module READ_TEXT reads the standard texts into internal tables which is stored in STXH/STXL tables.

Regards,

Ravi

Read only

Former Member
0 Likes
543

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

Read only

Former Member
0 Likes
543

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

Read only

Former Member
0 Likes
544

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