cancel
Showing results for 
Search instead for 
Did you mean: 

SMARTFORMS-maximum length of text to be printed

Former Member
0 Kudos

Hi all,

Recently I have encountered the following issue in Smartforms.

I have a text of 450-500 characters stored in a char 1000 variable. The smartform in which this text is printed consists of only one window and the variable name is given in the text element window. The problem is that the text is cut at exactly 255 characters.

So the text is only partially visible at the output. Is there some sort of a setting by which the length of text visible at the output can be extended? Or any other solution?

-ankur

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

if you have a text, then i´d propose to make use of a TEXT and not of a char variable.

Make yourself a text, store it and use INCLUDE statement to print it then.

If you dont want to go this way, you still may make use of a STRING variable, this could work a lil better .

rnb86
Participant
0 Kudos

Hi,

If the text you are displaying is static, then it is better you use the Text Module. It will avoid all the splitting of data into variables and it is efficient.

If it is dynamic text, determinded at run-time, then the solution provided will solve the problem.

Please close the thread if your issue is resolved.

Cheers.

DavidLY
Advisor
Advisor
0 Kudos

Hello,

The reason for your problem is that the length of a symbol in a

Smartform is restricted to 255 characters. Please see the following

SAP Note about this:

485296 - Maximum string output length of 255 characters

If you text is longer, you have to split it into different symbols

containing no more than 255 characters.

Regards,

David

Former Member
0 Kudos

as per ny knowledge we can't use the variable longer than 255 char to print..

another optionis to declatre 5 variable with length of 255 and split the main string into the temparary variables.. then print ther in the same test eement.

ex v_Vriable is the u char1000 length variable.

v_temp1,v_temp2, v_temp3, v_temp4 v_temp5. are 255 length varibles,

v_temp1 = v_Vriable+0(255).

v_temp2 = v_Vriable+256(255).

v_temp3 = v_Vriable+512(255).

v_temp4 = v_Vriable+768(255).

v_temp5 = v_Vriable+1024(255).

i have just give the example.. sring oprations.. y

<b>Please Colse the thred when ur problem is solved,Raward Helpful answers</b>

Regrads

Naresh Reddy

vijayakumarub
Explorer
0 Kudos

Thanks dude.

Was looking for the same prob.

Thanks a lot.

Regards,

Vijay