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

The function

Former Member
0 Likes
760

For what purpose this function is used?

CALL FUNCTION 'READ_TEXT'

EXPORTING

ID = 'VALU'

LANGUAGE = sy-langu

NAME = tdname

OBJECT = 'FEATURE'

TABLES

LINES = lines

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

NOT_FOUND = 4

OBJECT = 5

REFERENCE_CHECK = 6

WRONG_ACCESS_TO_ARCHIVE = 7

OTHERS = 8.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
733

All the texts within SAP are stored in the STXH/STXL table and the identification of the text is the transaction document and the text id of the text ( to support multiple texts per transaction document). Couple of days earlier LJN had mentioned the steps to get the name and text id. (double click on the text and then go to header info ).

You use FM READ_TEXT to read the information as this stable stores the information in the RAW format.

CALL FUNCTION 'READ_TEXT'

EXPORTING

  • CLIENT = SY-MANDT

id =

language =

name =

object =

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

tables

lines =

  • EXCEPTIONS

  • ID = 1

  • LANGUAGE = 2

  • NAME = 3

  • NOT_FOUND = 4

  • OBJECT = 5

  • REFERENCE_CHECK = 6

  • WRONG_ACCESS_TO_ARCHIVE = 7

  • OTHERS = 8

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

SAPscript: Read text

In order to process text modules in application programs, all

information about a text module must be transferred to internal work

areas.

A text is read from the text file or text memory with this function

module. It must be described fully by specifying OBJECT, NAME, ID, and

LANGUAGE. Generic entries in these parameters are not valid.

When header information and text lines have been read successfully, they

are transferred to the work areas HEADER and LINES.

6 REPLIES 6
Read only

Former Member
0 Likes
733

Hi,

In order to process text modules in application programs, all information about a text module must be transferred to internal work areas.

A text is read from the text file or text memory with this function module. It must be described fully by specifying OBJECT, NAME, ID, and LANGUAGE. Generic entries in these parameters are not valid.

When header information and text lines have been read successfully, they are transferred to the work areas HEADER and LINES.

Thanks.

Read only

Former Member
0 Likes
734

All the texts within SAP are stored in the STXH/STXL table and the identification of the text is the transaction document and the text id of the text ( to support multiple texts per transaction document). Couple of days earlier LJN had mentioned the steps to get the name and text id. (double click on the text and then go to header info ).

You use FM READ_TEXT to read the information as this stable stores the information in the RAW format.

CALL FUNCTION 'READ_TEXT'

EXPORTING

  • CLIENT = SY-MANDT

id =

language =

name =

object =

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

tables

lines =

  • EXCEPTIONS

  • ID = 1

  • LANGUAGE = 2

  • NAME = 3

  • NOT_FOUND = 4

  • OBJECT = 5

  • REFERENCE_CHECK = 6

  • WRONG_ACCESS_TO_ARCHIVE = 7

  • OTHERS = 8

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

SAPscript: Read text

In order to process text modules in application programs, all

information about a text module must be transferred to internal work

areas.

A text is read from the text file or text memory with this function

module. It must be described fully by specifying OBJECT, NAME, ID, and

LANGUAGE. Generic entries in these parameters are not valid.

When header information and text lines have been read successfully, they

are transferred to the work areas HEADER and LINES.

Read only

former_member196280
Active Contributor
0 Likes
733

It is mainly used to read the header text/ long text...

For example , goto VF03 and give billing doc num and enter...

from menu goto--> header --> header text ( if you want to display this text you need to use this function module)

Reward points to all useful answers.

Regards,

SaiRam

Read only

Former Member
0 Likes
733

<b>READ_TEXT.</b>

Short Text

SAPscript: Read text

In order to process text modules in application programs, all information about a text module must be transferred to internal work areas.

A text is read from the text file or text memory with this function module. It must be described fully by specifying OBJECT, NAME, ID, and LANGUAGE. Generic entries in these parameters are not valid.

When header information and text lines have been read successfully, they are transferred to the work areas HEADER and LINES.

Parameters

CLIENT

ID

LANGUAGE

NAME

OBJECT

ARCHIVE_HANDLE

LOCAL_CAT

HEADER

LINES

Exceptions

ID

LANGUAGE

NAME

NOT_FOUND

OBJECT

REFERENCE_CHECK

WRONG_ACCESS_TO_ARCHIVE

Function Group

STXD

Regards,

Pavan

Read only

Former Member
0 Likes
733

go to www.se37.com

and type in the FM name and you can get the documentation.

regards,

srinivas

<b>*reward for useful answers*</b>

Read only

former_member188827
Active Contributor
0 Likes
733

read_text is used to read text(header or item text) from standard transaction.