2008 Oct 11 7:07 AM
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"....
2008 Oct 11 7:26 AM
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.
2008 Oct 11 7:11 AM
hey ,
You can put symbols in smartform try that,
Open the text node in the Line Editor.
Insert > SAP Symbols .
This symbols will not show up in the Print Preview or actual Spool. When you print the spool, it will show up in the Actual hardcopy
Regards,
Midhun Abraham
2008 Oct 11 7:26 AM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |