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 with Word Wrap

Former Member
0 Likes
435

Hi all,

I need to display the contents of the Standard Text in the SAPscript output without breaking the words in between.If I use RKD_WORD_WRAP i need to specify the output length ..but the length may split the word in between which should not happen.What else can I try?

help by posting ur ideas.

Thanks,

stock

2 REPLIES 2
Read only

Former Member
0 Likes
395

hi,

i don't think word wrap is going to split the word, it will atke up teh next sentence. Pass 'N' number of lines to teh table OUT_LINES which are going to be of type c.

Then it will not split..

data: begin of g_lines occurs 0,

g_outline(100),

end of g_lines.

populate g_lines.

Regards,

Theja

Read only

naimesh_patel
Active Contributor
0 Likes
395

Hello,

Just pass ' ' to your DELIMITER parameter, it will not break your contents.

Like,

CALL FUNCTION 'RKD_WORD_WRAP'

EXPORTING

textline = p_text

delimiter = ' '

outputlen = 35

IMPORTING

out_line1 = text_line1

out_line2 = text_line2

EXCEPTIONS

outputlen_too_large = 1.

regards,

Naimesh