2013 Oct 08 12:13 PM
Hello Experts,
I am getting printing issues in smartforms.
When i want to print string has & and , letter its print <(>&<)>.
Sometime it will be ok but sometimes not.
Where ever I got this type of issue replace <(>&<)> by ,
with following syntax:
REPLACE ALL OCCURRENCES OF '<(>&<)>' IN GS_VN WITH '&'.
Why this occurs sometimes.
2013 Oct 08 12:56 PM
Hello Ranjit,
I have faced similar issues while changing the SMARTFORMS editor.
Like comma ',' replaced by <(>,<)>.
In my case it prints only comma without <(> <)> as required. May be SMARTFORMS editor issue.
Cheers
2015 Jul 07 5:56 AM
Hello Ranjit,
You can try out first concatenate it into a new variable string ant then call that variable using &&.
2015 Jul 07 7:05 AM
Hi,
Can you create a small smartform demonstrating the issue, export it as xml and attach here please?
cheers
Jānis
2015 Jul 07 7:45 AM
Hello,
The problem is here swithing editors and a known problem at SAP,
which will have no future solution but is also of no practical consequence.
during the transformation from MsWord to internal ITF, as some signs
(like ',' in some situations) have a special meaning, so internally the real
comma is "masked", but not how you originally wrote <(>,<(> , it is <(>,<)>.
',' and '&' have a special meaning too.
Please have a look at the attached note:
391261 SAPscript: Special character "&" and "<" in the PC
Regards,
Wen Peng
2015 Jul 07 7:52 AM
Hi Ranjit,
Are you passing string as variable value or directly writing in TEXT element?
Regards,
Praveer.
2015 Jul 07 8:03 AM
Hi Ranjith,
Instead of replace all use concatenate string.
For example in smart form if you need to print "Gopi & Ranjith"
Use concatenate 'GOPI' '&' 'Ranjith' into lv_string separated by space.
use lv_string where ever you want to print on smartform.
simple.
Hope it helps you.
Regards,
Gopikrishna