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

Function MDRP_START 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_START'"NOTRANSL: Start DRP NET definition.
EXPORTING
I_MDRP_CONTROL = "Control Parameters for DRP Network
IMPORTING
E_MDRP_CONTROL = "Control Parameters for DRP Network
TABLES
T_MAP = "All information on a map for exchange
T_ARC_INFO = "Information on DRP Arcs like Percentages
T_PATH = "Path of a DRP network
T_PATH_INFO = "Information on DRP Arcs like Percentages
T_PATHH = "Path of a DRP Network
T_ARCD = "Arc details
T_ARCD_INFO = "Information for arc details
T_NUOM = "Units for Durations of Transport and Capacities
T_TMOD = "Modes of Transport for DRP Network
T_NODE_TYPE_INP = "Node type; all information with description
T_NODE_INP = "Node in a DRP network
T_MENU_INP = "Menu for DRP network
T_NODE_POSITION = "Position of a node in a DRP network
T_ITEM_INP = "Item for definition of drp network information
T_ARC = "Arc of a DRP network
T_TREE_INP = "DRP Tree of the Items
T_VIEW_INP = "View of DRP Network
EXCEPTIONS
VERSION_MISMATCH = 1 VIEWTYPE_UNKNOWN = 2 DATA_INCONSISTENCY = 3
IMPORTING Parameters details for MDRP_START
I_MDRP_CONTROL - Control Parameters for DRP Network
Data type: MDRP_PARAOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MDRP_START
E_MDRP_CONTROL - Control Parameters for DRP Network
Data type: MDRP_PARAOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MDRP_START
T_MAP - All information on a map for exchange
Data type: MDRP_MAP_AOptional: No
Call by Reference: No ( called with pass by value option)
T_ARC_INFO - Information on DRP Arcs like Percentages
Data type: MDRP_ARC_IOptional: No
Call by Reference: No ( called with pass by value option)
T_PATH - Path of a DRP network
Data type: MDRP_PATHOptional: No
Call by Reference: No ( called with pass by value option)
T_PATH_INFO - Information on DRP Arcs like Percentages
Data type: MDRP_PATH_IOptional: No
Call by Reference: No ( called with pass by value option)
T_PATHH - Path of a DRP Network
Data type: MDRP_PATHHOptional: No
Call by Reference: No ( called with pass by value option)
T_ARCD - Arc details
Data type: MDRP_ARCDOptional: No
Call by Reference: No ( called with pass by value option)
T_ARCD_INFO - Information for arc details
Data type: MDRP_ARCD_IOptional: No
Call by Reference: No ( called with pass by value option)
T_NUOM - Units for Durations of Transport and Capacities
Data type: MDRP_NUOMOptional: No
Call by Reference: No ( called with pass by value option)
T_TMOD - Modes of Transport for DRP Network
Data type: MDRP_TMODOptional: No
Call by Reference: No ( called with pass by value option)
T_NODE_TYPE_INP - Node type; all information with description
Data type: MDRP_NODTAOptional: No
Call by Reference: No ( called with pass by value option)
T_NODE_INP - Node in a DRP network
Data type: MDRP_NODEAOptional: No
Call by Reference: No ( called with pass by value option)
T_MENU_INP - Menu for DRP network
Data type: MDRP_MENUAOptional: No
Call by Reference: No ( called with pass by value option)
T_NODE_POSITION - Position of a node in a DRP network
Data type: MDRP_NODPAOptional: No
Call by Reference: No ( called with pass by value option)
T_ITEM_INP - Item for definition of drp network information
Data type: MDRP_ITEMOptional: No
Call by Reference: No ( called with pass by value option)
T_ARC - Arc of a DRP network
Data type: MDRP_ARCOptional: No
Call by Reference: No ( called with pass by value option)
T_TREE_INP - DRP Tree of the Items
Data type: MDRP_TREEOptional: No
Call by Reference: No ( called with pass by value option)
T_VIEW_INP - View of DRP Network
Data type: MDRP_VIEWAOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
VERSION_MISMATCH -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VIEWTYPE_UNKNOWN -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DATA_INCONSISTENCY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MDRP_START 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_map | TYPE STANDARD TABLE OF MDRP_MAP_A, " | |||
| lv_e_mdrp_control | TYPE MDRP_PARA, " | |||
| lv_i_mdrp_control | TYPE MDRP_PARA, " | |||
| lv_version_mismatch | TYPE MDRP_PARA, " | |||
| lt_t_arc_info | TYPE STANDARD TABLE OF MDRP_ARC_I, " | |||
| lt_t_path | TYPE STANDARD TABLE OF MDRP_PATH, " | |||
| lt_t_path_info | TYPE STANDARD TABLE OF MDRP_PATH_I, " | |||
| lt_t_pathh | TYPE STANDARD TABLE OF MDRP_PATHH, " | |||
| lt_t_arcd | TYPE STANDARD TABLE OF MDRP_ARCD, " | |||
| lt_t_arcd_info | TYPE STANDARD TABLE OF MDRP_ARCD_I, " | |||
| lt_t_nuom | TYPE STANDARD TABLE OF MDRP_NUOM, " | |||
| lt_t_tmod | TYPE STANDARD TABLE OF MDRP_TMOD, " | |||
| lt_t_node_type_inp | TYPE STANDARD TABLE OF MDRP_NODTA, " | |||
| lv_viewtype_unknown | TYPE MDRP_NODTA, " | |||
| lt_t_node_inp | TYPE STANDARD TABLE OF MDRP_NODEA, " | |||
| lv_data_inconsistency | TYPE MDRP_NODEA, " | |||
| lt_t_menu_inp | TYPE STANDARD TABLE OF MDRP_MENUA, " | |||
| lt_t_node_position | TYPE STANDARD TABLE OF MDRP_NODPA, " | |||
| lt_t_item_inp | TYPE STANDARD TABLE OF MDRP_ITEM, " | |||
| lt_t_arc | TYPE STANDARD TABLE OF MDRP_ARC, " | |||
| lt_t_tree_inp | TYPE STANDARD TABLE OF MDRP_TREE, " | |||
| lt_t_view_inp | TYPE STANDARD TABLE OF MDRP_VIEWA. " |
|   CALL FUNCTION 'MDRP_START' "NOTRANSL: Start DRP NET definition |
| EXPORTING | ||
| I_MDRP_CONTROL | = lv_i_mdrp_control | |
| IMPORTING | ||
| E_MDRP_CONTROL | = lv_e_mdrp_control | |
| TABLES | ||
| T_MAP | = lt_t_map | |
| T_ARC_INFO | = lt_t_arc_info | |
| T_PATH | = lt_t_path | |
| T_PATH_INFO | = lt_t_path_info | |
| T_PATHH | = lt_t_pathh | |
| T_ARCD | = lt_t_arcd | |
| T_ARCD_INFO | = lt_t_arcd_info | |
| T_NUOM | = lt_t_nuom | |
| T_TMOD | = lt_t_tmod | |
| T_NODE_TYPE_INP | = lt_t_node_type_inp | |
| T_NODE_INP | = lt_t_node_inp | |
| T_MENU_INP | = lt_t_menu_inp | |
| T_NODE_POSITION | = lt_t_node_position | |
| T_ITEM_INP | = lt_t_item_inp | |
| T_ARC | = lt_t_arc | |
| T_TREE_INP | = lt_t_tree_inp | |
| T_VIEW_INP | = lt_t_view_inp | |
| EXCEPTIONS | ||
| VERSION_MISMATCH = 1 | ||
| VIEWTYPE_UNKNOWN = 2 | ||
| DATA_INCONSISTENCY = 3 | ||
| . " MDRP_START | ||
ABAP code using 7.40 inline data declarations to call FM MDRP_START
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.Search for further information about these or an SAP related objects