SAP MD_NETWORK_REPORT Function Module for Determines all material receipts required for a network









MD_NETWORK_REPORT is a standard md network report SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determines all material receipts required for a network 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 md network report FM, simply by entering the name MD_NETWORK_REPORT into the relevant SAP transaction such as SE37 or SE38.

Function Group: M61N
Program Name: SAPLM61N
Main Program: SAPLM61N
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function MD_NETWORK_REPORT 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 'MD_NETWORK_REPORT'"Determines all material receipts required for a network
EXPORTING
AUFNR = "Network number
* AVAILABILITY_CHECK = ' ' "Type of availability calculation (ATP,...)
* NO_SAVETY_STOCK = ' ' "Safety stock taken into account
* NO_COMMIT_WORK = ' ' "
* NODISP = ' ' "
* I_IGNORE_MTOLD = ' ' "
* I_PROFID = ' ' "Profile for Order Report
* IS_PROFILE = "

IMPORTING
ET_MLDELAY = "Requirement Receipt Element with Multilevel Delay
ET_RTREE_SEL = "Table for Selected Elements for Order Tree

TABLES
* RESB_TAB = "
* IIOELX = "

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for MD_NETWORK_REPORT

AUFNR - Network number

Data type: CAUFV-AUFNR
Optional: No
Call by Reference: No ( called with pass by value option)

AVAILABILITY_CHECK - Type of availability calculation (ATP,...)

Data type: RM61M-DSELK
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_SAVETY_STOCK - Safety stock taken into account

Data type: RM61M-DSELK
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_COMMIT_WORK -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

NODISP -

Data type: XFLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_IGNORE_MTOLD -

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PROFID - Profile for Order Report

Data type: RM61O-PROFID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_PROFILE -

Data type: T464
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for MD_NETWORK_REPORT

ET_MLDELAY - Requirement Receipt Element with Multilevel Delay

Data type: MD_T_MLDELAY
Optional: No
Call by Reference: No ( called with pass by value option)

ET_RTREE_SEL - Table for Selected Elements for Order Tree

Data type: MD_RTREE_SEL
Optional: No
Call by Reference: Yes

TABLES Parameters details for MD_NETWORK_REPORT

RESB_TAB -

Data type: RESB
Optional: Yes
Call by Reference: No ( called with pass by value option)

IIOELX -

Data type: IOEL
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

ERROR - Error reading the data

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for MD_NETWORK_REPORT 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_aufnr  TYPE CAUFV-AUFNR, "   
lv_error  TYPE CAUFV, "   
lt_resb_tab  TYPE STANDARD TABLE OF RESB, "   
lv_et_mldelay  TYPE MD_T_MLDELAY, "   
lt_iioelx  TYPE STANDARD TABLE OF IOEL, "   
lv_et_rtree_sel  TYPE MD_RTREE_SEL, "   
lv_availability_check  TYPE RM61M-DSELK, "   SPACE
lv_no_savety_stock  TYPE RM61M-DSELK, "   SPACE
lv_no_commit_work  TYPE C, "   SPACE
lv_nodisp  TYPE XFLAG, "   SPACE
lv_i_ignore_mtold  TYPE XFELD, "   SPACE
lv_i_profid  TYPE RM61O-PROFID, "   SPACE
lv_is_profile  TYPE T464. "   

  CALL FUNCTION 'MD_NETWORK_REPORT'  "Determines all material receipts required for a network
    EXPORTING
         AUFNR = lv_aufnr
         AVAILABILITY_CHECK = lv_availability_check
         NO_SAVETY_STOCK = lv_no_savety_stock
         NO_COMMIT_WORK = lv_no_commit_work
         NODISP = lv_nodisp
         I_IGNORE_MTOLD = lv_i_ignore_mtold
         I_PROFID = lv_i_profid
         IS_PROFILE = lv_is_profile
    IMPORTING
         ET_MLDELAY = lv_et_mldelay
         ET_RTREE_SEL = lv_et_rtree_sel
    TABLES
         RESB_TAB = lt_resb_tab
         IIOELX = lt_iioelx
    EXCEPTIONS
        ERROR = 1
. " MD_NETWORK_REPORT




ABAP code using 7.40 inline data declarations to call FM MD_NETWORK_REPORT

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 AUFNR FROM CAUFV INTO @DATA(ld_aufnr).
 
 
 
 
 
 
"SELECT single DSELK FROM RM61M INTO @DATA(ld_availability_check).
DATA(ld_availability_check) = ' '.
 
"SELECT single DSELK FROM RM61M INTO @DATA(ld_no_savety_stock).
DATA(ld_no_savety_stock) = ' '.
 
DATA(ld_no_commit_work) = ' '.
 
DATA(ld_nodisp) = ' '.
 
DATA(ld_i_ignore_mtold) = ' '.
 
"SELECT single PROFID FROM RM61O INTO @DATA(ld_i_profid).
DATA(ld_i_profid) = ' '.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!