Skip to Content

'&' symbol is not printing in smartform output.

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2014 at 05:09 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 08, 2014 at 04:43 AM

    hi perumal ,,

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

    regards,

    Siva...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2014 at 05:03 AM

    Please place the screen shot how you are passing the vairable

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2014 at 05:26 AM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 08, 2014 at 06:58 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.