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

READ_TEXT splitting lines

Former Member
0 Likes
3,200

Hi Gurus,

The standard function module for DELVRY05 Idoc structure uses READ_TEXT function module to populate text in the Delivery Idoc. I see an issue with this function module. It splits the 1st line after 72 characters with TD = " * " and other lines are allowed for 132 characters with TD = " = ". Is this an issue in the SAP standard function module?

Basically, the text in my delivery is 73 characters long, so the function module splits the text into 1st line with 72 characters and 2nd line with 1 character. The Idoc as a result has two TDLINE subsegments which makes it difficult for our 3rd Party to read this. they want the text in one segment.

Can someone explain why this is happening?

1 ACCEPTED SOLUTION
Read only

peng_wen
Product and Topic Expert
Product and Topic Expert
0 Likes
1,802

Hello,

Why the format is as what you are seeing because for each line, there

is a maxmum line width when you save it to ITF, in your case, it is 72.
This can be seen in Tcode SE75, please click change and select the corresponding
object.


Regards,
Wen Peng

4 REPLIES 4
Read only

peng_wen
Product and Topic Expert
Product and Topic Expert
0 Likes
1,803

Hello,

Why the format is as what you are seeing because for each line, there

is a maxmum line width when you save it to ITF, in your case, it is 72.
This can be seen in Tcode SE75, please click change and select the corresponding
object.


Regards,
Wen Peng

Read only

Former Member
0 Likes
1,802

Thanks for your answer. That explains the line width of 72 characters for the 1st line. But from the 2nd line, it does allow 132 characters for each line. How is that happening?

Read only

peng_wen
Product and Topic Expert
Product and Topic Expert
0 Likes
1,802

Hello,

In SO10, if you enter the text with the formatting below, the length should be 132 characters

*   12345678901234567890123456789012345678901234567890123456789012345678
=   12345678901234567890123456789012345678901234567890123456789012

OR

* 1234567890123456789012345678901234567890123456789012345678901234567890
  12345678901234567890123456789012345678901234567890123456789012

The paragraph formats '='(Extended Line) or ' '(Continuous Text) should
ensure there is no line break in the ITF format.

However, the following example will split the first line with 72 characters

*   12345678901234567890123456789012345678901234567890123456789012345678

*   12345678901234567890123456789012345678901234567890123456789012

I am not sure is it explained the behavior of yours, if not, please attach some screenshots
of the text in SAPScript editor view where we can see the exact formats and the output.

Regards,
Wen Peng

Read only

Former Member
0 Likes
1,802

For Splitting text in correct manner you can try for FM RKD_WORD_WRAP.. It Splits the character in a very good manner.Hope it will helps you.

Regards,

Ravi