Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

FUNCTION 'CONVERT_ITF_TO_ASCII'

Former Member
0 Kudos

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

3 REPLIES 3

viquar_iqbal
Active Contributor
0 Kudos

HI

lf_substitute : Replacement Value for the Line Feed.This parameter applies only for TABLETYPE = 'BIN'. If it remains initial, the CR_LF attribute of class CL_ABAP_CHAR_UTILITIES is used

and, if necessary, converted into the target character set.

replace_symbols : Evaluate Symbols

replace_sapchars : Evaluate SAP Characters

select the line width FORMATWIDTH If it is outside of the valid range, the system uses minimum or maximum values instead.The line width actually used for formatting is returned in the parameter FORMATWIDTH_E

Former Member
0 Kudos

Hi Jess,

Plz check with this link..

Hope this will help u..

Regards,

Neelima.

Former Member
0 Kudos

Hi,

Please find with the following link

[Link|]

Hope this link helps you

Regards,

Rajani