02-09-2009 4:37 AM
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
02-09-2009 4:55 AM
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
02-09-2009 5:17 AM
02-09-2009 5:46 AM