Application Development and Automation 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: 
Read only

Printing issues in smartforms

former_member212148
Participant
0 Likes
1,397

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
Read only

Former Member
0 Likes
1,083

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

Read only

0 Likes
1,083

Hello Ranjit,

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

Read only

Private_Member_7726
Active Contributor
0 Likes
1,083

Hi,

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

cheers

Jānis

Read only

peng_wen
Product and Topic Expert
Product and Topic Expert
1,083

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

Read only

ipravir
Active Contributor
0 Likes
1,083

Hi Ranjit,

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

Regards,

Praveer.

Read only

Former Member
0 Likes
1,083

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