Menu

SAP Function Module CONVERT_TEXT

Text Conversion: Convert Text Formats

The Function Module CONVERT_TEXT (Text Conversion: Convert Text Formats) is a standard Function Module in SAP ERP and is part of the function group STXK within the package STXD.

Technical Information

Function Module CONVERT_TEXT
Short Text Text Conversion: Convert Text Formats
Function Group STXK
Package STXD
Module Type Normal Module

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
CODEPAGE LIKE TCP02-CPCODEPAGE '0000' Source or target character set (depending on DIRECTION)
DIRECTION TYPE C 'EXPORT' 'IMPORT' (<--) or 'EXPORT' (-->)
FORMATWIDTH LIKE ITCTK-TDLINESIZE 72 Line width in results table (only for EXPORT)
FORMAT_TYPE TYPE C 'RTF' 'RTF' or 'ASCII'
HEADER LIKE THEAD SPACE Text header of original text
LF_SUBSTITUTE TYPE C SPACE Replacement text for line feed
MASK_BRACKETS TYPE TDBOOL 'X' Mask special characters <..> during import
REPLACE_SAPCHARS TYPE TDBOOL 'X' Evaluate SAP characters during export
REPLACE_SYMBOLS TYPE TDBOOL 'X' Evaluate symbols during export
SSHEET TYPE C SPACE Print format, only effective for print format conversion
TABLETYPE TYPE C 'ASC' Type of foreign format table: 'BIN' or 'ASC'
TAB_SUBSTITUTE TYPE C SPACE Replacement for tab
WITH_TAB TYPE TDBOOL SPACE Print format conversion, 'X' - yes or ' ' - no
WORD_LANGU TYPE SPRAS SY-LANGU Only for RTF conversion: System language from Word

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
FORMATWIDTH_E LIKE ITCTK-TDLINESIZE Actual format width at export
NEWHEADER LIKE THEAD Text header of SAPscript resulting text

Changing Parameters

This function module does not define any CHANGING parameters.

Table Parameters

These are the TABLE parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
FOREIGN LIKE TLINE External text table
ITF_LINES LIKE TLINE SAPscript ITF table
LINKS_TO_CONVERT LIKE HELP_LINKA Not implemented

Exceptions

These are the Exceptions of this function module.

Exception Name Short Text
NOT_SUPPORTED Diese Art der Konvertierung wird nicht unterstützt