SAP F4_ENTER_SELECTIONS_LIGHT Function Module for Simplified interface of F4_ENTER_SELECTIONS
F4_ENTER_SELECTIONS_LIGHT is a standard f4 enter selections light SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Simplified interface of F4_ENTER_SELECTIONS 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 light FM, simply by entering the name F4_ENTER_SELECTIONS_LIGHT into the relevant SAP transaction such as SE37 or SE38.
Function Group: SDH3
Program Name: SAPLSDH3
Main Program: SAPLSDH3
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
![](https://www.se80.co.uk/training-education/wp-content/uploads/2019/07/normal-function-module.png)
Function F4_ENTER_SELECTIONS_LIGHT 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_LIGHT'"Simplified interface of F4_ENTER_SELECTIONS.
EXPORTING
SHLP = "
* SELSTR = ' ' "
* NO_DIALOG = ' ' "
* NO_COMPLEX = ' ' "
* WITH_ICON_DELETE = ' ' "
IMPORTING
FCODE = "
OUT_SELSTR = "
TABLES
SELOPT_TAB = "
EXCEPTIONS
INVALID_ARGUMENTS = 1 INTERNAL_ERROR = 2
IMPORTING Parameters details for F4_ENTER_SELECTIONS_LIGHT
SHLP -
Data type: DDSHDESCROptional: No
Call by Reference: No ( called with pass by value option)
SELSTR -
Data type: RSMDY-MCSELSTRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_DIALOG -
Data type: DDREFSTRUC-BOOLDefault: SPACE
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)
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_LIGHT
FCODE -
Data type: SY-UCOMMOptional: No
Call by Reference: No ( called with pass by value option)
OUT_SELSTR -
Data type: RSMDY-MCSELSTROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for F4_ENTER_SELECTIONS_LIGHT
SELOPT_TAB -
Data type: DDSHSELOPTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INVALID_ARGUMENTS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for F4_ENTER_SELECTIONS_LIGHT 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_shlp | TYPE DDSHDESCR, " | |||
lv_fcode | TYPE SY-UCOMM, " | |||
lt_selopt_tab | TYPE STANDARD TABLE OF DDSHSELOPT, " | |||
lv_invalid_arguments | TYPE DDSHSELOPT, " | |||
lv_selstr | TYPE RSMDY-MCSELSTR, " SPACE | |||
lv_out_selstr | TYPE RSMDY-MCSELSTR, " | |||
lv_internal_error | TYPE RSMDY, " | |||
lv_no_dialog | TYPE DDREFSTRUC-BOOL, " SPACE | |||
lv_no_complex | TYPE DDREFSTRUC-BOOL, " SPACE | |||
lv_with_icon_delete | TYPE DDREFSTRUC-BOOL. " SPACE |
  CALL FUNCTION 'F4_ENTER_SELECTIONS_LIGHT' "Simplified interface of F4_ENTER_SELECTIONS |
EXPORTING | ||
SHLP | = lv_shlp | |
SELSTR | = lv_selstr | |
NO_DIALOG | = lv_no_dialog | |
NO_COMPLEX | = lv_no_complex | |
WITH_ICON_DELETE | = lv_with_icon_delete | |
IMPORTING | ||
FCODE | = lv_fcode | |
OUT_SELSTR | = lv_out_selstr | |
TABLES | ||
SELOPT_TAB | = lt_selopt_tab | |
EXCEPTIONS | ||
INVALID_ARGUMENTS = 1 | ||
INTERNAL_ERROR = 2 | ||
. " F4_ENTER_SELECTIONS_LIGHT |
ABAP code using 7.40 inline data declarations to call FM F4_ENTER_SELECTIONS_LIGHT
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 MCSELSTR FROM RSMDY INTO @DATA(ld_selstr). | ||||
DATA(ld_selstr) | = ' '. | |||
"SELECT single MCSELSTR FROM RSMDY INTO @DATA(ld_out_selstr). | ||||
"SELECT single BOOL FROM DDREFSTRUC INTO @DATA(ld_no_dialog). | ||||
DATA(ld_no_dialog) | = ' '. | |||
"SELECT single BOOL FROM DDREFSTRUC INTO @DATA(ld_no_complex). | ||||
DATA(ld_no_complex) | = ' '. | |||
"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