01-08-2014 4:24 AM
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
01-08-2014 5: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
01-08-2014 4:43 AM
hi perumal ,,
Replace '>(>' '<)<' with spaces in the string you are trying to display after read_text...
regards,
Siva...
01-08-2014 5:03 AM
01-08-2014 5: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
01-08-2014 5:26 AM
01-08-2014 6: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
01-08-2014 7:19 AM
special symbols will store like that only in save_text
regards,
Siva