Show TOC

TRANSFER_TEXTLocate this document in the navigation structure

Use

The function module TRANSFER_TEXT has an interactive form. 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 controls whether the style and layout set of the result text can be selected in ITF import and RTF import. 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
                CANCELLED       =
            

Export parameters:

CHFORMAT

The parameter determines whether you are allowed to change the style and form allocation.

Possible values are:

  • ' ' (changes not allowed)

  • 'X' (changes 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 parameter:

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:

CANCELLED

Transfer canceled by user.