‎2006 Aug 07 11:47 AM
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
‎2006 Aug 07 11:52 AM
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
‎2006 Aug 07 12:20 PM
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