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: 

'&' symbol is not printing in smartform output.

thangam_perumal
Contributor
0 Kudos

Hi experts,

                         I am facing problem while printing  '&'   symbol using READ_TEXT FM  in smartforms .

I have maintained header text in PO header in that text am using special characters like

"&"  , . While displaying this data in out put it is giving junk characters like 

>(>&<)<   .   if use same function module in SAP script its working well but problem is smartforms output.

thanks in advance,

Regards,

Thangam.P

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Thangam,

Please try with this code as a refrence..

DATA: V_TYPE TYPE CHAR10 VALUE '>(>&<)<'.     

REPLACE ALL OCCURRENCES OF '>(>' IN V_TYPE WITH SPACE.
REPLACE ALL OCCURRENCES OF '<)<' IN V_TYPE WITH SPACE.

WRITE : V_TYPE.


Try with this after read text funtion module......



Thanks,

Ankit

6 REPLIES 6

sivaprasad_paruchuri
Active Participant
0 Kudos

hi perumal ,,

Replace '>(>'  '<)<' with spaces in the string you are trying to display after read_text...

regards,

Siva...

Former Member
0 Kudos

Please place the screen shot how you are passing the vairable

Former Member
0 Kudos

Hi Thangam,

Please try with this code as a refrence..

DATA: V_TYPE TYPE CHAR10 VALUE '>(>&<)<'.     

REPLACE ALL OCCURRENCES OF '>(>' IN V_TYPE WITH SPACE.
REPLACE ALL OCCURRENCES OF '<)<' IN V_TYPE WITH SPACE.

WRITE : V_TYPE.


Try with this after read text funtion module......



Thanks,

Ankit

Former Member
0 Kudos

This message was moderated.

thangam_perumal
Contributor
0 Kudos

Hi  to all,

                Thanks for your suggestion guys. still i don't  know  what is the reason why it is show like this . anyway i found the solution for that issue from ankit kumar suggestion.

Regards,

    Thangam.P

0 Kudos

special symbols will store like that only in save_text

regards,

Siva