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

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 thid 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 hirarchy 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  & 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 for Replicate Material with SAP MATMAS IDoc : BD10

The BD10 is based on the SAP Standard Report RBDMATST.

MATMAS Report Description
RBDSEMATStand 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.

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 entend MATMAS Idoc including extending SAP Material Master Structure and User-exits.

First, you will find a step by step guide how to extend MATMAS IDoc Structure in order to add new structures to the existing segments.
Then comes the most importat SAP MATMAS User-exit to modify the standard processing of the material Idoc for both Input and output.

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 IDOCs (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

UserExit EXIT_SAPLMV02_002 : Enhancements in Material Master: IDoc – Post

Mainly use the EXIT_SAPLMV02_002 userexit

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 in a similar way to the material master data distribution.*

This graphic is explained in the accompanying text* source: Example of Master Data Distribution

List of Related Material Idocs  in SAP

Here the list of the related SAP IDos for Material:

You may also like