I compiled in this article all what you need about the SAP Material Master Data IDoc (almost all).
First, we will explain the structure of MATMAS IDoc for Material Master with the full list of Segment.
Then, you will find the list of the most important SAP Material Master IDoc BAPI and Standard Report.
The third part covers how extend SAP MATMAS IDoc. Finally, I collected some useful tips about SAP Matmas Material Master IDoc.
Table of Contents
Material Master Data IDOC MATMAS04 Structure
Let’s start by the Structure of SAP Material Data MATMAS04 IDocs with all the Structure with the hierarchy of each segment.
You can find the information in the SAP IDoc Tcode WE19.
Segment | Segment | Segment | Description |
---|---|---|---|
E1MARAM | Master material general data (MARA) | ||
E1MARA1 | Additional Fields for E1MARAM | ||
E1MAKTM | Master material short texts (MAKT) | ||
E1MARCM | Master material C segment (MARC) | ||
E1MARC1 | Additional Fields for E1MARCM | ||
E1MARDM | Master material warehouse/batch segment (MARD) | ||
E1MFHMM | Master material production resource/too l (MFHM) | ||
E1MPGDM | Master material product group | ||
E1MPOPM | Master material forecast parameter | ||
E1MPRWM | Master material forecast value | ||
E1MVEGM | Master material total consumption | ||
E1MVEUM | Master material unplanned consumption | ||
E1MKALM | Master material production version | ||
E1MARMM | Master material units of measure (MARM) | ||
E1MEANM | Master Material European Article Number (MEAN) | ||
E1MBEWM | Master material material valuation (MBEW) | ||
E1MLGNM | Master material material data per warehouse number (MLGN) | ||
E1MLGTM | Material Master: Material Data for Each Storage Type (MLGT) | ||
E1MVKEM | Master material sales data (MVKE) | ||
E1MLANM | Master material tax classification (MLAN) | ||
E1MTXHM | Master material long text header | ||
E1MTXLM | Master material long text line | ||
E1MTXLM | Master material long text line |
Check also
- SAP Invoice IDoc INVOIC2 : Structure, Enhancement (exit and BADI)
- SAP Process Order IDoc LOIPRO : Structure, User-Exit and Outbound Processing
- MVKE Table in SAP MM (Material Sales Data Table)
SAP MATMAS05 IDoc BAPI and Report
To keep it short, here the SAP BAPIs & Reports to need to know to process input SAP Matmas IDoc and generate SAP Material Data IDoc.
SAP MATMAS05 Reports BD10 / RBDMATST
Tcodes to Replicate Material with SAP MATMAS IDoc : BD10
The BD10 is based on the SAP Standard Report RBDMATST.
MATMAS Report | Description |
---|---|
RBDSEMAT | Stand alone program to generate IDocs (Send Material) |
RBDMIDOC | Outbound triggered from change pointer |
SAP MATMAS05 IDoc BAPI
The most important BAPIs for SAP Material Master IDoc MATMAS05 are:
Idoc MATMAS05 BAPI | Description |
---|---|
MASTER_IDOC_DISTRIBUTE | Create and Distribute MATMAS IDoc with Material ID |
MASTERIDOC_CREATE_MATMAS | Create MATMAS IDoc |
IDOC_INPUT_MATMAS_BAPI | Process Input MATMAS Idoc |
IDOC_INPUT_MATMAS_MASS_BAPI | Mass Process Input MATMAS Idoc |
Full list of SAP IDoc MASTMAS BAPIs
Here the full list of SAP BAPI related to SAP Material Data IDoc Matmas.
This list includes BAPIs used to generate MATMAS IDoc and to process Material Master IDoc.
SAP IDoc MASTMAS BAPI |
---|
IDOC_INPUT_MATMAS_MASS_BAPI |
IDOC_INPUT_MATMAS_BAPI |
ISM_IDOC_MATMAS_CREATE |
ISM_IDOC_MATMAS_CREATE_BUPA |
ISM_IDOC_MATMAS_CREATE_IDCODES |
ISM_IDOC_MATMAS_CREATE_JPTMARA |
ISM_IDOC_MATMAS_CREATE_MARC |
ISM_IDOC_MATMAS_CREATE_MVKE |
ISM_IDOC_MATMAS_CREATE_RT |
ISM_MASS_MATMAS03_CHANGE |
ISM_MASS_MATMAS03_CHANGE_ALL |
ISM_MASS_MATMAS03_CHANGE_MARC |
ISM_MASS_MATMAS03_CHANGE_MVKE |
CLOI_MASTERIDOC_CREATE_MATMAS |
MASTERIDOC_CREATE_MATMASMASS |
MASTERIDOC_CREATE_REQ_MATMASM |
MASTERIDOC_CREATE_SMD_MATMASM |
MASTERIDOC_MATMAS_ADD_E1MAKTMM |
MASTERIDOC_MATMAS_GET_CHNGPTRM |
MASTERIDOC_MATMAS_KEYLISTS_CRM |
MASTERIDOC_CREATE_MATMAS_MASS |
MASTERIDOC_CREATE_REQ_MATMAS_M |
MASTERIDOC_CREATE_SMD_MATMAS_M |
MASTERIDOC_MATMAS_ADD_E1MAKTM |
MASTERIDOC_MATMAS_GET_CHNGPTR |
MASTERIDOC_MATMAS_KEYLISTS_CR |
IDOC_INPUT_MATMAS_MDM |
MDM_IDOC_CREATE_SMD_MATMAS |
MASTERIDOC_CREATE_MATMAS |
MASTERIDOC_CREATE_REQ_MATMAS |
MASTERIDOC_CREATE_SMD_MATMAS |
MASTERIDOC_EOIO_MATMAS_MATNR |
Extension of SAP IDoc MATMAS
In this part, we will cover how to extend MATMAS IDoc including extending SAP Material Master Structure and User-exits.
First, you will find a step-by-step guide on how to extend MATMAS IDoc Structure in order to add new structures to the existing segments.
Then comes the most important SAP MATMAS User-exit to modify the standard processing of the material IDoc for both input and output.
For more information about Material management in SAP, check this book: SAP Purchasing and Procurement with SAP MM (Materials Management): Business User Guide.
Extend SAP MATMAS04/05 IDocs Structure
In order to extend the structure of MATMAS05/04 IDoc, follow these steps:
- Create a Segment (WE31)
- Create IDoc Type (WE30)
- Add a new Message Type (WE81)
- Attach Message Type to the IDoc Type (WE82)
- Create a Function Module (SE37)
- Mention the IDoc Type, i.e, 0/1/2 (BD51)
- Assign the Message Type, IDoc Type & Function Module (WE57)
- Create a Custom Process Code (WE42)
- Attach the Function Module to the Process Code (BD67)
- Execute Inbound MATMAS IDoc (WE19)
Check also SAP EDI transactions: List of EDI Codes
SAP User Exit for MATMAS05 IDocs
For Input MATMAS05,
In the standard function Module IDOC_INPUT_MATMAS01, you can use the exit CALL CUSTOMER-FUNCTION ‘002’
Else, in SMOD, use the Enhancement MGV00001
User-Exit EXIT_SAPLMV02_002 : Enhancements in Material Master: IDoc – Post
Mainly use the EXIT_SAPLMV02_002 user-exit
Going Further with SAP MATMAS IDoc
Example of Master Data Distribution
The material master maintenance is used here as an example to explain how master data is distributed.
All the scenarios for master data distribution are constructed similarly to the material master data distribution.
List of Related Material IDocs in SAP
Here is the list of the related SAP IDocs for Material: