You are on page 1of 7

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.

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 hirarchy 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


Segment Segment Segment Description

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 & 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

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.
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
IDOC_INPUT_MATMAS_MASS_BAPI

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
IDOC_INPUT_MATMAS_MASS_BAPI

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.*

*
source: Example of Master Data Distribution
List of Related Material Idocs in SAP
Here the list of the related SAP IDos for Material:
MATMAS_BAPI01 Create and Change Material Master Data

MATMAS_BAPI02 Create and Change Material Master Data

MATMAS_BAPI03 Create and Change Material Master Data

MATMAS_MASS_BAPI01 BAPI for Mass Maintenance of Material Data

MATMAS_MASS_BAPI02 BAPI for Mass Maintenance of Material Data

MATMAS_MASS_BAPI03 BAPI for Mass Maintenance of Material Data

MATMAS01 Material Master

MATMAS02 Material Master


MATMAS_BAPI01 Create and Change Material Master Data

MATMAS03 Material Master

MATMAS04 Material Master

MATMAS05 Enhancement: Distribution of Single-Level Variants

MATMASDI Customer Field Distribution