SAP Function Modules

SHOW_SELECTION_LIST_MULTI SAP Function module







SHOW_SELECTION_LIST_MULTI 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 SHOW_SELECTION_LIST_MULTI into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM SHOW_SELECTION_LIST_MULTI - SHOW SELECTION LIST MULTI





CALL FUNCTION 'SHOW_SELECTION_LIST_MULTI' "
* EXPORTING
*   default_object = 0          " sy-curow      Index of object selected beforehan
*   field = SPACE               "               DDIC name of the field
*   list_title = SPACE          " reing-title   Header line of window
*   max_selects = 0             " sy-tabix      maximum number of elements to be chosen 0=any
*   no_pickup = SPACE           "               Display mode -> do not allow selection
*   originx = 0                 " sy-winx1
*   originx = 0                 " sy-winx1      x-coordinate of left top corner of
*   originy = 0                 " sy-winy1
*   originy = 0                 " sy-winy1      y-coordinate of left top corner of
*   sorted = 'X'                "               Table is sorted -> restart possible
*   table = SPACE               "               DDIC table of the field (FIELD)
*   width = 20                  " sy-winx1
*   width = 20                  " sy-winx1      Width of window
  TABLES
    list =                      "               List of objects to be selected
  EXCEPTIONS
    NO_FIELD = 1                "
    .  "  SHOW_SELECTION_LIST_MULTI

ABAP code example for Function Module SHOW_SELECTION_LIST_MULTI





The ABAP code below is a full code listing to execute function module SHOW_SELECTION_LIST_MULTI 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:
it_list  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_list  LIKE LINE OF it_list .

DATA(ld_default_object) = '123 '.
DATA(ld_field) = 'some text here'.

DATA(ld_list_title) = some text here
DATA(ld_max_selects) = '123 '.
DATA(ld_no_pickup) = 'some text here'.
DATA(ld_originx) = '123 '.
DATA(ld_originx) = '123 '.
DATA(ld_originy) = '123 '.
DATA(ld_originy) = '123 '.
DATA(ld_sorted) = 'some text here'.
DATA(ld_table) = 'some text here'.
DATA(ld_width) = '123 '.
DATA(ld_width) = '123 '.

"populate fields of struture and append to itab
append wa_list to it_list. . CALL FUNCTION 'SHOW_SELECTION_LIST_MULTI' * EXPORTING * default_object = ld_default_object * field = ld_field * list_title = ld_list_title * max_selects = ld_max_selects * no_pickup = ld_no_pickup * originx = ld_originx * originx = ld_originx * originy = ld_originy * originy = ld_originy * sorted = ld_sorted * table = ld_table * width = ld_width * width = ld_width TABLES list = it_list EXCEPTIONS NO_FIELD = 1 . " SHOW_SELECTION_LIST_MULTI
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_default_object  TYPE SY-CUROW ,
it_list  TYPE STANDARD TABLE OF STRING ,
wa_list  LIKE LINE OF it_list,
ld_field  TYPE STRING ,
ld_list_title  TYPE REING-TITLE ,
ld_max_selects  TYPE SY-TABIX ,
ld_no_pickup  TYPE STRING ,
ld_originx  TYPE SY-WINX1 ,
ld_originx  TYPE SY-WINX1 ,
ld_originy  TYPE SY-WINY1 ,
ld_originy  TYPE SY-WINY1 ,
ld_sorted  TYPE STRING ,
ld_table  TYPE STRING ,
ld_width  TYPE SY-WINX1 ,
ld_width  TYPE SY-WINX1 .

ld_default_object = '123 '.

"populate fields of struture and append to itab
append wa_list to it_list.
ld_field = 'some text here'.

ld_list_title = some text here
ld_max_selects = '123 '.
ld_no_pickup = 'some text here'.
ld_originx = '123 '.
ld_originx = '123 '.
ld_originy = '123 '.
ld_originy = '123 '.
ld_sorted = 'some text here'.
ld_table = 'some text here'.
ld_width = '123 '.
ld_width = '123 '.

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 SHOW_SELECTION_LIST_MULTI or its description.