Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

I am reading SAP Long Text using FM READ_TEXT but the return from that function

module have special character combination such as : ‘&’ ‘<‘ ‘>’.

For Example :

Me & You , but i get Me <(> & <)> You.

First before we tell you how to fix this problem, i will try to explain what is cause this
problem, the FM READ_TEXT return text in ITF ( Interchange Text Format ) you need to
explain into plain text, to fix this problem you need to run FM
CONVERT_ITF_TO_ASCII.

1 CALL FUNCTION 'CONVERT_ITF_TO_ASCII'


2       EXPORTING
3         codepage          = '0000'
4         formatwidth       = 128
5         language          = sy-langu
6         tabletype         = 'ASC'
7       IMPORTING
8         c_datatab         = lt_text
9       TABLES
10         itf_lines         = td_line
11       EXCEPTIONS
12         invalid_tabletype = 1
13         OTHERS            = 2.

You might also like