cancel
Showing results for 
Search instead for 
Did you mean: 

Can't display character string longer than 255 char in a table in smartform

boolan
Participant
0 Kudos
363

Hello,

When I try to display in a table cell in smartform a string that is longer than 255 chars and does not contain CR LF, then only first 255 characters are displayed. The remainder is truncated.

How to solve this problem without destroying formatting of the text ?

I don't want to add any additional CR LF.

Can't smartform display longer texts in a table cell ???

best regards,

Krzysztof.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Try to use below

&itab-var& &itab-var+255&

I had the same issue & it worked for me.

Just take care of the OUTPUT OPTION - OUTPUT STRUCTURE for the text.

this setting has to be same .

Edited by: farook husain on Nov 21, 2008 10:08 PM

naimesh_patel
Active Contributor
0 Kudos

Smartforms can only handle the variables of 255 characters. If you more than that you can print them like:


/: L_TEXT+0(255)
/: L_TEXT+255(255) 

and so on.

Regards,

Naimesh Patel

boolan
Participant
0 Kudos

Thanks !

I tried it, but second variable is then printed in the next line.

So this did not solve my problem.

There is a more promising way - to generate include texts on the fly using SAVE_TEXT and DELETE_TEXT.

Is there anybody who tried it and can give coding sample ?

Former Member
0 Kudos

hi man ,

try with the

\* text+0(255)

= text+255

or else

define a variable of type CACS_CHAR1000SF , which has size 1000 ... and try to display...............

Edited by: ganesh prasad on Oct 10, 2008 5:32 PM

boolan
Participant
0 Kudos

The solution is to use function module IQAPI_WORD_WRAP. It splits the string into a table of desired line length.

The trick with SAVE_TEXT and DELETE_TEXT did not work for me - maybe I did something wrong. The text was in Sapscript format, with * and = as formatting characters. But the longtext was split after 132th char.