SAP MD_MATERIALNOTIZ Function Module for NOTRANSL: Bearbeitung der Materialnotiz zu Material / Werk
MD_MATERIALNOTIZ is a standard md materialnotiz 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: Bearbeitung der Materialnotiz zu Material / Werk 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 materialnotiz FM, simply by entering the name MD_MATERIALNOTIZ into the relevant SAP transaction such as SE37 or SE38.
Function Group: M61R
Program Name: SAPLM61R
Main Program: SAPLM61R
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MD_MATERIALNOTIZ 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_MATERIALNOTIZ'"NOTRANSL: Bearbeitung der Materialnotiz zu Material / Werk.
EXPORTING
EMATNR = "
EWERKS = "
* REF_MATNR = ' ' "
* REF_WERKS = ' ' "
* EMODUS = ' ' "
* NO_SAVE = ' ' "
IMPORTING
IEXIST = "
IFUNCT = "
ICUSER = "
ICDATE = "
ILINES = "
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLM61R_001 User Exit for Evaluation PP-MRP Material Requirements Planning
IMPORTING Parameters details for MD_MATERIALNOTIZ
EMATNR -
Data type: RM61R-MATNROptional: No
Call by Reference: No ( called with pass by value option)
EWERKS -
Data type: RM61R-WERKSOptional: No
Call by Reference: No ( called with pass by value option)
REF_MATNR -
Data type: RM61R-MATNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
REF_WERKS -
Data type: RM61R-WERKSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EMODUS -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_SAVE -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MD_MATERIALNOTIZ
IEXIST -
Data type: RM61R-MANOTOptional: No
Call by Reference: No ( called with pass by value option)
IFUNCT -
Data type: RM61R-MANOTOptional: No
Call by Reference: No ( called with pass by value option)
ICUSER -
Data type: THEAD-TDLUSEROptional: No
Call by Reference: Yes
ICDATE -
Data type: THEAD-TDLDATEOptional: No
Call by Reference: Yes
ILINES -
Data type: THEAD-TDTXTLINESOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for MD_MATERIALNOTIZ 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_ematnr | TYPE RM61R-MATNR, " | |||
| lv_iexist | TYPE RM61R-MANOT, " | |||
| lv_ewerks | TYPE RM61R-WERKS, " | |||
| lv_ifunct | TYPE RM61R-MANOT, " | |||
| lv_icuser | TYPE THEAD-TDLUSER, " | |||
| lv_ref_matnr | TYPE RM61R-MATNR, " SPACE | |||
| lv_icdate | TYPE THEAD-TDLDATE, " | |||
| lv_ref_werks | TYPE RM61R-WERKS, " SPACE | |||
| lv_emodus | TYPE RM61R, " SPACE | |||
| lv_ilines | TYPE THEAD-TDTXTLINES, " | |||
| lv_no_save | TYPE THEAD. " SPACE |
|   CALL FUNCTION 'MD_MATERIALNOTIZ' "NOTRANSL: Bearbeitung der Materialnotiz zu Material / Werk |
| EXPORTING | ||
| EMATNR | = lv_ematnr | |
| EWERKS | = lv_ewerks | |
| REF_MATNR | = lv_ref_matnr | |
| REF_WERKS | = lv_ref_werks | |
| EMODUS | = lv_emodus | |
| NO_SAVE | = lv_no_save | |
| IMPORTING | ||
| IEXIST | = lv_iexist | |
| IFUNCT | = lv_ifunct | |
| ICUSER | = lv_icuser | |
| ICDATE | = lv_icdate | |
| ILINES | = lv_ilines | |
| . " MD_MATERIALNOTIZ | ||
ABAP code using 7.40 inline data declarations to call FM MD_MATERIALNOTIZ
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 RM61R INTO @DATA(ld_ematnr). | ||||
| "SELECT single MANOT FROM RM61R INTO @DATA(ld_iexist). | ||||
| "SELECT single WERKS FROM RM61R INTO @DATA(ld_ewerks). | ||||
| "SELECT single MANOT FROM RM61R INTO @DATA(ld_ifunct). | ||||
| "SELECT single TDLUSER FROM THEAD INTO @DATA(ld_icuser). | ||||
| "SELECT single MATNR FROM RM61R INTO @DATA(ld_ref_matnr). | ||||
| DATA(ld_ref_matnr) | = ' '. | |||
| "SELECT single TDLDATE FROM THEAD INTO @DATA(ld_icdate). | ||||
| "SELECT single WERKS FROM RM61R INTO @DATA(ld_ref_werks). | ||||
| DATA(ld_ref_werks) | = ' '. | |||
| DATA(ld_emodus) | = ' '. | |||
| "SELECT single TDTXTLINES FROM THEAD INTO @DATA(ld_ilines). | ||||
| DATA(ld_no_save) | = ' '. | |||
Search for further information about these or an SAP related objects