SAP DD_MASS_ACT Function Module for DD: Mass activation
DD_MASS_ACT is a standard dd mass act SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for DD: Mass activation 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 dd mass act FM, simply by entering the name DD_MASS_ACT into the relevant SAP transaction such as SE37 or SE38.
Function Group: SDMA
Program Name: SAPLSDMA
Main Program: SAPLSDMA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DD_MASS_ACT 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 'DD_MASS_ACT'"DD: Mass activation.
EXPORTING
DDMODE = "
DELNOREF = "
MEDIUM = "
* ENQUEUE = 'S' "
* ACT_S = ' ' "DD: Activates single activation by mass activation program
DEVICE = "
LOGNAME = "
* WRITE_LOG = 'X' "'X':Write Log, '': No Log
* LOG_HEAD_TAIL = 'X' "
* T_ON = 'X' "
* TST = ' ' "
* TRKORR = ' ' "
* PRID = "Log ID
* PRID_S = "
* EXTTAB = ' ' "
INACTIVE = "
FRCACT = "
* AUTH_CHK = 'X' "
* EXCOMMIT = 'X' "
VERSION = "
DELALL = "
IMPORTING
ACT_RC = "
TABLES
GENTAB = "
DELTAB = "
* CNVTAB = "
EXCEPTIONS
ACCESS_FAILURE = 1 NO_OBJECTS = 2 LOCKED = 3
IMPORTING Parameters details for DD_MASS_ACT
DDMODE -
Data type: DDMASS-DDMODEOptional: No
Call by Reference: No ( called with pass by value option)
DELNOREF -
Data type: DDMASS-DELNOREFOptional: No
Call by Reference: No ( called with pass by value option)
MEDIUM -
Data type: DDMASS-MEDIUMOptional: No
Call by Reference: No ( called with pass by value option)
ENQUEUE -
Data type: DDMASS-ENQUEUEDefault: 'S'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACT_S - DD: Activates single activation by mass activation program
Data type: DDMASS-ACTSINGLEDefault: ' '
Optional: Yes
Call by Reference: Yes
DEVICE -
Data type: DDMASS-DEVICEOptional: No
Call by Reference: No ( called with pass by value option)
LOGNAME -
Data type: DDMASS-LOGNAMEOptional: No
Call by Reference: Yes
WRITE_LOG - 'X':Write Log, '': No Log
Data type: DDMASS-WRITE_LOGDefault: 'X'
Optional: Yes
Call by Reference: Yes
LOG_HEAD_TAIL -
Data type: DDREFSTRUC-BOOLDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
T_ON -
Data type: DDREFSTRUC-BOOLDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TST -
Data type: DDMASSTSTDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TRKORR -
Data type: DDMASS-TRKORRDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
PRID - Log ID
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
PRID_S -
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
EXTTAB -
Data type: DDMASS-EXTTABDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
INACTIVE -
Data type: DDMASS-INACTIVEOptional: No
Call by Reference: No ( called with pass by value option)
FRCACT -
Data type: DDMASS-FRCACTOptional: No
Call by Reference: No ( called with pass by value option)
AUTH_CHK -
Data type: DDMASS-AUTHCHKDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCOMMIT -
Data type: DDMASS-EXCOMMITDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
VERSION -
Data type: DDMASS-VERSIONOptional: No
Call by Reference: No ( called with pass by value option)
DELALL -
Data type: DDMASS-DELALLOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for DD_MASS_ACT
ACT_RC -
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for DD_MASS_ACT
GENTAB -
Data type: DCGENTBOptional: No
Call by Reference: No ( called with pass by value option)
DELTAB -
Data type: DCDELTBOptional: No
Call by Reference: Yes
CNVTAB -
Data type: DCTABLRESOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ACCESS_FAILURE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_OBJECTS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LOCKED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DD_MASS_ACT 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: | ||||
| lv_act_rc | TYPE SY-SUBRC, " | |||
| lv_ddmode | TYPE DDMASS-DDMODE, " | |||
| lt_gentab | TYPE STANDARD TABLE OF DCGENTB, " | |||
| lv_access_failure | TYPE DCGENTB, " | |||
| lv_delnoref | TYPE DDMASS-DELNOREF, " | |||
| lv_medium | TYPE DDMASS-MEDIUM, " | |||
| lv_enqueue | TYPE DDMASS-ENQUEUE, " 'S' | |||
| lv_act_s | TYPE DDMASS-ACTSINGLE, " ' ' | |||
| lv_device | TYPE DDMASS-DEVICE, " | |||
| lv_logname | TYPE DDMASS-LOGNAME, " | |||
| lv_write_log | TYPE DDMASS-WRITE_LOG, " 'X' | |||
| lv_log_head_tail | TYPE DDREFSTRUC-BOOL, " 'X' | |||
| lv_t_on | TYPE DDREFSTRUC-BOOL, " 'X' | |||
| lv_tst | TYPE DDMASSTST, " ' ' | |||
| lt_deltab | TYPE STANDARD TABLE OF DCDELTB, " | |||
| lv_trkorr | TYPE DDMASS-TRKORR, " ' ' | |||
| lv_no_objects | TYPE DDMASS, " | |||
| lv_prid | TYPE SY-TABIX, " | |||
| lv_prid_s | TYPE SY-TABIX, " | |||
| lt_cnvtab | TYPE STANDARD TABLE OF DCTABLRES, " | |||
| lv_exttab | TYPE DDMASS-EXTTAB, " ' ' | |||
| lv_locked | TYPE DDMASS, " | |||
| lv_inactive | TYPE DDMASS-INACTIVE, " | |||
| lv_frcact | TYPE DDMASS-FRCACT, " | |||
| lv_auth_chk | TYPE DDMASS-AUTHCHK, " 'X' | |||
| lv_excommit | TYPE DDMASS-EXCOMMIT, " 'X' | |||
| lv_version | TYPE DDMASS-VERSION, " | |||
| lv_delall | TYPE DDMASS-DELALL. " |
|   CALL FUNCTION 'DD_MASS_ACT' "DD: Mass activation |
| EXPORTING | ||
| DDMODE | = lv_ddmode | |
| DELNOREF | = lv_delnoref | |
| MEDIUM | = lv_medium | |
| ENQUEUE | = lv_enqueue | |
| ACT_S | = lv_act_s | |
| DEVICE | = lv_device | |
| LOGNAME | = lv_logname | |
| WRITE_LOG | = lv_write_log | |
| LOG_HEAD_TAIL | = lv_log_head_tail | |
| T_ON | = lv_t_on | |
| TST | = lv_tst | |
| TRKORR | = lv_trkorr | |
| PRID | = lv_prid | |
| PRID_S | = lv_prid_s | |
| EXTTAB | = lv_exttab | |
| INACTIVE | = lv_inactive | |
| FRCACT | = lv_frcact | |
| AUTH_CHK | = lv_auth_chk | |
| EXCOMMIT | = lv_excommit | |
| VERSION | = lv_version | |
| DELALL | = lv_delall | |
| IMPORTING | ||
| ACT_RC | = lv_act_rc | |
| TABLES | ||
| GENTAB | = lt_gentab | |
| DELTAB | = lt_deltab | |
| CNVTAB | = lt_cnvtab | |
| EXCEPTIONS | ||
| ACCESS_FAILURE = 1 | ||
| NO_OBJECTS = 2 | ||
| LOCKED = 3 | ||
| . " DD_MASS_ACT | ||
ABAP code using 7.40 inline data declarations to call FM DD_MASS_ACT
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 SUBRC FROM SY INTO @DATA(ld_act_rc). | ||||
| "SELECT single DDMODE FROM DDMASS INTO @DATA(ld_ddmode). | ||||
| "SELECT single DELNOREF FROM DDMASS INTO @DATA(ld_delnoref). | ||||
| "SELECT single MEDIUM FROM DDMASS INTO @DATA(ld_medium). | ||||
| "SELECT single ENQUEUE FROM DDMASS INTO @DATA(ld_enqueue). | ||||
| DATA(ld_enqueue) | = 'S'. | |||
| "SELECT single ACTSINGLE FROM DDMASS INTO @DATA(ld_act_s). | ||||
| DATA(ld_act_s) | = ' '. | |||
| "SELECT single DEVICE FROM DDMASS INTO @DATA(ld_device). | ||||
| "SELECT single LOGNAME FROM DDMASS INTO @DATA(ld_logname). | ||||
| "SELECT single WRITE_LOG FROM DDMASS INTO @DATA(ld_write_log). | ||||
| DATA(ld_write_log) | = 'X'. | |||
| "SELECT single BOOL FROM DDREFSTRUC INTO @DATA(ld_log_head_tail). | ||||
| DATA(ld_log_head_tail) | = 'X'. | |||
| "SELECT single BOOL FROM DDREFSTRUC INTO @DATA(ld_t_on). | ||||
| DATA(ld_t_on) | = 'X'. | |||
| DATA(ld_tst) | = ' '. | |||
| "SELECT single TRKORR FROM DDMASS INTO @DATA(ld_trkorr). | ||||
| DATA(ld_trkorr) | = ' '. | |||
| "SELECT single TABIX FROM SY INTO @DATA(ld_prid). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_prid_s). | ||||
| "SELECT single EXTTAB FROM DDMASS INTO @DATA(ld_exttab). | ||||
| DATA(ld_exttab) | = ' '. | |||
| "SELECT single INACTIVE FROM DDMASS INTO @DATA(ld_inactive). | ||||
| "SELECT single FRCACT FROM DDMASS INTO @DATA(ld_frcact). | ||||
| "SELECT single AUTHCHK FROM DDMASS INTO @DATA(ld_auth_chk). | ||||
| DATA(ld_auth_chk) | = 'X'. | |||
| "SELECT single EXCOMMIT FROM DDMASS INTO @DATA(ld_excommit). | ||||
| DATA(ld_excommit) | = 'X'. | |||
| "SELECT single VERSION FROM DDMASS INTO @DATA(ld_version). | ||||
| "SELECT single DELALL FROM DDMASS INTO @DATA(ld_delall). | ||||
Search for further information about these or an SAP related objects