Ansicht
Dokumentation
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/PurchasesThis documentation is copyright by SAP AG.
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:
- Local ITF file FILE --> ITF text in table ITF_LINES
- Local RTF file FILE --> ITF text in table ITF_LINES
- Local ASCII file FILE --> ITF text in table ITF_LINES
The following specifications must be made:
-
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. -
FORMAT_TYPE = 'RTF'
Under WORD_LANGU, you should specify the language of theMS 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. -
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
CODEPAGEFILE
FORMAT_TYPE
HEADER
ITF_LINES
MASK_BRACKETS
NEWHEADER
SSHEET
WITH_TAB
WORD_LANGU
Exceptions
FILE_OPEN_ERRORFILE_READ_ERROR
NO_CONTENTS
UPLOAD_ERROR
Function Group
STXKPERFORM 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 )