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

SAPscript text file editor

Former Member
0 Likes
939

Hi,

I have a scenario wherein I need to read and capture the complete text that is saved through the SAPscript text file editor pop-up screen.

I observe that the data entered through the SAPscript text file editor is saved in table STXL in the field CLUSTD (with length 7902) whose header table is STXH. I've used READ_TEXT function module to read the data. Although the data is being read, this function module limits the read to 132 characters only, whereas, my requirement needs the complete text to be read in order to download the text in an excel file for further processing.

Can anyone please explain if there is a possible way of reading the complete text saved through the SAPscript text file editor?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
691

HI,

The 'READ_TEXT' FM returns multiple lines for long text. You will have to loop on the LINES (table parameter of this FM) and read the complete text.

Regards,

Pranav.

3 REPLIES 3
Read only

Former Member
0 Likes
692

HI,

The 'READ_TEXT' FM returns multiple lines for long text. You will have to loop on the LINES (table parameter of this FM) and read the complete text.

Regards,

Pranav.

Read only

Former Member
0 Likes
691

HI,

The function module READ_TEXT will read the text and it can be found in LINES table as multiple line items.

If you want all the line items continuously then just loop over the internal table of lines and concatenate the text.

Regards,

-Sandeep

Read only

Former Member
0 Likes
691

Hi,

thanks & regards.