# SAP ECC MATMAS05 Material Master IDoc Segments Reference

> Source: https://netray.co/tools/sap-ecc-matmas05-idoc-segments-reference
> Publisher: Netray (netray.co), AI and integration engineering for ERP and manufacturing systems.
> Section: Free Tools

## Short answer

The MATMAS05 segment tree with the material master table each segment carries, so you can build, reduce or debug material master distribution.

## Category

sap

## Erp

SAP ECC 6.0

## Audience

- SAP MDM consultant
- Integration developer
- SAP MM consultant
- SAP Basis administrator

## Tool

**Kind:** worksheet

**Mode:** reference

**Columns:**

#### Segment

**Key:** seg

**Type:** text

#### Parent

**Key:** parent

**Type:** text

#### Material master table

**Key:** tab

**Type:** text

#### Description

**Key:** desc

**Type:** text

#### Mandatory

**Key:** mand

**Type:** select

**Options:**

- Y
- N

#### Occurrence

**Key:** occ

**Type:** text

#### Key fields

**Key:** fields

**Type:** text

**Rows:**

**Seg:** E1MARAM

**Parent:** Root

**Tab:** MARA

**Desc:** General material data

**Mand:** Y

**Occ:** Once per IDoc

**Fields:** MSGFN, MATNR, MTART, MBRSH, MEINS, MATKL

**Seg:** E1MARA1

**Parent:** E1MARAM

**Tab:** MARA

**Desc:** Additional fields for E1MARAM (long material number, EWM and handling unit fields)

**Mand:** N

**Occ:** Once

**Fields:** MATNR_EXTERNAL, MATNR_VERSION, MATNR_GUID

**Seg:** E1MAKTM

**Parent:** E1MARAM

**Tab:** MAKT

**Desc:** Material short texts

**Mand:** Y

**Occ:** One per language

**Fields:** MSGFN, SPRAS, MAKTX, SPRAS_ISO

**Seg:** E1MARCM

**Parent:** E1MARAM

**Tab:** MARC

**Desc:** Plant data

**Mand:** N

**Occ:** One per plant

**Fields:** MSGFN, WERKS, DISMM, DISPO, BESKZ, PRCTR

**Seg:** E1MARDM

**Parent:** E1MARCM

**Tab:** MARD

**Desc:** Storage location data

**Mand:** N

**Occ:** One per storage location

**Fields:** MSGFN, LGORT, LGPBE

**Seg:** E1MFHMM

**Parent:** E1MARCM

**Tab:** MFHM

**Desc:** Production resource/tool data

**Mand:** N

**Occ:** Repeating

**Fields:** MSGFN, OBJTY, OBJID

**Seg:** E1MPGDM

**Parent:** E1MARCM

**Tab:** MPGD

**Desc:** Product group (planning material) data

**Mand:** N

**Occ:** Repeating

**Fields:** MSGFN, PRGRP, PRWRK, UMREF

**Seg:** E1MPOPM

**Parent:** E1MARCM

**Tab:** MPOP

**Desc:** Forecast parameters

**Mand:** N

**Occ:** Repeating

**Fields:** MSGFN, PERKZ, PRMOD

**Seg:** E1MPRWM

**Parent:** E1MARCM

**Tab:** PROW

**Desc:** Forecast values

**Mand:** N

**Occ:** Repeating

**Fields:** MSGFN, ERTAG, PRWRT

**Seg:** E1MVEGM

**Parent:** E1MARCM

**Tab:** MVER

**Desc:** Total consumption

**Mand:** N

**Occ:** Repeating

**Fields:** MSGFN, ERTAG, VBWRT

**Seg:** E1MVEUM

**Parent:** E1MARCM

**Tab:** MVER

**Desc:** Unplanned consumption

**Mand:** N

**Occ:** Repeating

**Fields:** MSGFN, ERTAG, VBWRT

**Seg:** E1MKALM

**Parent:** E1MARCM

**Tab:** MKAL

**Desc:** Production versions

**Mand:** N

**Occ:** One per production version

**Fields:** MSGFN, VERID, BDATU, ADATU, STLAL, PLNNR

**Seg:** E1MARMM

**Parent:** E1MARAM

**Tab:** MARM

**Desc:** Units of measure

**Mand:** N

**Occ:** One per alternative unit

**Fields:** MSGFN, MEINH, UMREZ, UMREN

**Seg:** E1MEANM

**Parent:** E1MARMM

**Tab:** MEAN

**Desc:** International article numbers (EANs)

**Mand:** N

**Occ:** Repeating per unit

**Fields:** MSGFN, EAN11, EANTP

**Seg:** E1MBEWM

**Parent:** E1MARAM

**Tab:** MBEW

**Desc:** Valuation data

**Mand:** N

**Occ:** One per valuation area and type

**Fields:** MSGFN, BWKEY, BWTAR, BKLAS, VPRSV, STPRS, VERPR

**Seg:** E1MLGNM

**Parent:** E1MARAM

**Tab:** MLGN

**Desc:** Warehouse number data

**Mand:** N

**Occ:** One per warehouse number

**Fields:** MSGFN, LGNUM

**Seg:** E1MLGTM

**Parent:** E1MLGNM

**Tab:** MLGT

**Desc:** Storage type data

**Mand:** N

**Occ:** One per storage type

**Fields:** MSGFN, LGTYP, LGPLA, LPMAX, LPMIN

**Seg:** E1MVKEM

**Parent:** E1MARAM

**Tab:** MVKE

