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

SAP Script : Word Wrap

Former Member
0 Likes
1,198

In my SAP Script I am outputting Long Text which runs into

several lines in a ceratin spot in MAIN window. This is output at line item level. I have allotted a space of 40 characters to output. Each line of Long Text is 132 characters long. Is there a way to make the text wrap around i.e after it has printed 40 characters it should go to next line.

Vinay

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
688

HI,

Try usig RKD_WORD_WRAP and then use the output of this to SAP script. U can limit then number of characters per line, hence u can change from 40 to 32 length using word wrap.

3 REPLIES 3
Read only

Former Member
0 Likes
689

HI,

Try usig RKD_WORD_WRAP and then use the output of this to SAP script. U can limit then number of characters per line, hence u can change from 40 to 32 length using word wrap.

Read only

0 Likes
688

You can use &itab-vbeln(c)& where (C) accomodates the output size to fit in your length specifications.

Hope it will work.

Read only

0 Likes
688

Sharath, Atul,

Thank you both for your help. Function module "RKD_WORD_WRAP" works perfectly.

Vinay