SAP RS_COMPLEX_SELECTION Function Module for









RS_COMPLEX_SELECTION is a standard rs complex selection 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 rs complex selection FM, simply by entering the name RS_COMPLEX_SELECTION 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 RS_COMPLEX_SELECTION 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 'RS_COMPLEX_SELECTION'"
EXPORTING
P_SSCR = "SSCR line of select-option
* OPTIONS = "
* SIGNS_RESTRICTION = "
* TITLE = ' ' "
P_REPORT = "Report name
P_SCREEN_LOW = "Screen of LOW field
P_SCREEN_HIGH = "Screen of HIGH field
* P_SSCR_INDEX = 0 "Index of SSCR line
* P_JUST_DISPLAY = ' ' "Display only ?
* P_NO_INT_CHK = ' ' "
* P_FREE_SELECTIONS = ' ' "Called from dynamic selections selection screen ?
P_CONVERT = "

EXCEPTIONS
CANCELLED = 1
.



IMPORTING Parameters details for RS_COMPLEX_SELECTION

P_SSCR - SSCR line of select-option

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

OPTIONS -

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

SIGNS_RESTRICTION -

Data type:
Optional: Yes
Call by Reference: Yes

TITLE -

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

P_REPORT - Report name

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

P_SCREEN_LOW - Screen of LOW field

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

P_SCREEN_HIGH - Screen of HIGH field

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

P_SSCR_INDEX - Index of SSCR line

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

P_JUST_DISPLAY - Display only ?

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

P_NO_INT_CHK -

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

P_FREE_SELECTIONS - Called from dynamic selections selection screen ?

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

P_CONVERT -

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

EXCEPTIONS details

CANCELLED - Entry canceled

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

Copy and paste ABAP code example for RS_COMPLEX_SELECTION 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_p_sscr  TYPE RSSCR, "   
lv_cancelled  TYPE RSSCR, "   
lv_options  TYPE SYDB0_XOPTIONS, "   
lv_signs_restriction  TYPE SYDB0_XOPTIONS, "   
lv_title  TYPE SY-TITLE, "   SPACE
lv_p_report  TYPE TRDIR-NAME, "   
lv_p_screen_low  TYPE TRDIR, "   
lv_p_screen_high  TYPE TRDIR, "   
lv_p_sscr_index  TYPE SY-TABIX, "   0
lv_p_just_display  TYPE SY, "   SPACE
lv_p_no_int_chk  TYPE SY, "   SPACE
lv_p_free_selections  TYPE SY, "   SPACE
lv_p_convert  TYPE RSCONVERT. "   

  CALL FUNCTION 'RS_COMPLEX_SELECTION'  "
    EXPORTING
         P_SSCR = lv_p_sscr
         OPTIONS = lv_options
         SIGNS_RESTRICTION = lv_signs_restriction
         TITLE = lv_title
         P_REPORT = lv_p_report
         P_SCREEN_LOW = lv_p_screen_low
         P_SCREEN_HIGH = lv_p_screen_high
         P_SSCR_INDEX = lv_p_sscr_index
         P_JUST_DISPLAY = lv_p_just_display
         P_NO_INT_CHK = lv_p_no_int_chk
         P_FREE_SELECTIONS = lv_p_free_selections
         P_CONVERT = lv_p_convert
    EXCEPTIONS
        CANCELLED = 1
. " RS_COMPLEX_SELECTION




ABAP code using 7.40 inline data declarations to call FM RS_COMPLEX_SELECTION

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 TITLE FROM SY INTO @DATA(ld_title).
DATA(ld_title) = ' '.
 
"SELECT single NAME FROM TRDIR INTO @DATA(ld_p_report).
 
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_p_sscr_index).
 
DATA(ld_p_just_display) = ' '.
 
DATA(ld_p_no_int_chk) = ' '.
 
DATA(ld_p_free_selections) = ' '.
 
 


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!