cancel
Showing results for 
Search instead for 
Did you mean: 

splitting text to show in a smartform

Former Member
0 Kudos

Hi all,

I'd like to split a string (concatenated from 6 fields contents, each 50 chars) to display it in a smartforms as the space available in the form is 100 chars per line.

How to split it up so that the max. space could be used?

Notes: A single word should not be splited up into 2 lines...

Thanks in advance!

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

You can display a Include Text and give the Text name, object, ID and declare the text in SO10.

I think it will automatically take care of the adjusting in one one line and shifting to the next line.

regards,

Gaurav

Former Member
0 Kudos

Hi,

You can go for the function module RKD_WORD_WRAP. There you can specify the length of line toooo.

Allot points if this is useful.

Former Member
0 Kudos

Thanks all for your response.

My output is more than 3 lines and I should use the output table out_lines, right?

But the table does not have header line, how to get and output its contents then?

Thanks!

Former Member
0 Kudos

Hi Macy,

Use the Function Module RKD_WORD_WRAP.

CALL FUNCTION 'RKD_WORD_WRAP'
EXPORTING
textline 
OUTPUTLEN 
IMPORTING
OUT_LINE1 
OUT_LINE2 
OUT_LINE3 
TABLES
OUT_LINES 
EXCEPTIONS
OUTPUTLEN_TOO_LARGE 
OTHERS

TEXTLINE - Text to Split

OUTPUTLEN - Maximum output line width

OUT_LINE1,OUT_LINE2,OUT_LINE3 - Output lines.

Regards,

Chandra Sekhar

Edited by: Chandrasekhar Gandla on Aug 27, 2008 9:34 AM