SAP DD_MASS_DIST Function Module for
DD_MASS_DIST is a standard dd mass dist SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 dist FM, simply by entering the name DD_MASS_DIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: SDSB
Program Name: SAPLSDSB
Main Program: SAPLSDSB
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function DD_MASS_DIST 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_DIST'".
EXPORTING
* LONGPROT = ' ' "Log flag: ' ' normal, 'X' long log
* DBSYS = SYST-DBSYS "
* DBSYS_SEC = SYST-DBSYS "
* LOGNAME = ' ' "
* MODUS = 'I' "'I': upgrade;'K' convert.;'C','H': test upg./conv.
* PARALLEL = ' ' "Activation Status of a Repository Object
* NO_EXISTS_CHECK = ' ' "'X': with data; 'T' without data; 'N' does not exist
* DBCHECK_LEVEL = ' ' "Activation Status of a Repository Object
* MARK_LONG_OPERATIONS = ' ' "Activation Status of a Repository Object
* MARK_DELETED_FIELDS = ' ' "Activation Status of a Repository Object
* SHADOW_UPGRADE = ' ' "
IMPORTING
SUBRC = "0: all OK, 4: warnings, 8: errors
TABLES
* SELNAMES = "Filter table
IMPORTING Parameters details for DD_MASS_DIST
LONGPROT - Log flag: SPACE normal, 'X' long log
Data type: DD02L-AS4LOCALDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DBSYS -
Data type: SYDBSYSDefault: SYST-DBSYS
Optional: Yes
Call by Reference: No ( called with pass by value option)
DBSYS_SEC -
Data type: SYDBSYSDefault: SYST-DBSYS
Optional: Yes
Call by Reference: No ( called with pass by value option)
LOGNAME -
Data type: TRBAT-LOGNAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODUS - 'I': upgrade;'K' convert.;'C','H': test upg./conv.
Data type: DD02L-AS4LOCALDefault: 'I'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PARALLEL - Activation Status of a Repository Object
Data type: DD02L-AS4LOCALDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_EXISTS_CHECK - 'X': with data; 'T' without data; 'N' does not exist
Data type: DD02L-AS4LOCALDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DBCHECK_LEVEL - Activation Status of a Repository Object
Data type: DD02L-AS4LOCALDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MARK_LONG_OPERATIONS - Activation Status of a Repository Object
Data type: DD02L-AS4LOCALDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MARK_DELETED_FIELDS - Activation Status of a Repository Object
Data type: DD02L-AS4LOCALDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SHADOW_UPGRADE -
Data type: DD02L-AS4LOCALDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for DD_MASS_DIST
SUBRC - 0: all OK, 4: warnings, 8: errors
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for DD_MASS_DIST
SELNAMES - Filter table
Data type: USSELOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DD_MASS_DIST 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_subrc | TYPE SY-SUBRC, " | |||
| lv_longprot | TYPE DD02L-AS4LOCAL, " SPACE | |||
| lt_selnames | TYPE STANDARD TABLE OF USSEL, " | |||
| lv_dbsys | TYPE SYDBSYS, " SYST-DBSYS | |||
| lv_dbsys_sec | TYPE SYDBSYS, " SYST-DBSYS | |||
| lv_logname | TYPE TRBAT-LOGNAME, " SPACE | |||
| lv_modus | TYPE DD02L-AS4LOCAL, " 'I' | |||
| lv_parallel | TYPE DD02L-AS4LOCAL, " SPACE | |||
| lv_no_exists_check | TYPE DD02L-AS4LOCAL, " SPACE | |||
| lv_dbcheck_level | TYPE DD02L-AS4LOCAL, " SPACE | |||
| lv_mark_long_operations | TYPE DD02L-AS4LOCAL, " SPACE | |||
| lv_mark_deleted_fields | TYPE DD02L-AS4LOCAL, " SPACE | |||
| lv_shadow_upgrade | TYPE DD02L-AS4LOCAL. " SPACE |
|   CALL FUNCTION 'DD_MASS_DIST' " |
| EXPORTING | ||
| LONGPROT | = lv_longprot | |
| DBSYS | = lv_dbsys | |
| DBSYS_SEC | = lv_dbsys_sec | |
| LOGNAME | = lv_logname | |
| MODUS | = lv_modus | |
| PARALLEL | = lv_parallel | |
| NO_EXISTS_CHECK | = lv_no_exists_check | |
| DBCHECK_LEVEL | = lv_dbcheck_level | |
| MARK_LONG_OPERATIONS | = lv_mark_long_operations | |
| MARK_DELETED_FIELDS | = lv_mark_deleted_fields | |
| SHADOW_UPGRADE | = lv_shadow_upgrade | |
| IMPORTING | ||
| SUBRC | = lv_subrc | |
| TABLES | ||
| SELNAMES | = lt_selnames | |
| . " DD_MASS_DIST | ||
ABAP code using 7.40 inline data declarations to call FM DD_MASS_DIST
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_subrc). | ||||
| "SELECT single AS4LOCAL FROM DD02L INTO @DATA(ld_longprot). | ||||
| DATA(ld_longprot) | = ' '. | |||
| DATA(ld_dbsys) | = SYST-DBSYS. | |||
| DATA(ld_dbsys_sec) | = SYST-DBSYS. | |||
| "SELECT single LOGNAME FROM TRBAT INTO @DATA(ld_logname). | ||||
| DATA(ld_logname) | = ' '. | |||
| "SELECT single AS4LOCAL FROM DD02L INTO @DATA(ld_modus). | ||||
| DATA(ld_modus) | = 'I'. | |||
| "SELECT single AS4LOCAL FROM DD02L INTO @DATA(ld_parallel). | ||||
| DATA(ld_parallel) | = ' '. | |||
| "SELECT single AS4LOCAL FROM DD02L INTO @DATA(ld_no_exists_check). | ||||
| DATA(ld_no_exists_check) | = ' '. | |||
| "SELECT single AS4LOCAL FROM DD02L INTO @DATA(ld_dbcheck_level). | ||||
| DATA(ld_dbcheck_level) | = ' '. | |||
| "SELECT single AS4LOCAL FROM DD02L INTO @DATA(ld_mark_long_operations). | ||||
| DATA(ld_mark_long_operations) | = ' '. | |||
| "SELECT single AS4LOCAL FROM DD02L INTO @DATA(ld_mark_deleted_fields). | ||||
| DATA(ld_mark_deleted_fields) | = ' '. | |||
| "SELECT single AS4LOCAL FROM DD02L INTO @DATA(ld_shadow_upgrade). | ||||
| DATA(ld_shadow_upgrade) | = ' '. | |||
Search for further information about these or an SAP related objects