on 07-20-2015 8:39 AM
Hi Experts,
Might be a simple solution but I am not aware, I am using Few Line types in Template in SAP Smart-form.
One of the line type is divided in 2 columns, suppose length 3 cm each, suppose with my font each cell can accommodate 20 char text.
Now issue is -- if my text is "hello hello sapworlds" (exact 20) it is printed successfully, no issue.
But if my text is "hello hello sapworlds" (len 21), last word is not printed at all. It is printing "hello hello". But, my requirement is to print first 20 characters even if the last word is truncated.
Why it is not printing complete word if length not enough ?
Thanks
Hi,
The composer is not truncating, it simply wraps the whole word into the next text line, which will not be displayed, because the template cell height is insufficient (which is why I prefer tables over templates - the flexible cell height in tables). Just increase the template row height to illustrate the effect.
I have not found a way to affect the word wrapping in SAP form processing works - so it breaks in the middle of the word, for example.
cheers
Jānis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If it fits your needs, you can specify the output length in characters directly in the text field: &textfield(20)& - then it will "truncate" the output (output only the first 20 characters). But bear in mind that the real output length for 20 characters will wary depending on the field contents when using proportional font... It will stay constant only for monospaced (non-proportional) font.
Smartforms support all the Sapscript field formatting options.
cheers
Jānis
Hello,
It might be caused by a line break in case there has no enough length for the last word,
this is working as designed, you may add additional lines for the text filed and see if it works.
Regards,
Wen Peng
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 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.