on 06-11-2008 9:44 PM
Hi Experts,
I want to print a field in smartform which has nearly 500 characters. But while printing the filed, I am getting only 256 characters and the rest is truncated.
Can any one let me know how I can print all the characters.
Thanks in Advance,
Satish
One way is: to fill one table from the variabel value and print the data from that table.
Create a Porgram lines
Split your text in smaller parts and fill the internal table. You can use FM RKD_WORD_WRAP for that
Create LOOP and assign the internal table there
Print the text.
Regards,
Naimesh Patel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
More that:
System calls FM SSFRT_SYMBOL_VALUE to write the symbol value. It has the exporting parameter O_SYMBOL_VALUE which has TYPE C. That field can only accomodate 255 characters So, SmartForm is not able to print more than 255 characters.
Regards,
Naimesh Patel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am able to print 500 char field. May be your window size is small and it prevents it to print more characters.
Regards,
Naimesh Patel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh.. You seems to be right. I have tried with 500 hardcoded value instead of the variable.
I have tried with the variable and it seems it is only printing 256 characters.
So, try to print like:
&W_VAR+0(256)&&W_VAR+256(256)&
And it get printed.
Now, when I tried like:
&W_VAR+0(500)&
I got this exception raised and message:
Exception FORMATTING_ERROR
Message ID: SSFCOMPOSER Message number: 603
Message:
Field W_VAR: Output area not wide enough for field value
Regards,
Naimesh Patel
Hi Satish
You can store the text in standard text use save_text and then retrive in the smartform by read_text.
Regards
Naresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.