SAP BTFR_MAINTAIN_SINGLE_TEXT Function Module for
BTFR_MAINTAIN_SINGLE_TEXT is a standard btfr maintain single text SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for btfr maintain single text FM, simply by entering the name BTFR_MAINTAIN_SINGLE_TEXT into the relevant SAP transaction such as SE37 or SE38.
Function Group: BTFR_API_MAINTENANCE
Program Name: SAPLBTFR_API_MAINTENANCE
Main Program: SAPLBTFR_API_MAINTENANCE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BTFR_MAINTAIN_SINGLE_TEXT pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'BTFR_MAINTAIN_SINGLE_TEXT'".
EXPORTING
* PACKAGE = "Package
* FLAG_NO_CONTEXT = "
* FLAG_DISPLAY = "
* FLAG_NO_SCREEN = "
* FLAG_CALLED_FROM_EDIT_SCREEN = "
* DEFAULT_TEXT = "
* FLAG_CORRECTION_ENTRY = 'X' "
* CORR_NUM = "
* USE_KORRNUM_IMMEDIATEDLY = "
* FLAG_NO_INITIAL_TEXT = "
* OBJECT_TYPE = "Object Type
* LANGU = SY-LANGU "Language Key
* CONCEPT = "Key for Logical Object in the OTR
* ALIAS = "
* TRANSL_TYPE = "Text Type for Translation
* FLAG_STRING = "Indicator: 'X': Long Text (String), ' ': Short Text
* OPTIONS_EDITOR = "Options for Display Editor in Interfaces
* OPTIONS_CHECK = "
IMPORTING
FLAG_CANCELLED = "
HEADER = "Structure for Header Fields
TEXT = "Short Texts (fields from SOTR_TEXT that are used)
STRING = "Long Texts (fields from SOTR_TEXTU that are used)
EXCEPTIONS
PARAMETER_ERROR = 1 TEXT_NOT_FOUND = 2 INVALID_OBJECT_TYPE = 3 INVALID_PACKAGE = 4 HEADER_DIFF_INTERFACE = 5 INVALID_CONCEPT = 6 INVALID_TADIR_ENTRY = 7 INVALID_TRANSL_TYPE = 8
IMPORTING Parameters details for BTFR_MAINTAIN_SINGLE_TEXT
PACKAGE - Package
Data type: DEVCLASSOptional: Yes
Call by Reference: Yes
FLAG_NO_CONTEXT -
Data type: BTFR_FLAGOptional: Yes
Call by Reference: Yes
FLAG_DISPLAY -
Data type: BTFR_FLAGOptional: Yes
Call by Reference: Yes
FLAG_NO_SCREEN -
Data type: BTFR_FLAGOptional: Yes
Call by Reference: Yes
FLAG_CALLED_FROM_EDIT_SCREEN -
Data type: BTFR_FLAGOptional: Yes
Call by Reference: Yes
DEFAULT_TEXT -
Data type: STRINGOptional: Yes
Call by Reference: Yes
FLAG_CORRECTION_ENTRY -
Data type: BTFR_FLAGDefault: 'X'
Optional: Yes
Call by Reference: Yes
CORR_NUM -
Data type: TRKORROptional: Yes
Call by Reference: Yes
USE_KORRNUM_IMMEDIATEDLY -
Data type: BTFR_FLAGOptional: Yes
Call by Reference: Yes
FLAG_NO_INITIAL_TEXT -
Data type: BTFR_FLAGOptional: Yes
Call by Reference: Yes
OBJECT_TYPE - Object Type
Data type: TROBJTYPEOptional: Yes
Call by Reference: Yes
LANGU - Language Key
Data type: SPRASDefault: SY-LANGU
Optional: Yes
Call by Reference: Yes
CONCEPT - Key for Logical Object in the OTR
Data type: SOTR_CONCOptional: Yes
Call by Reference: Yes
ALIAS -
Data type: SOTR_ALIASOptional: Yes
Call by Reference: Yes
TRANSL_TYPE - Text Type for Translation
Data type: BTFR_TEXT_TYPEOptional: Yes
Call by Reference: Yes
FLAG_STRING - Indicator: 'X': Long Text (String), ' ': Short Text
Data type: BTFR_F_STRINGOptional: Yes
Call by Reference: Yes
OPTIONS_EDITOR - Options for Display Editor in Interfaces
Data type: BTFR_OPTIONS_EDITOR_EXTDOptional: Yes
Call by Reference: Yes
OPTIONS_CHECK -
Data type: BTFR_OPTIONS_CHECK_EXTDOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for BTFR_MAINTAIN_SINGLE_TEXT
FLAG_CANCELLED -
Data type: BTFR_FLAGOptional: No
Call by Reference: Yes
HEADER - Structure for Header Fields
Data type: BTFR_HEADOptional: No
Call by Reference: Yes
TEXT - Short Texts (fields from SOTR_TEXT that are used)
Data type: BTFR_TEXTOptional: No
Call by Reference: Yes
STRING - Long Texts (fields from SOTR_TEXTU that are used)
Data type: BTFR_STRINGOptional: No
Call by Reference: Yes
EXCEPTIONS details
PARAMETER_ERROR -
Data type:Optional: No
Call by Reference: Yes
TEXT_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
INVALID_OBJECT_TYPE -
Data type:Optional: No
Call by Reference: Yes
INVALID_PACKAGE -
Data type:Optional: No
Call by Reference: Yes
HEADER_DIFF_INTERFACE -
Data type:Optional: No
Call by Reference: Yes
INVALID_CONCEPT -
Data type:Optional: No
Call by Reference: Yes
INVALID_TADIR_ENTRY -
Data type:Optional: No
Call by Reference: Yes
INVALID_TRANSL_TYPE -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for BTFR_MAINTAIN_SINGLE_TEXT Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_package | TYPE DEVCLASS, " | |||
| lv_flag_cancelled | TYPE BTFR_FLAG, " | |||
| lv_parameter_error | TYPE BTFR_FLAG, " | |||
| lv_flag_no_context | TYPE BTFR_FLAG, " | |||
| lv_flag_display | TYPE BTFR_FLAG, " | |||
| lv_flag_no_screen | TYPE BTFR_FLAG, " | |||
| lv_flag_called_from_edit_screen | TYPE BTFR_FLAG, " | |||
| lv_default_text | TYPE STRING, " | |||
| lv_flag_correction_entry | TYPE BTFR_FLAG, " 'X' | |||
| lv_corr_num | TYPE TRKORR, " | |||
| lv_use_korrnum_immediatedly | TYPE BTFR_FLAG, " | |||
| lv_flag_no_initial_text | TYPE BTFR_FLAG, " | |||
| lv_header | TYPE BTFR_HEAD, " | |||
| lv_object_type | TYPE TROBJTYPE, " | |||
| lv_text_not_found | TYPE TROBJTYPE, " | |||
| lv_text | TYPE BTFR_TEXT, " | |||
| lv_langu | TYPE SPRAS, " SY-LANGU | |||
| lv_invalid_object_type | TYPE SPRAS, " | |||
| lv_string | TYPE BTFR_STRING, " | |||
| lv_concept | TYPE SOTR_CONC, " | |||
| lv_invalid_package | TYPE SOTR_CONC, " | |||
| lv_alias | TYPE SOTR_ALIAS, " | |||
| lv_header_diff_interface | TYPE SOTR_ALIAS, " | |||
| lv_transl_type | TYPE BTFR_TEXT_TYPE, " | |||
| lv_invalid_concept | TYPE BTFR_TEXT_TYPE, " | |||
| lv_flag_string | TYPE BTFR_F_STRING, " | |||
| lv_invalid_tadir_entry | TYPE BTFR_F_STRING, " | |||
| lv_options_editor | TYPE BTFR_OPTIONS_EDITOR_EXTD, " | |||
| lv_invalid_transl_type | TYPE BTFR_OPTIONS_EDITOR_EXTD, " | |||
| lv_options_check | TYPE BTFR_OPTIONS_CHECK_EXTD. " |
|   CALL FUNCTION 'BTFR_MAINTAIN_SINGLE_TEXT' " |
| EXPORTING | ||
| PACKAGE | = lv_package | |
| FLAG_NO_CONTEXT | = lv_flag_no_context | |
| FLAG_DISPLAY | = lv_flag_display | |
| FLAG_NO_SCREEN | = lv_flag_no_screen | |
| FLAG_CALLED_FROM_EDIT_SCREEN | = lv_flag_called_from_edit_screen | |
| DEFAULT_TEXT | = lv_default_text | |
| FLAG_CORRECTION_ENTRY | = lv_flag_correction_entry | |
| CORR_NUM | = lv_corr_num | |
| USE_KORRNUM_IMMEDIATEDLY | = lv_use_korrnum_immediatedly | |
| FLAG_NO_INITIAL_TEXT | = lv_flag_no_initial_text | |
| OBJECT_TYPE | = lv_object_type | |
| LANGU | = lv_langu | |
| CONCEPT | = lv_concept | |
| ALIAS | = lv_alias | |
| TRANSL_TYPE | = lv_transl_type | |
| FLAG_STRING | = lv_flag_string | |
| OPTIONS_EDITOR | = lv_options_editor | |
| OPTIONS_CHECK | = lv_options_check | |
| IMPORTING | ||
| FLAG_CANCELLED | = lv_flag_cancelled | |
| HEADER | = lv_header | |
| TEXT | = lv_text | |
| STRING | = lv_string | |
| EXCEPTIONS | ||
| PARAMETER_ERROR = 1 | ||
| TEXT_NOT_FOUND = 2 | ||
| INVALID_OBJECT_TYPE = 3 | ||
| INVALID_PACKAGE = 4 | ||
| HEADER_DIFF_INTERFACE = 5 | ||
| INVALID_CONCEPT = 6 | ||
| INVALID_TADIR_ENTRY = 7 | ||
| INVALID_TRANSL_TYPE = 8 | ||
| . " BTFR_MAINTAIN_SINGLE_TEXT | ||
ABAP code using 7.40 inline data declarations to call FM BTFR_MAINTAIN_SINGLE_TEXT
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| DATA(ld_flag_correction_entry) | = 'X'. | |||
| DATA(ld_langu) | = SY-LANGU. | |||
Search for further information about these or an SAP related objects