SAP SELECT_OPTION_OPTIONS Function Module for









SELECT_OPTION_OPTIONS is a standard select option options 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 select option options FM, simply by entering the name SELECT_OPTION_OPTIONS into the relevant SAP transaction such as SE37 or SE38.

Function Group: ALDB
Program Name: SAPLALDB
Main Program: SAPLALDB
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SELECT_OPTION_OPTIONS 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_OPTION_OPTIONS'"
EXPORTING
SELCTEXT = "Text
* SIGN = "
* OPTION = "
* JUST_DISPLAY = ' ' "Display mode
* SIGNS_RESTRICTION = "
OPTION_LIST = "
* NO_DEL_LINE = ' ' "

IMPORTING
SIGN = "
OPTION = "

EXCEPTIONS
DELETE_LINE = 1 NOT_EXECUTED = 2 ILLEGAL_SIGN = 3
.



IMPORTING Parameters details for SELECT_OPTION_OPTIONS

SELCTEXT - Text

Data type: C
Optional: No
Call by Reference: Yes

SIGN -

Data type: RALDB-SIGN
Optional: Yes
Call by Reference: No ( called with pass by value option)

OPTION -

Data type: RALDB-OPTION
Optional: Yes
Call by Reference: No ( called with pass by value option)

JUST_DISPLAY - Display mode

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

SIGNS_RESTRICTION -

Data type: RALDB-SIGN
Optional: Yes
Call by Reference: Yes

OPTION_LIST -

Data type: RSOPTIONS
Optional: No
Call by Reference: Yes

NO_DEL_LINE -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for SELECT_OPTION_OPTIONS

SIGN -

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

OPTION -

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

EXCEPTIONS details

DELETE_LINE -

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

NOT_EXECUTED -

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

ILLEGAL_SIGN -

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

Copy and paste ABAP code example for SELECT_OPTION_OPTIONS 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_sign  TYPE RALDB-SIGN, "   
lv_selctext  TYPE C, "   
lv_delete_line  TYPE C, "   
lv_sign  TYPE RALDB-SIGN, "   
lv_option  TYPE RALDB-OPTION, "   
lv_not_executed  TYPE RALDB, "   
lv_option  TYPE RALDB-OPTION, "   
lv_illegal_sign  TYPE RALDB, "   
lv_just_display  TYPE C, "   SPACE
lv_signs_restriction  TYPE RALDB-SIGN, "   
lv_option_list  TYPE RSOPTIONS, "   
lv_no_del_line  TYPE C. "   SPACE

  CALL FUNCTION 'SELECT_OPTION_OPTIONS'  "
    EXPORTING
         SELCTEXT = lv_selctext
         SIGN = lv_sign
         OPTION = lv_option
         JUST_DISPLAY = lv_just_display
         SIGNS_RESTRICTION = lv_signs_restriction
         OPTION_LIST = lv_option_list
         NO_DEL_LINE = lv_no_del_line
    IMPORTING
         SIGN = lv_sign
         OPTION = lv_option
    EXCEPTIONS
        DELETE_LINE = 1
        NOT_EXECUTED = 2
        ILLEGAL_SIGN = 3
. " SELECT_OPTION_OPTIONS




ABAP code using 7.40 inline data declarations to call FM SELECT_OPTION_OPTIONS

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 SIGN FROM RALDB INTO @DATA(ld_sign).
 
 
 
"SELECT single SIGN FROM RALDB INTO @DATA(ld_sign).
 
"SELECT single OPTION FROM RALDB INTO @DATA(ld_option).
 
 
"SELECT single OPTION FROM RALDB INTO @DATA(ld_option).
 
 
DATA(ld_just_display) = ' '.
 
"SELECT single SIGN FROM RALDB INTO @DATA(ld_signs_restriction).
 
 
DATA(ld_no_del_line) = ' '.
 


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!