SAP SELECT_OPTIONS_PROVIDE Function Module for Retrieve Select Options









SELECT_OPTIONS_PROVIDE is a standard select options provide SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Retrieve 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 provide FM, simply by entering the name SELECT_OPTIONS_PROVIDE 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_PROVIDE 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_PROVIDE'"Retrieve Select Options
EXPORTING
* GUI_MODUS = ' ' "Auswahl des GUI-Status ('1' oder '2')
* GUI_TITEL = 'SELECT-OPTIONS' "Title line
* INPUT = '1' "Änderungsmodus = '1'
* SNBNR = '0' "Bedingungsnummer (nur wenn IVDBEDI leer)

TABLES
IVDBED = "Import-/Export-Tabelle für VDBED

EXCEPTIONS
NO_SNBNR = 1
.



IMPORTING Parameters details for SELECT_OPTIONS_PROVIDE

GUI_MODUS - Auswahl des GUI-Status ('1' oder '2')

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

GUI_TITEL - Title line

Data type:
Default: 'SELECT-OPTIONS'
Optional: Yes
Call by Reference: No ( called with pass by value option)

INPUT - Änderungsmodus = '1'

Data type:
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SNBNR - Bedingungsnummer (nur wenn IVDBEDI leer)

Data type: VDBED-SNBNR
Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for SELECT_OPTIONS_PROVIDE

IVDBED - Import-/Export-Tabelle für VDBED

Data type: VDBED
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_SNBNR - Weder SNBNR noch IVDBEDI übergeben.

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SELECT_OPTIONS_PROVIDE 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:
lt_ivdbed  TYPE STANDARD TABLE OF VDBED, "   
lv_no_snbnr  TYPE VDBED, "   
lv_gui_modus  TYPE VDBED, "   SPACE
lv_gui_titel  TYPE VDBED, "   'SELECT-OPTIONS'
lv_input  TYPE VDBED, "   '1'
lv_snbnr  TYPE VDBED-SNBNR. "   '0'

  CALL FUNCTION 'SELECT_OPTIONS_PROVIDE'  "Retrieve Select Options
    EXPORTING
         GUI_MODUS = lv_gui_modus
         GUI_TITEL = lv_gui_titel
         INPUT = lv_input
         SNBNR = lv_snbnr
    TABLES
         IVDBED = lt_ivdbed
    EXCEPTIONS
        NO_SNBNR = 1
. " SELECT_OPTIONS_PROVIDE




ABAP code using 7.40 inline data declarations to call FM SELECT_OPTIONS_PROVIDE

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_gui_modus) = ' '.
 
DATA(ld_gui_titel) = 'SELECT-OPTIONS'.
 
DATA(ld_input) = '1'.
 
"SELECT single SNBNR FROM VDBED INTO @DATA(ld_snbnr).
DATA(ld_snbnr) = '0'.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!