Sub topic 13
Creating a Material and Extending It to Other Levels
This chapter assumes you know SAP GUI navigation, the organizational units (company code, plant, storage location, sales organization), and the idea of views from earlier chapters. You will create a material, then extend it to more levels.
Creating a material
Creating a material means writing its client-level data (table MARA and descriptions in MAKT) and at least one organizational level. In SAP S/4HANA you can use transaction MM01 or the Fiori app Manage Material (the successor of the classic create/change transactions in the UI).
The usual steps in MM01:
- Enter the industry sector and material type. Leave the number empty if the type uses internal number assignment.
- Select the views you need. Only views that the material type allows are offered.
- Enter the organizational levels the selected views require, such as plant, storage location, or sales organization and distribution channel.
- Fill in the fields on each view. Required fields differ by view and by field selection settings.
- Save. The system shows the assigned material number.
Extending a material
Extending means adding data for a new organizational level to a material that already exists. You use MM01 again, enter the existing material number, and choose the new plant, storage location, or sales area. The client-level data is not copied, because it exists once. Only the new level's records are created.
The Reference option copies field values from another material or another plant. This saves typing, but you must still review each value, because the copied values may not suit the new level.
Typical errors
- Plant not extended before storage location. Plant data (MARC) must exist before storage location data (MARD). Select the Plant Data / Storage view together with the plant.
- Valuation missing. If the valuation area is the plant, an Accounting view must be created for that plant. Otherwise goods movements fail because there is no valuation record (MBEW).
- Material type does not allow a view. The type controls which views and which valuation behavior apply. Choose the type with care, because changing it later is restricted.
- Missing required fields. Field selection can make a field required. A save then fails until the field is filled.
Creating from code
The BAPI BAPI_MATERIAL_SAVEDATA performs the same create or extend step. Each data structure has a matching structure ending in X. Only fields flagged there are written. The program commits only when the return message is not an error. The full example appears in the last chapter of this tutorial.
Exercise
A material exists with Basic Data and plant 1010 data. A colleague wants to sell it from a new sales organization. Which data do you create, and do you re-enter the description and base unit of measure?
Show answer
Extend the material in MM01 to the new sales organization and distribution channel, selecting the Sales Organization views. The description and base unit are client-level data stored once in MARA and MAKT, so you do not re-enter them.
Exercise
Why can a goods receipt fail for a material that has plant data in MARC but no Accounting view for that plant?
Show answer
The valuation record in MBEW is missing. When the valuation area is the plant, each plant needs its own valuation data before stock postings are possible.