SAP Function Modules

FI_COMPLEX_SELECTIONS_DIALOG SAP Function module







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

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


Pattern for FM FI_COMPLEX_SELECTIONS_DIALOG - FI COMPLEX SELECTIONS DIALOG





CALL FUNCTION 'FI_COMPLEX_SELECTIONS_DIALOG' "
* EXPORTING
*   title = SPACE               " sy-title      Title
*   text =                      " rsselint-text
*   signed = 'X'                " rsconvert-sign
*   lower_case = SPACE          " rsconvert-lower
*   just_display = SPACE        "               Display
*   i_fieldname =               " help_value-fieldname  Field name for F4 help
*   i_tabname =                 " help_value-tabname  Table name for F4 values
*   i_f4_type = '0'             "               Mode for F4 help (0=none, 1=table, 2=MC)
*   i_macobj = ' '              " dd23l-mconame  Matchcode object for F4 help via matchcode
  TABLES
    range =                     "               Range table for complex selection
*   t_fieldtab =                "               Table with fields for F4 help
*   t_valuetab =                "               Internal table for F4 help values
  EXCEPTIONS
    NO_RANGE_TAB = 1            "               No table for selection transferred
    CANCELLED = 2               "               Complex selection was terminated
    INTERNAL_ERROR = 3          "               Internal error (program error)
    .  "  FI_COMPLEX_SELECTIONS_DIALOG

ABAP code example for Function Module FI_COMPLEX_SELECTIONS_DIALOG





The ABAP code below is a full code listing to execute function module FI_COMPLEX_SELECTIONS_DIALOG 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_range  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_range  LIKE LINE OF it_range ,
it_t_fieldtab  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_t_fieldtab  LIKE LINE OF it_t_fieldtab ,
it_t_valuetab  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_t_valuetab  LIKE LINE OF it_t_valuetab .

DATA(ld_title) = 'some text here'.

DATA(ld_text) = some text here

DATA(ld_signed) = some text here

DATA(ld_lower_case) = some text here
DATA(ld_just_display) = 'some text here'.

DATA(ld_i_fieldname) = some text here

DATA(ld_i_tabname) = some text here
DATA(ld_i_f4_type) = 'some text here'.

SELECT single MCONAME
FROM DD23L
INTO @DATA(ld_i_macobj).


"populate fields of struture and append to itab
append wa_range to it_range.

"populate fields of struture and append to itab
append wa_t_fieldtab to it_t_fieldtab.

"populate fields of struture and append to itab
append wa_t_valuetab to it_t_valuetab. . CALL FUNCTION 'FI_COMPLEX_SELECTIONS_DIALOG' * EXPORTING * title = ld_title * text = ld_text * signed = ld_signed * lower_case = ld_lower_case * just_display = ld_just_display * i_fieldname = ld_i_fieldname * i_tabname = ld_i_tabname * i_f4_type = ld_i_f4_type * i_macobj = ld_i_macobj TABLES range = it_range * t_fieldtab = it_t_fieldtab * t_valuetab = it_t_valuetab EXCEPTIONS NO_RANGE_TAB = 1 CANCELLED = 2 INTERNAL_ERROR = 3 . " FI_COMPLEX_SELECTIONS_DIALOG
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 ELSEIF SY-SUBRC EQ 3. "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_title  TYPE SY-TITLE ,
it_range  TYPE STANDARD TABLE OF STRING ,
wa_range  LIKE LINE OF it_range,
ld_text  TYPE RSSELINT-TEXT ,
it_t_fieldtab  TYPE STANDARD TABLE OF STRING ,
wa_t_fieldtab  LIKE LINE OF it_t_fieldtab,
ld_signed  TYPE RSCONVERT-SIGN ,
it_t_valuetab  TYPE STANDARD TABLE OF STRING ,
wa_t_valuetab  LIKE LINE OF it_t_valuetab,
ld_lower_case  TYPE RSCONVERT-LOWER ,
ld_just_display  TYPE STRING ,
ld_i_fieldname  TYPE HELP_VALUE-FIELDNAME ,
ld_i_tabname  TYPE HELP_VALUE-TABNAME ,
ld_i_f4_type  TYPE STRING ,
ld_i_macobj  TYPE DD23L-MCONAME .

ld_title = 'some text here'.

"populate fields of struture and append to itab
append wa_range to it_range.

ld_text = some text here

"populate fields of struture and append to itab
append wa_t_fieldtab to it_t_fieldtab.

ld_signed = some text here

"populate fields of struture and append to itab
append wa_t_valuetab to it_t_valuetab.

ld_lower_case = some text here
ld_just_display = 'some text here'.

ld_i_fieldname = some text here

ld_i_tabname = some text here
ld_i_f4_type = 'some text here'.

SELECT single MCONAME
FROM DD23L
INTO ld_i_macobj.

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