SAP F4_ENTER_SELECTIONS Function Module for Dialog box for further selection restrictions
F4_ENTER_SELECTIONS is a standard f4 enter selections SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Dialog box for further selection restrictions processing and below is the pattern details for this FM, 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 f4 enter selections FM, simply by entering the name F4_ENTER_SELECTIONS into the relevant SAP transaction such as SE37 or SE38.
Function Group: SDH4
Program Name: SAPLSDH4
Main Program: SAPLSDH4
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function F4_ENTER_SELECTIONS 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 'F4_ENTER_SELECTIONS'"Dialog box for further selection restrictions.
EXPORTING
SHLP_NAME = "
* STARTING_X = 1 "
* STARTING_Y = 1 "
* NO_COMPLEX = ' ' "
* NO_MAXCNT = ' ' "
* TITLE = "
* WITH_ICON_DELETE = ' ' "
IMPORTING
FCODE = "
CHANGING
* MAX_CNT = "
TABLES
SELFLDS_TAB = "
SELOPT_TAB = "
* EXCL_TAB = "
IMPORTING Parameters details for F4_ENTER_SELECTIONS
SHLP_NAME -
Data type: DD30L-SHLPNAMEOptional: No
Call by Reference: No ( called with pass by value option)
STARTING_X -
Data type: SY-CUCOLDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
STARTING_Y -
Data type: SY-CUROWDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_COMPLEX -
Data type: DDREFSTRUC-BOOLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_MAXCNT -
Data type: DDSHF4CTRL-NO_MAXDISPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TITLE -
Data type: SY-TITLEOptional: Yes
Call by Reference: No ( called with pass by value option)
WITH_ICON_DELETE -
Data type: DDREFSTRUC-BOOLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for F4_ENTER_SELECTIONS
FCODE -
Data type: SY-UCOMMOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for F4_ENTER_SELECTIONS
MAX_CNT -
Data type: DDSHF4CTRL-MAXRECORDSOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for F4_ENTER_SELECTIONS
SELFLDS_TAB -
Data type: DFIESOptional: No
Call by Reference: No ( called with pass by value option)
SELOPT_TAB -
Data type: DDSHSELOPTOptional: No
Call by Reference: No ( called with pass by value option)
EXCL_TAB -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for F4_ENTER_SELECTIONS 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_fcode | TYPE SY-UCOMM, " | |||
| lv_max_cnt | TYPE DDSHF4CTRL-MAXRECORDS, " | |||
| lv_shlp_name | TYPE DD30L-SHLPNAME, " | |||
| lt_selflds_tab | TYPE STANDARD TABLE OF DFIES, " | |||
| lt_selopt_tab | TYPE STANDARD TABLE OF DDSHSELOPT, " | |||
| lv_starting_x | TYPE SY-CUCOL, " 1 | |||
| lt_excl_tab | TYPE STANDARD TABLE OF SY, " | |||
| lv_starting_y | TYPE SY-CUROW, " 1 | |||
| lv_no_complex | TYPE DDREFSTRUC-BOOL, " SPACE | |||
| lv_no_maxcnt | TYPE DDSHF4CTRL-NO_MAXDISP, " SPACE | |||
| lv_title | TYPE SY-TITLE, " | |||
| lv_with_icon_delete | TYPE DDREFSTRUC-BOOL. " SPACE |
|   CALL FUNCTION 'F4_ENTER_SELECTIONS' "Dialog box for further selection restrictions |
| EXPORTING | ||
| SHLP_NAME | = lv_shlp_name | |
| STARTING_X | = lv_starting_x | |
| STARTING_Y | = lv_starting_y | |
| NO_COMPLEX | = lv_no_complex | |
| NO_MAXCNT | = lv_no_maxcnt | |
| TITLE | = lv_title | |
| WITH_ICON_DELETE | = lv_with_icon_delete | |
| IMPORTING | ||
| FCODE | = lv_fcode | |
| CHANGING | ||
| MAX_CNT | = lv_max_cnt | |
| TABLES | ||
| SELFLDS_TAB | = lt_selflds_tab | |
| SELOPT_TAB | = lt_selopt_tab | |
| EXCL_TAB | = lt_excl_tab | |
| . " F4_ENTER_SELECTIONS | ||
ABAP code using 7.40 inline data declarations to call FM F4_ENTER_SELECTIONS
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.| "SELECT single UCOMM FROM SY INTO @DATA(ld_fcode). | ||||
| "SELECT single MAXRECORDS FROM DDSHF4CTRL INTO @DATA(ld_max_cnt). | ||||
| "SELECT single SHLPNAME FROM DD30L INTO @DATA(ld_shlp_name). | ||||
| "SELECT single CUCOL FROM SY INTO @DATA(ld_starting_x). | ||||
| DATA(ld_starting_x) | = 1. | |||
| "SELECT single CUROW FROM SY INTO @DATA(ld_starting_y). | ||||
| DATA(ld_starting_y) | = 1. | |||
| "SELECT single BOOL FROM DDREFSTRUC INTO @DATA(ld_no_complex). | ||||
| DATA(ld_no_complex) | = ' '. | |||
| "SELECT single NO_MAXDISP FROM DDSHF4CTRL INTO @DATA(ld_no_maxcnt). | ||||
| DATA(ld_no_maxcnt) | = ' '. | |||
| "SELECT single TITLE FROM SY INTO @DATA(ld_title). | ||||
| "SELECT single BOOL FROM DDREFSTRUC INTO @DATA(ld_with_icon_delete). | ||||
| DATA(ld_with_icon_delete) | = ' '. | |||
Search for further information about these or an SAP related objects