SAP COMPLEX_SELECTIONS_DIALOG Function Module for External Call 'Multiple Selection'









COMPLEX_SELECTIONS_DIALOG is a standard complex selections dialog SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for External Call 'Multiple Selection' 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 complex selections dialog FM, simply by entering the name COMPLEX_SELECTIONS_DIALOG into the relevant SAP transaction such as SE37 or SE38.

Function Group: ALDB
Program Name: SAPLALDB
Main Program: SAPLALDB
Appliation area: S
Release date: 26-Feb-1998
Mode(Normal, Remote etc): Normal Function Module
Update:



Function COMPLEX_SELECTIONS_DIALOG 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 'COMPLEX_SELECTIONS_DIALOG'"External Call 'Multiple Selection'
EXPORTING
* TITLE = ' ' "Dialog Box Title
* HELP_FIELD = "Dictionary Field Name for F1/F4
* SEARCH_HELP = "
* TAB_AND_FIELD = "Table Name, Field Name
* TEXT = "Text for Options Dialog Box
* SIGNED = 'X' "X: Sign Allowed
* LOWER_CASE = ' ' "X: Upper/Lowercase
* NO_INTERVAL_CHECK = ' ' "X: No Check for Valid Interval
* JUST_DISPLAY = ' ' "X: Display Only
* JUST_INCL = ' ' "X: Select Only
* EXCLUDED_OPTIONS = "List of Options Not Allowed
* DESCRIPTION = "Field Description If Different

TABLES
RANGE = "Content Table

EXCEPTIONS
NO_RANGE_TAB = 1 CANCELLED = 2 INTERNAL_ERROR = 3 INVALID_FIELDNAME = 4
.



IMPORTING Parameters details for COMPLEX_SELECTIONS_DIALOG

TITLE - Dialog Box Title

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

HELP_FIELD - Dictionary Field Name for F1/F4

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

SEARCH_HELP -

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

TAB_AND_FIELD - Table Name, Field Name

Data type: RSTABFIELD
Optional: Yes
Call by Reference: Yes

TEXT - Text for Options Dialog Box

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

SIGNED - X: Sign Allowed

Data type: RSCONVERT-SIGN
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

LOWER_CASE - X: Upper/Lowercase

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

NO_INTERVAL_CHECK - X: No Check for Valid Interval

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

JUST_DISPLAY - X: Display Only

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

JUST_INCL - X: Select Only

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

EXCLUDED_OPTIONS - List of Options Not Allowed

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

DESCRIPTION - Field Description If Different

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

TABLES Parameters details for COMPLEX_SELECTIONS_DIALOG

RANGE - Content Table

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

EXCEPTIONS details

NO_RANGE_TAB - Table Not a RANGES Table

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

CANCELLED - Action was canceled

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

INTERNAL_ERROR - Internal Error

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

INVALID_FIELDNAME - Incorrect Field Description

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for COMPLEX_SELECTIONS_DIALOG 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_range  TYPE STANDARD TABLE OF STRING, "   
lv_title  TYPE SY-TITLE, "   SPACE
lv_no_range_tab  TYPE SY, "   
lv_help_field  TYPE RSSCR-DBFIELD, "   
lv_search_help  TYPE DDSHDESCR-SHLPNAME, "   
lv_tab_and_field  TYPE RSTABFIELD, "   
lv_text  TYPE RSSELINT-TEXT, "   
lv_cancelled  TYPE RSSELINT, "   
lv_signed  TYPE RSCONVERT-SIGN, "   'X'
lv_internal_error  TYPE RSCONVERT, "   
lv_lower_case  TYPE RSCONVERT-LOWER, "   SPACE
lv_invalid_fieldname  TYPE RSCONVERT, "   
lv_no_interval_check  TYPE RSVUVINT-NO_INT_CHK, "   SPACE
lv_just_display  TYPE C, "   SPACE
lv_just_incl  TYPE C, "   SPACE
lv_excluded_options  TYPE RSOPTIONS, "   
lv_description  TYPE RSFLDESC. "   

  CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'  "External Call 'Multiple Selection'
    EXPORTING
         TITLE = lv_title
         HELP_FIELD = lv_help_field
         SEARCH_HELP = lv_search_help
         TAB_AND_FIELD = lv_tab_and_field
         TEXT = lv_text
         SIGNED = lv_signed
         LOWER_CASE = lv_lower_case
         NO_INTERVAL_CHECK = lv_no_interval_check
         JUST_DISPLAY = lv_just_display
         JUST_INCL = lv_just_incl
         EXCLUDED_OPTIONS = lv_excluded_options
         DESCRIPTION = lv_description
    TABLES
         RANGE = lt_range
    EXCEPTIONS
        NO_RANGE_TAB = 1
        CANCELLED = 2
        INTERNAL_ERROR = 3
        INVALID_FIELDNAME = 4
. " COMPLEX_SELECTIONS_DIALOG




ABAP code using 7.40 inline data declarations to call FM COMPLEX_SELECTIONS_DIALOG

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 DBFIELD FROM RSSCR INTO @DATA(ld_help_field).
 
"SELECT single SHLPNAME FROM DDSHDESCR INTO @DATA(ld_search_help).
 
 
"SELECT single TEXT FROM RSSELINT INTO @DATA(ld_text).
 
 
"SELECT single SIGN FROM RSCONVERT INTO @DATA(ld_signed).
DATA(ld_signed) = 'X'.
 
 
"SELECT single LOWER FROM RSCONVERT INTO @DATA(ld_lower_case).
DATA(ld_lower_case) = ' '.
 
 
"SELECT single NO_INT_CHK FROM RSVUVINT INTO @DATA(ld_no_interval_check).
DATA(ld_no_interval_check) = ' '.
 
DATA(ld_just_display) = ' '.
 
DATA(ld_just_incl) = ' '.
 
 
 


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!