SAP Function Modules

CTMY_MATRIX_SHELL_ME SAP Function module







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

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


Pattern for FM CTMY_MATRIX_SHELL_ME - CTMY MATRIX SHELL ME





CALL FUNCTION 'CTMY_MATRIX_SHELL_ME' "
  EXPORTING
    object =                    "
    class_type =                " tcla-klart
    include_header =            " incl_bild
    start_mode =                "
*   titel =                     "
*   button_01 =                 "
*   button_02 =                 "
*   nodelist_titel =            "
*   xy_change_posi =            "
*   display_only =              "
*   check_exit =                "
  IMPORTING
    return_functioncode =       "
  TABLES
*   var_art =                   " mtrx_vart
*   var_wsel =                  " mtrx_wsel
    vb_char =                   " mtrx_char
    vb_val =                    " mtrx_vali
    modes =                     " mtrx_mode
*   list_header =               "
  EXCEPTIONS
    MODE_ERROR = 1              "
    INPUTDATA_ERROR = 2         "
    NO_VALUE = 3                "
    NO_CHAR = 4                 "
    NO_CUOBJ = 5                "
    NO_CLASSIFICATION_FOUND = 6  "
    CLASSIFICATION_ERROR = 7    "
    MATRIX_CANCELLED = 8        "
    .  "  CTMY_MATRIX_SHELL_ME

ABAP code example for Function Module CTMY_MATRIX_SHELL_ME





The ABAP code below is a full code listing to execute function module CTMY_MATRIX_SHELL_ME 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_return_functioncode  TYPE STRING ,
it_var_art  TYPE STANDARD TABLE OF MTRX_VART,"TABLES PARAM
wa_var_art  LIKE LINE OF it_var_art ,
it_var_wsel  TYPE STANDARD TABLE OF MTRX_WSEL,"TABLES PARAM
wa_var_wsel  LIKE LINE OF it_var_wsel ,
it_vb_char  TYPE STANDARD TABLE OF MTRX_CHAR,"TABLES PARAM
wa_vb_char  LIKE LINE OF it_vb_char ,
it_vb_val  TYPE STANDARD TABLE OF MTRX_VALI,"TABLES PARAM
wa_vb_val  LIKE LINE OF it_vb_val ,
it_modes  TYPE STANDARD TABLE OF MTRX_MODE,"TABLES PARAM
wa_modes  LIKE LINE OF it_modes ,
it_list_header  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_list_header  LIKE LINE OF it_list_header .

DATA(ld_object) = 'some text here'.

SELECT single KLART
FROM TCLA
INTO @DATA(ld_class_type).

DATA(ld_include_header) = 'Check type of data required'.
DATA(ld_start_mode) = 'some text here'.
DATA(ld_titel) = 'some text here'.
DATA(ld_button_01) = 'some text here'.
DATA(ld_button_02) = 'some text here'.
DATA(ld_nodelist_titel) = 'some text here'.
DATA(ld_xy_change_posi) = 'some text here'.
DATA(ld_display_only) = 'some text here'.
DATA(ld_check_exit) = 'some text here'.

"populate fields of struture and append to itab
append wa_var_art to it_var_art.

"populate fields of struture and append to itab
append wa_var_wsel to it_var_wsel.

"populate fields of struture and append to itab
append wa_vb_char to it_vb_char.

"populate fields of struture and append to itab
append wa_vb_val to it_vb_val.

"populate fields of struture and append to itab
append wa_modes to it_modes.

"populate fields of struture and append to itab
append wa_list_header to it_list_header. . CALL FUNCTION 'CTMY_MATRIX_SHELL_ME' EXPORTING object = ld_object class_type = ld_class_type include_header = ld_include_header start_mode = ld_start_mode * titel = ld_titel * button_01 = ld_button_01 * button_02 = ld_button_02 * nodelist_titel = ld_nodelist_titel * xy_change_posi = ld_xy_change_posi * display_only = ld_display_only * check_exit = ld_check_exit IMPORTING return_functioncode = ld_return_functioncode TABLES * var_art = it_var_art * var_wsel = it_var_wsel vb_char = it_vb_char vb_val = it_vb_val modes = it_modes * list_header = it_list_header EXCEPTIONS MODE_ERROR = 1 INPUTDATA_ERROR = 2 NO_VALUE = 3 NO_CHAR = 4 NO_CUOBJ = 5 NO_CLASSIFICATION_FOUND = 6 CLASSIFICATION_ERROR = 7 MATRIX_CANCELLED = 8 . " CTMY_MATRIX_SHELL_ME
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 ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "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:
it_var_art  TYPE STANDARD TABLE OF MTRX_VART ,
wa_var_art  LIKE LINE OF it_var_art,
ld_return_functioncode  TYPE STRING ,
ld_object  TYPE STRING ,
it_var_wsel  TYPE STANDARD TABLE OF MTRX_WSEL ,
wa_var_wsel  LIKE LINE OF it_var_wsel,
ld_class_type  TYPE TCLA-KLART ,
it_vb_char  TYPE STANDARD TABLE OF MTRX_CHAR ,
wa_vb_char  LIKE LINE OF it_vb_char,
ld_include_header  TYPE INCL_BILD ,
ld_start_mode  TYPE STRING ,
it_vb_val  TYPE STANDARD TABLE OF MTRX_VALI ,
wa_vb_val  LIKE LINE OF it_vb_val,
ld_titel  TYPE STRING ,
it_modes  TYPE STANDARD TABLE OF MTRX_MODE ,
wa_modes  LIKE LINE OF it_modes,
ld_button_01  TYPE STRING ,
it_list_header  TYPE STANDARD TABLE OF STRING ,
wa_list_header  LIKE LINE OF it_list_header,
ld_button_02  TYPE STRING ,
ld_nodelist_titel  TYPE STRING ,
ld_xy_change_posi  TYPE STRING ,
ld_display_only  TYPE STRING ,
ld_check_exit  TYPE STRING .


"populate fields of struture and append to itab
append wa_var_art to it_var_art.
ld_object = 'some text here'.

"populate fields of struture and append to itab
append wa_var_wsel to it_var_wsel.

SELECT single KLART
FROM TCLA
INTO ld_class_type.


"populate fields of struture and append to itab
append wa_vb_char to it_vb_char.
ld_include_header = 'Check type of data required'.
ld_start_mode = 'some text here'.

"populate fields of struture and append to itab
append wa_vb_val to it_vb_val.
ld_titel = 'some text here'.

"populate fields of struture and append to itab
append wa_modes to it_modes.
ld_button_01 = 'some text here'.

"populate fields of struture and append to itab
append wa_list_header to it_list_header.
ld_button_02 = 'some text here'.
ld_nodelist_titel = 'some text here'.
ld_xy_change_posi = 'some text here'.
ld_display_only = 'some text here'.
ld_check_exit = '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 CTMY_MATRIX_SHELL_ME or its description.