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

Function MDRP_DEPLOY 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 'MDRP_DEPLOY'"Deployment.
EXPORTING
I_MATNR = "Material Number
I_DEPLOY_NODE = "Identification nodes for DRP network
I_DEPLOY_MODE = "
TABLES
T_NODE = "Position of a node in a DRP network
T_ARCJ = "DRP-Network arcs + arc details?
T_SRPS = "DRP Stock Requirement Production Situation
T_RECS = "Planned Stock Transfers
T_MT61D = "Material Master: MRP
T_CALE = "Delivery Calendar for DRP Network
IMPORTING Parameters details for MDRP_DEPLOY
I_MATNR - Material Number
Data type: MARA-MATNROptional: No
Call by Reference: No ( called with pass by value option)
I_DEPLOY_NODE - Identification nodes for DRP network
Data type: MDRP_NODE-NODEIDOptional: No
Call by Reference: No ( called with pass by value option)
I_DEPLOY_MODE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MDRP_DEPLOY
T_NODE - Position of a node in a DRP network
Data type: DEPL_NODPAOptional: No
Call by Reference: No ( called with pass by value option)
T_ARCJ - DRP-Network arcs + arc details?
Data type: MDRP_ARCJOptional: No
Call by Reference: No ( called with pass by value option)
T_SRPS - DRP Stock Requirement Production Situation
Data type: MDRP_SRPSOptional: No
Call by Reference: No ( called with pass by value option)
T_RECS - Planned Stock Transfers
Data type: MDRP_RECSOptional: No
Call by Reference: No ( called with pass by value option)
T_MT61D - Material Master: MRP
Data type: MT61DOptional: No
Call by Reference: No ( called with pass by value option)
T_CALE - Delivery Calendar for DRP Network
Data type: MDRP_CALEOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MDRP_DEPLOY 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: | ||||
| lt_t_node | TYPE STANDARD TABLE OF DEPL_NODPA, " | |||
| lv_i_matnr | TYPE MARA-MATNR, " | |||
| lt_t_arcj | TYPE STANDARD TABLE OF MDRP_ARCJ, " | |||
| lv_i_deploy_node | TYPE MDRP_NODE-NODEID, " | |||
| lt_t_srps | TYPE STANDARD TABLE OF MDRP_SRPS, " | |||
| lv_i_deploy_mode | TYPE MDRP_SRPS, " | |||
| lt_t_recs | TYPE STANDARD TABLE OF MDRP_RECS, " | |||
| lt_t_mt61d | TYPE STANDARD TABLE OF MT61D, " | |||
| lt_t_cale | TYPE STANDARD TABLE OF MDRP_CALE. " |
|   CALL FUNCTION 'MDRP_DEPLOY' "Deployment |
| EXPORTING | ||
| I_MATNR | = lv_i_matnr | |
| I_DEPLOY_NODE | = lv_i_deploy_node | |
| I_DEPLOY_MODE | = lv_i_deploy_mode | |
| TABLES | ||
| T_NODE | = lt_t_node | |
| T_ARCJ | = lt_t_arcj | |
| T_SRPS | = lt_t_srps | |
| T_RECS | = lt_t_recs | |
| T_MT61D | = lt_t_mt61d | |
| T_CALE | = lt_t_cale | |
| . " MDRP_DEPLOY | ||
ABAP code using 7.40 inline data declarations to call FM MDRP_DEPLOY
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 MATNR FROM MARA INTO @DATA(ld_i_matnr). | ||||
| "SELECT single NODEID FROM MDRP_NODE INTO @DATA(ld_i_deploy_node). | ||||
Search for further information about these or an SAP related objects