on 2008 Oct 09 10:42 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
81 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.