Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Print & in Smartform

Hi,

I want to print & in smartform like this '&' but it prints like this <(>&<)>. Plz suggest me how solve this problem.

i used function module Read_text ..

e.g i want to print " Mohan & Sohan"

But it prints " Mohan <(>&<)> Sohan"....

Tags:
replied

Hi Ram,

You can use this code :

LOOP AT it_lines.
      IF sy-subrc = 0.
        REPLACE ALL OCCURRENCES OF '<(>' IN it_lines-tdline WITH ''.
        REPLACE ALL OCCURRENCES OF '<)>' IN it_lines-tdline WITH ''.
        CONCATENATE wa_vbak-r_txt  it_lines-tdline INTO wa_vbak-r_txt.
      ENDIF.
    ENDLOOP.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question