cancel
Showing results for 
Search instead for 
Did you mean: 

How to display 1000 char long text on form

Former Member
0 Kudos

Hi All,

We need to display 1000 char long text in sap script form.But the variable is restrict to display only 255 char.Could you please help how we can display 1000 char in one paragraph on from.

Thanks

Mohit

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I put the text into a character field which can be up to 65535 (max for type C), then utilize FM RKD_WORD_WRAP to break at max designated length on word boundardies (space delimiter). That returns a table of text which can then be processed and laid down in a form one row at a time, like rows of data in main window.

Beware that RKD_WORD_WRAP was broken in Enhancement Pack 4, truncating input at 256 characters, but there is an SAP Note that can be applied to repair that.

Former Member
0 Kudos

Hi!

There are many ways for this.

1. You can place your text in a SO10 text object, and then INCLUDE this text on your SAPScript.

2. You can use the SPLIT variable100 AT space INTO itab. statement for splitting the text into an internal table. Then LOOP AT this internal table count the printed characters, print them to the SAPSript and maybe after 80 character make a linefeed.

3. Split your 1000 char variable into 4 separated 250 wide character variables and print them out.

The second one is the most elegant version, but it requires some additinal coding.

Regards

Tamá