Skip to Content
0
Former Member
Aug 18, 2015 at 06:33 PM

Read text(Continuous text editor) purchase order M22/23N

437 Views

Hello,

I have following situation .


User is copy pasting the text in the item text of the purchase order. Display looks perfectly ok but when we try to read the text using FM 'READ_TEXT' some character are appearing as ‘# ‘. Ex in the editor the text “ 2 – 10’ adbcefghijk “ looks good but when your read it using FM we get following text “ 2 # 10 # adbcefghijk “. ie character like “ –‘ “ are replaced by # .


I Tried converting it to ascii binary format using CONVERT_ITF_TO_ASCII and SCMS_BINARY_TO_XSTRING,also tried FM CONVERT_ITF_TO_RTF and mehtod GET_TEXT_AS_STREAM of calss cl_gui_textedit . It did not works.


How to retrieve the text exactly as it appear in the sap screen. If we can see text in editor, there should be a way to read what we see.

Note : It works perfectly when I type in manually. issue is only when we copy.

Appreciate your valuable suggestion .

Thank you.