Skip to Content
0
Former Member
Feb 09, 2009 at 04:37 AM

FUNCTION 'CONVERT_ITF_TO_ASCII'

779 Views

Hi Guru,

May I know what is the functionality for lf_substitute, replace_symbols and replace_sapchars?

I have passed in Itf_tab in format tdline, and there is new line which is represent with symbols '#' in sap.

but after pass in itf_tab to FM, the new line is no longer there in c_datatype.

How can I retain the new lines in structure ltf_tab?

CALL FUNCTION 'CONVERT_ITF_TO_ASCII'

EXPORTING

  • CODEPAGE = '0000'

  • FORMATWIDTH = 72

language = sy-langu

tabletype = 'ASC'

  • TAB_SUBSTITUTE = ' '

  • LF_SUBSTITUTE = ' '

  • REPLACE_SYMBOLS = 'X'

  • REPLACE_SAPCHARS = 'X'

IMPORTING

  • FORMATWIDTH_E = FORMATWIDTH_E

  • X_DATATAB = X_DATATAB

c_datatab = c_datatab

  • X_SIZE = X_SIZE

TABLES

itf_lines = itf_tab

EXCEPTIONS

invalid_tabletype = 1

OTHERS = 2