SAP Material Master Data IDoc MATMAS (Structure, BAPI and Enhancement)

SAP Material Data MATMAS05 1 e1495547753219

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.

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.

SegmentSegmentSegmentDescription
E1MARAMMaster material general data (MARA)
E1MARA1Additional Fields for E1MARAM
E1MAKTMMaster material short texts (MAKT)
E1MARCMMaster material C segment (MARC)
E1MARC1Additional Fields for E1MARCM
E1MARDMMaster material warehouse/batch segment (MARD)
E1MFHMMMaster material production resource/too l (MFHM)
E1MPGDMMaster material product group
E1MPOPMMaster material forecast parameter
E1MPRWMMaster material forecast value
E1MVEGMMaster material total consumption
E1MVEUMMaster material unplanned consumption
E1MKALMMaster material production version
E1MARMMMaster material units of measure (MARM)
E1MEANMMaster Material European Article Number (MEAN)
E1MBEWMMaster material material valuation (MBEW)
E1MLGNMMaster material material data per warehouse number (MLGN)
E1MLGTMMaterial Master: Material Data for Each Storage Type (MLGT)
E1MVKEMMaster material sales data (MVKE)
E1MLANMMaster material tax classification (MLAN)
E1MTXHMMaster material long text header
E1MTXLMMaster material long text line
E1MTXLMMaster material long text line

Check also

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 ReportDescription
RBDSEMATStand alone program to generate IDocs (Send Material)
RBDMIDOCOutbound triggered from change pointer

SAP MATMAS05 IDoc BAPI

The most important BAPIs for SAP Material Master IDoc MATMAS05 are:

Idoc MATMAS05 BAPIDescription
MASTER_IDOC_DISTRIBUTECreate and Distribute MATMAS IDoc with Material ID
MASTERIDOC_CREATE_MATMASCreate MATMAS IDoc
IDOC_INPUT_MATMAS_BAPIProcess Input MATMAS Idoc
IDOC_INPUT_MATMAS_MASS_BAPIMass 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:

  1. Create a Segment (WE31)
  2. Create IDoc Type (WE30)
  3. Add a new Message Type (WE81)
  4. Attach Message Type to the IDoc Type (WE82)
  5. Create a Function Module (SE37)
  6. Mention the IDoc Type, i.e, 0/1/2 (BD51)
  7. Assign the Message Type, IDoc Type & Function Module (WE57)
  8. Create a Custom Process Code (WE42)
  9. Attach the Function Module to the Process Code (BD67)
  10. 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

SAP Material Master Data IDoc

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: