cancel
Showing results for 
Search instead for 
Did you mean: 

Sapscript table

Former Member
0 Kudos

Hi

It is possible to do something like this:

I have loop in sapscript by itab wchich print:

name1 name2_very_very_lo name3

name1 name2_very_very_lo name3

And I wanto to split a name2 to like this:

name1 name2_very_very name3

........._long_name

name1 name2_very_very name3

........._long_name

How to split this long strings to 2 lines?

Edited by: Kosmo on Aug 1, 2008 4:54 PM

<MOVED BY MODERATOR TO THE CORRECT FORUM>

Edited by: Alvaro Tejada Galindo on Aug 2, 2008 8:19 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can use FM "RKD_WORD_WRAP" to split the text

CALL FUNCTION 'RKD_WORD_WRAP'

EXPORTING

textline = wa_final-ldesc

outputlen = 72

TABLES

out_lines = i_outlen

EXCEPTIONS

outputlen_too_large = 1

OTHERS = 2.

you may also try tr_split_text

Answers (1)

Answers (1)

narin_nandivada3
Active Contributor
0 Kudos

Hi,

Firstly can i know the use of splitting into second line... as you have a option to move your cursor to left or right in EDIT menu..

Even then if you want to mention in the next line then put and '=' symbol in the command field which resembles the continuation of previous line.

Hope this would help you.

Good luck

Narin