SAP Function Modules

DD_MX_TABL_ACT SAP Function module - DD: activation of tables with MULTIPLEX = 'M' including dependent tables







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

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


Pattern for FM DD_MX_TABL_ACT - DD MX TABL ACT





CALL FUNCTION 'DD_MX_TABL_ACT' "DD: activation of tables with MULTIPLEX = 'M' including dependent tables
  EXPORTING
    tabname =                   " dd02v-tabname  Table name
    dd02v_wa =                  " dd02v         Table header
*   prid = 0                    " sy-tabix      Log ID
*   act_mode = 1                " ddrefstruc-mode  Activation mode
*   ntab_putstate = 'A'         " ddxtt-modeflag
*   activate = 'A'              " ddrefstruc-bool
*   auth_chk = 'X'              " ddrefstruc-bool  Authority check (' ': off, 'X': on)
*   excommit = 'X'              " dctablact-excommit
*   upgrmode = ' '              " dctablact-upgrmode
    act_result =                " sy-subrc      Results of activation of table TABNAME
  IMPORTING
    mx_result =                 " sy-subrc
  TABLES
*   ctrl_mx_actres =            " dcmxactres    Activation results of the dependent tables
    ctrl_tabl_res =             " dctablres     Additional information about the activ. of TABNAME
  EXCEPTIONS
    ILLEGAL_VALUE = 1           "               Incorrect parameter transfer
    .  "  DD_MX_TABL_ACT

ABAP code example for Function Module DD_MX_TABL_ACT





The ABAP code below is a full code listing to execute function module DD_MX_TABL_ACT 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_mx_result  TYPE SY-SUBRC ,
it_ctrl_mx_actres  TYPE STANDARD TABLE OF DCMXACTRES,"TABLES PARAM
wa_ctrl_mx_actres  LIKE LINE OF it_ctrl_mx_actres ,
it_ctrl_tabl_res  TYPE STANDARD TABLE OF DCTABLRES,"TABLES PARAM
wa_ctrl_tabl_res  LIKE LINE OF it_ctrl_tabl_res .


SELECT single TABNAME
FROM DD02V
INTO @DATA(ld_tabname).

DATA(ld_dd02v_wa) = 'Check type of data required'.
DATA(ld_prid) = '123 '.

DATA(ld_act_mode) = 123

SELECT single MODEFLAG
FROM DDXTT
INTO @DATA(ld_ntab_putstate).


DATA(ld_activate) = some text here

DATA(ld_auth_chk) = some text here

DATA(ld_excommit) = some text here

DATA(ld_upgrmode) = some text here
DATA(ld_act_result) = '123 '.

"populate fields of struture and append to itab
append wa_ctrl_mx_actres to it_ctrl_mx_actres.

"populate fields of struture and append to itab
append wa_ctrl_tabl_res to it_ctrl_tabl_res. . CALL FUNCTION 'DD_MX_TABL_ACT' EXPORTING tabname = ld_tabname dd02v_wa = ld_dd02v_wa * prid = ld_prid * act_mode = ld_act_mode * ntab_putstate = ld_ntab_putstate * activate = ld_activate * auth_chk = ld_auth_chk * excommit = ld_excommit * upgrmode = ld_upgrmode act_result = ld_act_result IMPORTING mx_result = ld_mx_result TABLES * ctrl_mx_actres = it_ctrl_mx_actres ctrl_tabl_res = it_ctrl_tabl_res EXCEPTIONS ILLEGAL_VALUE = 1 . " DD_MX_TABL_ACT
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_mx_result  TYPE SY-SUBRC ,
ld_tabname  TYPE DD02V-TABNAME ,
it_ctrl_mx_actres  TYPE STANDARD TABLE OF DCMXACTRES ,
wa_ctrl_mx_actres  LIKE LINE OF it_ctrl_mx_actres,
ld_dd02v_wa  TYPE DD02V ,
it_ctrl_tabl_res  TYPE STANDARD TABLE OF DCTABLRES ,
wa_ctrl_tabl_res  LIKE LINE OF it_ctrl_tabl_res,
ld_prid  TYPE SY-TABIX ,
ld_act_mode  TYPE DDREFSTRUC-MODE ,
ld_ntab_putstate  TYPE DDXTT-MODEFLAG ,
ld_activate  TYPE DDREFSTRUC-BOOL ,
ld_auth_chk  TYPE DDREFSTRUC-BOOL ,
ld_excommit  TYPE DCTABLACT-EXCOMMIT ,
ld_upgrmode  TYPE DCTABLACT-UPGRMODE ,
ld_act_result  TYPE SY-SUBRC .


SELECT single TABNAME
FROM DD02V
INTO ld_tabname.


"populate fields of struture and append to itab
append wa_ctrl_mx_actres to it_ctrl_mx_actres.
ld_dd02v_wa = '123 '.

"populate fields of struture and append to itab
append wa_ctrl_tabl_res to it_ctrl_tabl_res.
ld_prid = '123 '.

ld_act_mode = 123

SELECT single MODEFLAG
FROM DDXTT
INTO ld_ntab_putstate.


ld_activate = some text here

ld_auth_chk = some text here

ld_excommit = some text here

ld_upgrmode = some text here
ld_act_result = '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 DD_MX_TABL_ACT or its description.