**Desc:** Sales data

**Mand:** N

**Occ:** One per sales organization and distribution channel

**Fields:** MSGFN, VKORG, VTWEG, MTPOS

**Seg:** E1MLANM

**Parent:** E1MARAM

**Tab:** MLAN

**Desc:** Tax classification

**Mand:** N

**Occ:** One per country

**Fields:** MSGFN, ALAND, TATY1, TAXM1

**Seg:** E1MTXHM

**Parent:** E1MARAM

**Tab:** STXH

**Desc:** Long text header

**Mand:** N

**Occ:** One per text object, ID and language

**Fields:** MSGFN, TDOBJECT, TDNAME, TDID, TDSPRAS

**Seg:** E1MTXLM

**Parent:** E1MTXHM

**Tab:** STXL (text lines)

**Desc:** Long text lines

**Mand:** N

**Occ:** One per text line

**Fields:** MSGFN, TDFORMAT, TDLINE

**Notes:** Segment list and hierarchy as in SAP ECC 6.0 MATMAS05; check WE30 or WE60 in your system for exact occurrences and for any customer extension segments. Field lists show the most used fields, not every field.

## Content

**Intro:** This reference lists the MATMAS05 segments for the material master IDoc in SAP ECC 6.0, with the parent segment, the material master table each one carries and whether it is mandatory. Use it to build a reduced message type, map a non-SAP system or read a failed IDoc.

**Sections:**

#### Where this lives in SAP ECC

**Body:** Material master distribution uses message type MATMAS with basic type MATMAS05. BD10 sends materials manually; change pointers (BD50 to activate per message type, BD52 for relevant fields, BD21 to process) send changes automatically. On the receiving side, process code MATM calls IDOC_INPUT_MATMAS01, which creates or changes the material through the same logic as direct input. Distribution model (BD64) and partner profiles (WE20) decide who receives what. A reduced message type created in BD53 lets you strip segments and fields you do not want to send, for example valuation data to a non-SAP warehouse system.

**Bullets:**

- BD10: send material
- BD53: reduce message type
- BD50 / BD52 / BD21: change pointers
- WE30 / WE60: segment tree and documentation

#### Worked example: one material, two plants

**Body:** A raw material with two plants, three storage locations, one sales area, two languages and valuation in both plants produces: one E1MARAM; two E1MAKTM (EN, DE); two E1MARCM, each with its E1MARDM children (three in total); two E1MBEWM, one per valuation area; one E1MVKEM; one E1MARMM per alternative unit with any E1MEANM below it; and E1MLANM per country. Each segment carries a message function in MSGFN: 003 delete, 004 change, 005 replace, 009 original, 018 resend; check which value your sender uses, because the receiver treats them differently. To leave a field unchanged on the receiver, send the NODATA character '/' in it rather than a blank, because a blank overwrites the existing value.

#### Common errors and gotchas

**Body:** Status 60 or 51 with a mandatory segment message means E1MARAM or E1MAKTM is missing, often because a reduced message type dropped texts. Errors such as plant or valuation area not defined appear when the receiver lacks the organizational units; fix customizing, not the IDoc. Material type and industry sector in E1MARAM must exist in the receiver. The material number fields MATNR_EXTERNAL, MATNR_VERSION and MATNR_GUID in E1MARA1 relate to long material numbers and are normally empty in ECC. Custom fields need a segment extension (WE30 extension, then the user exits in the MATMAS inbound and outbound function modules); do not add fields to the standard segments.

#### How to check the result in the system

**Body:** WE02 shows the segment tree of the IDoc; expand E1MARCM to confirm each plant arrived. Status 53 means the material was posted. Compare the material in MM03 on both systems, or read MARA, MARC and MBEW in SE16 for the same MATNR. For change pointers, BDCP2 (or BDCPV) shows which pointers were created and processed.

**Cta:** If your master data team wants to ask in plain English which materials failed distribution and why, we can add a private AI layer over SAP ECC on your own servers.

**Faq:**

#### What is the IDoc for material master in SAP?

**Answer:** Message type MATMAS with basic type MATMAS05 in SAP ECC 6.0. Outbound uses BD10 or change pointers; inbound uses process code MATM with function module IDOC_INPUT_MATMAS01. MATMAS_BAPI is an alternative message type based on the BAPI interface, with its own structure.

#### Which MATMAS segments are mandatory?

**Answer:** E1MARAM (general data from MARA) and E1MAKTM (material description from MAKT) are mandatory. All other segments are optional and can repeat, such as E1MARCM per plant and E1MBEWM per valuation area. If a reduced message type removes E1MAKTM, the receiver rejects the IDoc.

#### How do I add custom fields to MATMAS?

**Answer:** Create an extension of MATMAS05 in WE30 with a Z segment under the right parent, for example under E1MARAM for MARA Z fields, link it to message type MATMAS in WE82, then fill it in the outbound user exit and read it in the inbound user exit. Never change standard segment definitions.

#### What does '/' mean in a MATMAS IDoc field?

**Answer:** The slash is the NODATA character. It tells the inbound function module to leave the existing value unchanged. A blank field instead means clear the value. This matters on change sends from non-SAP systems that only know some fields of the material master.

## Search terms

sap idoc for material master, sap idoc example, sap idoc custom segments, sap idoc structure, matmas05 segments, matmas idoc structure, e1maram e1maktm mandatory

---
Talk to an engineer: https://netray.co/contact?intent=erp_ai | Machine catalog: https://netray.co/agent/catalog.json
