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

problem in reading BOM text

Former Member
0 Likes
707

Hi Experts,

I am facing the problem in the reading BOM text.

I am using the FM read_text
and getting 40 character for each line…I am appending 40 character same
as of getting from CS03 to internal table and displaying.

But in the change editor of the CS03 characters are 64
character, but in internal table I am getting 40 character line. My user want
the text to be displayed each 64 character line in the final output. How can I get
the change editor text(64 character) in the internal table or how can I concatenate
40 lines to 64 lines and same next.

Regards,

udupi

3 REPLIES 3
Read only

Former Member
0 Likes
624

Hi,

You can try the following :

First using your read text FM concatenate the text into a character field of length 1024.

then pass this text into FM TR_SPLIT_TEXT with line length as 64 as one of the input parameters.

This FM will return your text with 64 chars per line.

regards,

Neil.

Read only

0 Likes
624

But my problem in internal table i will get 3 to 4 separate paragraph, but in the SAP Script change editor 2 paragraph is there... i am not able to to distingbuish bwtween paragraph.... there is any method can we pull the 64 character SAP Script editor from READ_TEXT?

Read only

0 Likes
624

What you see displayed in the BOM is how it is rendered by the editor in display mode.As you may be aware the actual text is stored in tables STXH/STXT.When using read_text it retrieves the text from these tables but will not render it the same as the screen display.

So i dont think you will be able to retrieve it and display it exactly as you see in online mode.