SAP SELECT_OPTIONS_APPLY Function Module for Call Select Options
SELECT_OPTIONS_APPLY is a standard select options apply SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Call Select Options 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 select options apply FM, simply by entering the name SELECT_OPTIONS_APPLY into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVP0
Program Name: SAPLFVP0
Main Program: SAPLFVP0
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SELECT_OPTIONS_APPLY 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 'SELECT_OPTIONS_APPLY'"Call Select Options.
EXPORTING
BUKRS = "Company Code
* SVNR = ' ' "Version laufende Nummer (optional)
* SVYM = ' ' "Version JJJJMM (optional)
* USE_DERFASS = 'X' "Verwendung des internen Datum anstelle von DATE
* DATE = SY-DATUM "Date (optional)
* MODE = 'ED' "VD,GO,GR,HO,HR,OD,OR,ED
* RANL = ' ' "Darlehensnummer für genau ein Darlehen (optional
* RHORD = ' ' "Hauptordnerkenung (optional)
* RORD = ' ' "Ordnerkennung (optional)
SKSTYP = "Ermittlung des 'richtigen' Kokos
* SREG = ' ' "Registerkennung (optional)
STYP = "Trans. Cat.
TABLES
EINFO = "Structure for Error Messages
IVDBED = "Selection Conditions
EXCEPTIONS
ERROR_IN_PARAMETERS = 1
IMPORTING Parameters details for SELECT_OPTIONS_APPLY
BUKRS - Company Code
Data type: T001-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
SVNR - Version laufende Nummer (optional)
Data type: VDPOKO-SVNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SVYM - Version JJJJMM (optional)
Data type: VDPOKO-SVYMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
USE_DERFASS - Verwendung des internen Datum anstelle von DATE
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DATE - Date (optional)
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE - VD,GO,GR,HO,HR,OD,OR,ED
Data type:Default: 'ED'
Optional: Yes
Call by Reference: No ( called with pass by value option)
RANL - Darlehensnummer für genau ein Darlehen (optional
Data type: VDARL-RANLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
RHORD - Hauptordnerkenung (optional)
Data type: VDPOKO-RHORDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
RORD - Ordnerkennung (optional)
Data type: VDPOKO-RORDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SKSTYP - Ermittlung des 'richtigen' Kokos
Data type: RMF67PF-SKSTYPOptional: No
Call by Reference: No ( called with pass by value option)
SREG - Registerkennung (optional)
Data type: TDP1-SREGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
STYP - Trans. Cat.
Data type: VDPOKO-STYPOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SELECT_OPTIONS_APPLY
EINFO - Structure for Error Messages
Data type: EINFOOptional: No
Call by Reference: No ( called with pass by value option)
IVDBED - Selection Conditions
Data type: VDBEDOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR_IN_PARAMETERS - Fehler bei Paramterübergabe
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SELECT_OPTIONS_APPLY 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_bukrs | TYPE T001-BUKRS, " | |||
| lt_einfo | TYPE STANDARD TABLE OF EINFO, " | |||
| lv_error_in_parameters | TYPE EINFO, " | |||
| lv_svnr | TYPE VDPOKO-SVNR, " SPACE | |||
| lv_svym | TYPE VDPOKO-SVYM, " SPACE | |||
| lv_use_derfass | TYPE VDPOKO, " 'X' | |||
| lv_date | TYPE SY-DATUM, " SY-DATUM | |||
| lt_ivdbed | TYPE STANDARD TABLE OF VDBED, " | |||
| lv_mode | TYPE VDBED, " 'ED' | |||
| lv_ranl | TYPE VDARL-RANL, " SPACE | |||
| lv_rhord | TYPE VDPOKO-RHORD, " SPACE | |||
| lv_rord | TYPE VDPOKO-RORD, " SPACE | |||
| lv_skstyp | TYPE RMF67PF-SKSTYP, " | |||
| lv_sreg | TYPE TDP1-SREG, " SPACE | |||
| lv_styp | TYPE VDPOKO-STYP. " |
|   CALL FUNCTION 'SELECT_OPTIONS_APPLY' "Call Select Options |
| EXPORTING | ||
| BUKRS | = lv_bukrs | |
| SVNR | = lv_svnr | |
| SVYM | = lv_svym | |
| USE_DERFASS | = lv_use_derfass | |
| DATE | = lv_date | |
| MODE | = lv_mode | |
| RANL | = lv_ranl | |
| RHORD | = lv_rhord | |
| RORD | = lv_rord | |
| SKSTYP | = lv_skstyp | |
| SREG | = lv_sreg | |
| STYP | = lv_styp | |
| TABLES | ||
| EINFO | = lt_einfo | |
| IVDBED | = lt_ivdbed | |
| EXCEPTIONS | ||
| ERROR_IN_PARAMETERS = 1 | ||
| . " SELECT_OPTIONS_APPLY | ||
ABAP code using 7.40 inline data declarations to call FM SELECT_OPTIONS_APPLY
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 BUKRS FROM T001 INTO @DATA(ld_bukrs). | ||||
| "SELECT single SVNR FROM VDPOKO INTO @DATA(ld_svnr). | ||||
| DATA(ld_svnr) | = ' '. | |||
| "SELECT single SVYM FROM VDPOKO INTO @DATA(ld_svym). | ||||
| DATA(ld_svym) | = ' '. | |||
| DATA(ld_use_derfass) | = 'X'. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_date). | ||||
| DATA(ld_date) | = SY-DATUM. | |||
| DATA(ld_mode) | = 'ED'. | |||
| "SELECT single RANL FROM VDARL INTO @DATA(ld_ranl). | ||||
| DATA(ld_ranl) | = ' '. | |||
| "SELECT single RHORD FROM VDPOKO INTO @DATA(ld_rhord). | ||||
| DATA(ld_rhord) | = ' '. | |||
| "SELECT single RORD FROM VDPOKO INTO @DATA(ld_rord). | ||||
| DATA(ld_rord) | = ' '. | |||
| "SELECT single SKSTYP FROM RMF67PF INTO @DATA(ld_skstyp). | ||||
| "SELECT single SREG FROM TDP1 INTO @DATA(ld_sreg). | ||||
| DATA(ld_sreg) | = ' '. | |||
| "SELECT single STYP FROM VDPOKO INTO @DATA(ld_styp). | ||||
Search for further information about these or an SAP related objects