SAP BTFR_SELECTION_SCREEN Function Module for
BTFR_SELECTION_SCREEN is a standard btfr selection screen 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 selection screen FM, simply by entering the name BTFR_SELECTION_SCREEN into the relevant SAP transaction such as SE37 or SE38.
Function Group: BTFR_DB_INT
Program Name: SAPLBTFR_DB_INT
Main Program: SAPLBTFR_DB_INT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BTFR_SELECTION_SCREEN 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_SELECTION_SCREEN'".
EXPORTING
* EDIT_MODE = 'SHOW' "
* FLAG_FUZZY_SEARCH = "
* FLAG_NO_DISPLAY_TEXTTYPE = 'X' "
* FLAG_NO_DISPLAY_CONTEXT = 'X' "
* FLAG_GET_ALL_CONTEXTS = "
* START_ROW = "Screens, horizontal cursor position at PAI
* START_COL = "Screens, horizontal cursor position at PAI
IMPORTING
TEXT_TAB = "Short Texts (fields from SOTR_TEXT that are used)
STRING_TAB = "Long Texts (fields from SOTR_TEXTU that are used)
HELP_TAB = "F4 Help/Browser (Fields from Head Table and Text Table)
FLAG_CANCELLED = "BTFR Indicator
CHANGING
* FLAG_STRING = "
* TARGET_CONTEXT = "
* TARGET_TEXT = "
* LANGU = SY-LANGU "Language Key
* TARGET_LANGU = "
* BTFR_TEXT = "
* BTFR_STRING = "
* PACKAGE = "Package
* ALIAS = "Unique Alias Name for OTR Concept
* OBJECT_TYPE = "Object Type
* OBJECT_NAME = "
IMPORTING Parameters details for BTFR_SELECTION_SCREEN
EDIT_MODE -
Data type: BTFR_EDIT_MODEDefault: 'SHOW'
Optional: Yes
Call by Reference: Yes
FLAG_FUZZY_SEARCH -
Data type: BTFR_FLAGOptional: Yes
Call by Reference: Yes
FLAG_NO_DISPLAY_TEXTTYPE -
Data type: BTFR_FLAGDefault: 'X'
Optional: Yes
Call by Reference: Yes
FLAG_NO_DISPLAY_CONTEXT -
Data type: BTFR_FLAGDefault: 'X'
Optional: Yes
Call by Reference: Yes
FLAG_GET_ALL_CONTEXTS -
Data type: BTFR_FLAGOptional: Yes
Call by Reference: Yes
START_ROW - Screens, horizontal cursor position at PAI
Data type: SYCUCOLOptional: Yes
Call by Reference: Yes
START_COL - Screens, horizontal cursor position at PAI
Data type: SYCUCOLOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for BTFR_SELECTION_SCREEN
TEXT_TAB - Short Texts (fields from SOTR_TEXT that are used)
Data type: BTFR_TEXT_TTOptional: No
Call by Reference: Yes
STRING_TAB - Long Texts (fields from SOTR_TEXTU that are used)
Data type: BTFR_STRING_TTOptional: No
Call by Reference: Yes
HELP_TAB - F4 Help/Browser (Fields from Head Table and Text Table)
Data type: BTFR_HELP_TTOptional: No
Call by Reference: Yes
FLAG_CANCELLED - BTFR Indicator
Data type: BTFR_FLAGOptional: No
Call by Reference: Yes
CHANGING Parameters details for BTFR_SELECTION_SCREEN
FLAG_STRING -
Data type: BTFR_F_STRINGOptional: Yes
Call by Reference: Yes
TARGET_CONTEXT -
Data type: SOTR_CNTXTOptional: Yes
Call by Reference: Yes
TARGET_TEXT -
Data type: BTFR_TEXT-TEXTOptional: Yes
Call by Reference: Yes
LANGU - Language Key
Data type: SPRASDefault: SY-LANGU
Optional: Yes
Call by Reference: Yes
TARGET_LANGU -
Data type: SPRASOptional: Yes
Call by Reference: Yes
BTFR_TEXT -
Data type: BTFR_TEXTOptional: Yes
Call by Reference: Yes
BTFR_STRING -
Data type: BTFR_STRINGOptional: Yes
Call by Reference: Yes
PACKAGE - Package
Data type: DEVCLASSOptional: Yes
Call by Reference: Yes
ALIAS - Unique Alias Name for OTR Concept
Data type: SOTR_ALIASOptional: Yes
Call by Reference: Yes
OBJECT_TYPE - Object Type
Data type: TROBJTYPEOptional: Yes
Call by Reference: Yes
OBJECT_NAME -
Data type: TROBJ_NAMEOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BTFR_SELECTION_SCREEN 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_text_tab | TYPE BTFR_TEXT_TT, " | |||
| lv_edit_mode | TYPE BTFR_EDIT_MODE, " 'SHOW' | |||
| lv_flag_string | TYPE BTFR_F_STRING, " | |||
| lv_target_context | TYPE SOTR_CNTXT, " | |||
| lv_target_text | TYPE BTFR_TEXT-TEXT, " | |||
| lv_langu | TYPE SPRAS, " SY-LANGU | |||
| lv_string_tab | TYPE BTFR_STRING_TT, " | |||
| lv_flag_fuzzy_search | TYPE BTFR_FLAG, " | |||
| lv_help_tab | TYPE BTFR_HELP_TT, " | |||
| lv_target_langu | TYPE SPRAS, " | |||
| lv_flag_no_display_texttype | TYPE BTFR_FLAG, " 'X' | |||
| lv_btfr_text | TYPE BTFR_TEXT, " | |||
| lv_flag_cancelled | TYPE BTFR_FLAG, " | |||
| lv_flag_no_display_context | TYPE BTFR_FLAG, " 'X' | |||
| lv_btfr_string | TYPE BTFR_STRING, " | |||
| lv_flag_get_all_contexts | TYPE BTFR_FLAG, " | |||
| lv_package | TYPE DEVCLASS, " | |||
| lv_start_row | TYPE SYCUCOL, " | |||
| lv_alias | TYPE SOTR_ALIAS, " | |||
| lv_start_col | TYPE SYCUCOL, " | |||
| lv_object_type | TYPE TROBJTYPE, " | |||
| lv_object_name | TYPE TROBJ_NAME. " |
|   CALL FUNCTION 'BTFR_SELECTION_SCREEN' " |
| EXPORTING | ||
| EDIT_MODE | = lv_edit_mode | |
| FLAG_FUZZY_SEARCH | = lv_flag_fuzzy_search | |
| FLAG_NO_DISPLAY_TEXTTYPE | = lv_flag_no_display_texttype | |
| FLAG_NO_DISPLAY_CONTEXT | = lv_flag_no_display_context | |
| FLAG_GET_ALL_CONTEXTS | = lv_flag_get_all_contexts | |
| START_ROW | = lv_start_row | |
| START_COL | = lv_start_col | |
| IMPORTING | ||
| TEXT_TAB | = lv_text_tab | |
| STRING_TAB | = lv_string_tab | |
| HELP_TAB | = lv_help_tab | |
| FLAG_CANCELLED | = lv_flag_cancelled | |
| CHANGING | ||
| FLAG_STRING | = lv_flag_string | |
| TARGET_CONTEXT | = lv_target_context | |
| TARGET_TEXT | = lv_target_text | |
| LANGU | = lv_langu | |
| TARGET_LANGU | = lv_target_langu | |
| BTFR_TEXT | = lv_btfr_text | |
| BTFR_STRING | = lv_btfr_string | |
| PACKAGE | = lv_package | |
| ALIAS | = lv_alias | |
| OBJECT_TYPE | = lv_object_type | |
| OBJECT_NAME | = lv_object_name | |
| . " BTFR_SELECTION_SCREEN | ||
ABAP code using 7.40 inline data declarations to call FM BTFR_SELECTION_SCREEN
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_edit_mode) | = 'SHOW'. | |||
| "SELECT single TEXT FROM BTFR_TEXT INTO @DATA(ld_target_text). | ||||
| DATA(ld_langu) | = SY-LANGU. | |||
| DATA(ld_flag_no_display_texttype) | = 'X'. | |||
| DATA(ld_flag_no_display_context) | = 'X'. | |||
Search for further information about these or an SAP related objects