SAP Function Modules

RS_SET_SELECT_OPTIONS_OPTIONS SAP Function module







RS_SET_SELECT_OPTIONS_OPTIONS is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name RS_SET_SELECT_OPTIONS_OPTIONS into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: ALDB
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM RS_SET_SELECT_OPTIONS_OPTIONS - RS SET SELECT OPTIONS OPTIONS





CALL FUNCTION 'RS_SET_SELECT_OPTIONS_OPTIONS' "
  EXPORTING
    high =                      "               Upper limit
*   just_display = SPACE        "               Display mode
    low =                       "               Lower limit
*   olength = 40                "               Output length
*   olength_high = 0            "               Output length
    option =                    " raldb-option  Option (EQ, BT ... )
    option_set =                "               Set of allowed options
*   x_options =                 " sydb0_xoptions
*   signs_restriction =         "
    selcname =                  " rsscr-name    Name of the SELECT-OPTION
    selctext =                  "               Text of the SELECT-OPTION
    sign =                      " raldb-sign    Sign (I/E)
*   complex_selections = SPACE  "
*   force_list = SPACE          "
  IMPORTING
    option =                    " raldb-option  Option (EQ, BT ... )
    sign =                      " raldb-sign    Sign (I/E)
  EXCEPTIONS
    DELETE_LINE = 1             "               Line is to be deleted
    NOT_EXECUTED = 2            "               Leave old option
    .  "  RS_SET_SELECT_OPTIONS_OPTIONS

ABAP code example for Function Module RS_SET_SELECT_OPTIONS_OPTIONS





The ABAP code below is a full code listing to execute function module RS_SET_SELECT_OPTIONS_OPTIONS including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_option  TYPE RALDB-OPTION ,
ld_sign  TYPE RALDB-SIGN .

DATA(ld_high) = 'some text here'.
DATA(ld_just_display) = 'some text here'.
DATA(ld_low) = 'some text here'.
DATA(ld_olength) = 'some text here'.
DATA(ld_olength_high) = 'some text here'.

DATA(ld_option) = some text here
DATA(ld_option_set) = 'some text here'.
DATA(ld_x_options) = 'some text here'.
DATA(ld_signs_restriction) = 'some text here'.

DATA(ld_selcname) = some text here
DATA(ld_selctext) = 'some text here'.

DATA(ld_sign) = some text here
DATA(ld_complex_selections) = 'some text here'.
DATA(ld_force_list) = 'some text here'. . CALL FUNCTION 'RS_SET_SELECT_OPTIONS_OPTIONS' EXPORTING high = ld_high * just_display = ld_just_display low = ld_low * olength = ld_olength * olength_high = ld_olength_high option = ld_option option_set = ld_option_set * x_options = ld_x_options * signs_restriction = ld_signs_restriction selcname = ld_selcname selctext = ld_selctext sign = ld_sign * complex_selections = ld_complex_selections * force_list = ld_force_list IMPORTING option = ld_option sign = ld_sign EXCEPTIONS DELETE_LINE = 1 NOT_EXECUTED = 2 . " RS_SET_SELECT_OPTIONS_OPTIONS
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_option  TYPE RALDB-OPTION ,
ld_high  TYPE STRING ,
ld_sign  TYPE RALDB-SIGN ,
ld_just_display  TYPE STRING ,
ld_low  TYPE STRING ,
ld_olength  TYPE STRING ,
ld_olength_high  TYPE STRING ,
ld_option  TYPE RALDB-OPTION ,
ld_option_set  TYPE STRING ,
ld_x_options  TYPE SYDB0_XOPTIONS ,
ld_signs_restriction  TYPE STRING ,
ld_selcname  TYPE RSSCR-NAME ,
ld_selctext  TYPE STRING ,
ld_sign  TYPE RALDB-SIGN ,
ld_complex_selections  TYPE STRING ,
ld_force_list  TYPE STRING .

ld_high = 'some text here'.
ld_just_display = 'some text here'.
ld_low = 'some text here'.
ld_olength = 'some text here'.
ld_olength_high = 'some text here'.

ld_option = some text here
ld_option_set = 'some text here'.
ld_x_options = 'some text here'.
ld_signs_restriction = 'some text here'.

ld_selcname = some text here
ld_selctext = 'some text here'.

ld_sign = some text here
ld_complex_selections = 'some text here'.
ld_force_list = 'some text here'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name RS_SET_SELECT_OPTIONS_OPTIONS or its description.