The function module TRANSFER_TEXT is interactive. It calls either the function module IMPORT_TEXT with the parameter ITF_LINES = TABLE_IMP or the function module EXPORT_TEXT with the parameter ITF_LINES = TABLE_EXP.
The parameter CHFORMAT determines whether you can select style and form for the result text for ITF and RTF imports. If such a selection is not possible (CHFORMAT = ' '), the system uses HEADER-TDSTYLE and HEADER-TDFORM.
Function call:
CALL FUNCTION 'TRANSFER_TEXT'
EXPORTING CHFORMAT = 'X'
HEADER = SPACE
DIRECTION = SPACE
IMPORTING NEWHEADER =
TABLES TABLE_EXP = ?...
TABLE_IMP = ?...
EXCEPTIONS CANCELED =
Export parameters:
CHFORMAT |
The parameter determines whether you are allowed to change the style and form allocation. Possible values: ' ' changes allowed 'X' changes not allowed Default value: 'X' |
HEADER |
Text header of the source text. Structure: THEAD Default value: SPACE |
DIRECTION |
'IMPORT', 'EXPORT', or SPACE. For DIRECTION = SPACE, you can choose in a dialog box between file import (from local file) and file export (to local file) and between different text formats. If you specify ‘IMPORT’ or ‘EXPORT’, you can determine only the text format. Default value: SPACE |
Import parameters:
NEWHEADER |
Text header of the result text. Structure: THEAD |
Table parameters:
TABLE_EXP |
Table to be exported. Structure: TLINE |
TABLE_IMP |
Table containing import result. Structure: TLINE |
Exceptions
:CANCELED |
Transfer canceled by user. |