Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Printing issues in smartforms

former_member212148
Participant
0 Kudos
545

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.

6 REPLIES 6

Former Member
0 Kudos
231

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

0 Kudos
231

Hello Ranjit,

You can try out first concatenate it into a new variable string ant then call that variable using &&.

Private_Member_7726
Active Contributor
0 Kudos
231

Hi,

Can you create a small smartform demonstrating the issue, export it as xml and attach here please?

cheers

Jānis

peng_wen
Advisor
Advisor
231

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

ipravir
Active Contributor
0 Kudos
231

Hi Ranjit,

Are you passing string as variable value or directly writing in TEXT element?

Regards,

Praveer.

Former Member
0 Kudos
231

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