Application Development 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: 

From where the text will fetch by using READ_TEXT function module

Former Member
0 Kudos

Hi Folks,

I need small clarification. If we are using READ_TEXT function module ..from where it is going to pink the test based on the give inputs like ID, OBJECT, NAME etc...

Thanks,

Sunil

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

text will be fetched from tables: stxh- header and stxl -detail.

2 REPLIES 2

Former Member
0 Kudos

hi,

text will be fetched from tables: stxh- header and stxl -detail.

paruchuri_nagesh
Active Contributor
0 Kudos

hi

You can process texts only if they are stored in the internal work areas of the program. Therefore, you must first transfer a text into the work areas.

To transfer the text header of a text into the specified structure and the text lines into the specified lines table, use the function module READ_TEXT.

Usually, the system reads a text from the text file. However, for texts with storage in the update task, the system first looks into the text memory to see whether it contains a currently processed version. If so, the system reads this version of the text into the work area, otherwise the text version from the text file.

To read a text version stored in the archive, use the parameter ARCHIVE_HANDLE.

If the desired text does not exist, READ_TEXT ends with the exception NOT_FOUND. The contents of the work areas for text header and text lines are then undefined. To be able to use these work areas for another text, you must first initialize them with INIT_TEXT.

The function module READ_TEXT also handles text references. It reads the reference chain to its end and supplies the text lines of this text in the lines table as well.

reward for use ful answers

regards

Nagesh.Paruchuri