on 10-29-2007 9:59 AM
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
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 .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.