Ansicht
Dokumentation

IMPORT_TEXT - Text Conversion: Read and Convert Text From GUI File

IMPORT_TEXT - Text Conversion: Read and Convert Text From GUI File

TXBHW - Original Tax Base Amount in Local Currency   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

The function module IMPORT_TEXT uploads a local file to the R/3 System and then carries out one of the following three conversions, depending on the file format FORMAT_TYPE:

  1. Local ITF file FILE --> ITF text in table ITF_LINES
  2. Local RTF file FILE --> ITF text in table ITF_LINES
  3. Local ASCII file FILE --> ITF text in table ITF_LINES

The following specifications must be made:

  1. FORMAT_TYPE = 'ITF'
    ITF files with header information (for more information about the form of this file, see the documentation for report RSTXLITF) but also ITF texts without this lead text can be dealt with here. If they are preceded by header information, it is written in the export parameter NEWHEADER. In this case formatting also takes place: the line width is based on the entries made in table TTXOB for the specific text object.
    The parameters HEADER, FORMATWIDTH, CODEPAGE, WORD_LANGU, SSHEET, and WITH_TAB are ineffective.
  2. FORMAT_TYPE = 'RTF'
    Under WORD_LANGU, you should specify the language of the MS Word version used, so that language-dependent elements can be interpreted in the RTF file. The R/3 system language is set as the default value.
    The parameters FORMATWIDTH and CODEPAGE are ineffective, SSHEET and WITH_TAB are explained below, HEADER is only relevant with a format conversion ( WITH_TAB = 'X'). In this case, new current values are entered in the parameter NEWHEADER.
  3. FORMAT_TYPE = 'ASCII'
    Carriage return (x0D) and Linefeed (x0A) are converted to New line ('/'), Formfeed (x0c) is mapped to the command '/: NEW-PAGE' and the ASCII tab is to the ITF tab (',,').
    The character set of the source file (i.e. its number in the spool administration) must be specified under CODEPAGE; the characters are then converted to the system character set. If a value has not been entered for CODEPAGE, character set conversion is not carried out.
    The parameters FORMATWIDTH, SSHEET, WITH_TAB, WORD_LANGU, and HEADER are not evaluated.

If the parameter WITH_TAB = 'X' is set, a format conversion is triggered for FORMAT_TYPE = 'RTF'. First the Word key codes which are to be mapped to other paragraph and character markers must be specified in transaction SE74 (format conversion). The following are converted:

,,,,,,,,,,,,HEADER-TDSTYLE
,,SSHEET,,,,to,,,,,,or
,,,,,,,,,,,,HEADER-TDFORM





Parameters

CODEPAGE
FILE
FORMAT_TYPE
HEADER
ITF_LINES
MASK_BRACKETS
NEWHEADER
SSHEET
WITH_TAB
WORD_LANGU

Exceptions

FILE_OPEN_ERROR
FILE_READ_ERROR
NO_CONTENTS
UPLOAD_ERROR

Function Group

STXK

PERFORM Short Reference   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 6348 Date: 20240604 Time: 032639     sap01-206 ( 105 ms )