You are on page 1of 35

Structured Articles & Full Products

with Empties
Jörg Haupenthal
Internal
March, 2017
Introduction and Overview
Structured Articles & Full Products with Empties
Article Data Master - Definition & Article Categories

“The article master contains information on all the articles that a company procures or
produces, stores, and sells. It is the company's central source for retrieving article-specific
data. This information is stored in individual article master records.”

(Main) Article Categories:

Article

Single Article Generic Article Structured Articles

Sales Set

Generic Article

Prepack
Variants Display

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 3


SAP Retail: Structured Articles

Case set Shoe prepack Chocolate Display


= = =
Sales set Prepack Display
Groups of articles Quantity arrangement Articles combined
with special of the variants with an particular
sales price of a generic article packing

MARA-ATTYP = “10” MARA-ATTYP = “11” MARA-ATTYP = “12”

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 4


SAP Retail: Full Product with deposit relevant Empties

Full Product in
different UoMs
(e.g. beverages,
yogurt, …) Coca Cola (Bottle)
Coca Cola (Crate = 12 Bottles)

Needed empties
dependent on
the given UoM
(e.g. bottle, bin,
box, crate made
of plastic, glass)

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 5


SAP Retail: Generic Article / Variants

 Variants are articles, which are only different in particular characteristics


(for example: taste, color, size)
 Variant articles are combined under a generic article (linked via MARA-SATNR)
 Own master data record for every inventory-managed variant
 Comparable to a configurable material with pre-configured material variants

MARA-ATTYP = “02”

Generic article Generic article


MARA-ATTYP = “01”

Variants Variants
© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 6
UI Perspective
Integration of BOM maintenance of structured articles/empties BOMs into MM41 / MM42 / MM43
MM4x – Article Master Data of Sales Set

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 8


MM4x – Article Master Data of Sales Set Components

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 9


MM4x – BOM Components of Sales Set

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 10


MM4x – Article Master Data of Display

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 11


MM4x – Article Master Data of Display Components

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 12


MM4x – BOM Components of Display

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 13


MM4x – Article Master Data of Prepack

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 14


MM4x – Article Master Data of Prepack Components (Variants)

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 15


MM4x – BOM Components of Prepack

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 16


MM4x – Article Master Data of Full Product

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 17


MM4x – Article Master Data of Empties (Full Product Components)

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 18


MM4x – BOM Components (Empties) of Full Product

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 19


Boundaries for the BOM maintenance of Structured Articles

The maintenance of structured articles (especially the BOM maintenance) happens within the
following boundaries:

 There were separate transactions available for each category of structured article (obsolete since years)

 Right now integration of BOM maintenance within MM41 / MM42 / MM43

 Only 1 level BOMs allowed (neither the maintenance nor the processes are prepared to work with multi-level
BOM structures related to structured articles)
=> in S/4HANA a 2 level BOM structure shall be enabled

 Simple BOM structures (no time-dependencies , …)


-> only component article, component quantity and component quantity UoM can be entered

 Usage of standard BOM structures and DB tables with one exception for empties BOMs (own wrapper APIs)

 Special customizing to control the BOM explosion in individual standard processes (purchase order, goods
receipt)

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 20


BOM maintenance restrictions for Articles in MM4x (1)

The integrated maintenance of BOM within MM4x is restricted/limited as follows:

 Currently this kinds of BOMs can only be maintained for articles, not for materials (here only CS0x transactions
can be used to build similar BOMs)

 Restriction for articles with MARA-ATTYP = 10 / 11 / 12 (structured articles)


 If ATTYP = 10 / 12: only articles of ATTYP = 00 / 02 are allowed as components
 If ATTYP = 11: only articles of ATTYP = 02 are allowed as components
 Empties articles are not allowed as components
 If a full product is added as a component, we do not show the assigned empties directly (only via navigation)
=> 2 level BOM exception
 The BOM usage is always (hard-coded) “3” (Universal) in this case
 Only one BOM per article can be maintained (no further BOM alternatives possible)
 Remark: basically a BOM maintenance via CS0x transactions is also possible but in this case our business
checks are not in place and you can create BOM structures which cannot be handled correctly within the
processes

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 21


BOM maintenance restrictions for Articles in MM4x (2)

The integrated maintenance of BOM within MM4x is restricted/limited as follows:

 Restrictions for articles with MARA-ATTYP = 00, 02 (single articles, variants)


 These 2 article categories can be used to define full products with empties BOMs
 Only empties articles are allowed as component
 The BOM usage is always (hard-coded) “7” (Empties) in this case
 Several BOMs (BOM alternatives) per article can be maintained
=> each BOM alternative gets linked to a certain UoM of the full product
 There is a special material type in place for empties articles (in general: “LGUT”)
=> T134-WMAKG (Material Type ID) of the given material type has to be set to “2” (Material type for empties)

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 22


DB Perspective
Database tables used to store the BOMs of structured articles and full products
Customizing tables used to control the BOM explosion within processes
Major BOM Master Data Tables: Header Tables (MAST, STKO)

Full Product
with Empties
Display Article
Sales Set
Prepack

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 24


Major BOM Master Data Tables: Position Table (STAS)

Full Product
with Empties
Display Article
Sales Set
Prepack

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 25


Major BOM Master Data Tables: Position Table (STPO), Mapping
Table (T415B)

Full Product
with Empties
Display Article
Sales Set
Prepack

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 26


Major Customizing Tables: Categories of Structured Articles
Link Structured Articles to BOM Types/Usages

Mapping of structured articles


categories to:
• BOM usages (STLAN)
• Item categories (POSTP)
BOM category is hardcoded to “M”.

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 27


Major Customizing Tables: Process Controlling for Structured Articles
Influence the BOM explosion for Structured Articles in Purchase Order/Goods Receipt

1 2 3

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 28


Major Customizing Tables: Control Changeability for Structured Articles

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 29


Functional Perspective
Integrated BOM handling in MM4x for structured articles and empties BOMs
Main Function Groups (Retail Responsibility)

Package WSTR (R/3 Material Master (Retail): Structured Articles)


Function Group MGW0 (DB Accesses for Structured Articles) with main Function Modules
 MGW0_COMPONENTS Read type 3 BOMs of a header article
 MGW0_PACKAGING_COMPONENTS Read type 7 BOMs (empties BOMs) of a header article
 MGW0_WHERE_USED_COMPONENTS Read header article for a given component article

Function Group WST1 (Structured Articles: Assign Components) with main Function Modules
 WST1_BOM_ASSIGN Provide BOM maintenance capability within MM4x
 WST1_BOM_MAINTAIN Dialog module to assign BOM components to an article
 WST1_COMPONENT_CHECK Consistency check for article components

Function Group WST0 (Buffer and Update BOM Data) with main Function Modules
 WST0_BOM_TO_BUFFER Write BOM data into internal buffer
 WST0_BOM_FROM_BUFFER Read BOM data from internal buffer
 WST0_CHANGE_CHECK Check for BOM changes
 WST0_START_POSTING Trigger posting of BOM data
 WST0_POST Call corresponding BOM API to post the BOM data to the database

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 31


Main Function Groups (BOM Responsibility)

Package CS (R/3 Application development: PP Bills of Material)


Function Group CSAI (BOMs: internal APIs) with main Function Modules
 CSAI_BOM_CREATE API Create Bill Of Material
 CSAI_BOM_DELETE API Delete Bill Of Material
 CSAI_BOM_MAINTAIN API Maintain Bill Of Material

Function Group CSDI (BOMs: dialog control) with main Function Module
 CS_DI_BOM_VB Consolidation of Bill Of Material and Posting

Function Group CSBT (Document tables for BOM processing) with main Function Module
 CS_BT_BOM_POST Call update task function module

Function Group CSVB (BOMs: update routines) with main Function Module
 BOM_POST Post Bill Of Material Completely

Function Group CSMT (BOMs: maintain control tables) with main Function Modules
 CSMT_T415B_MAINTAIN Maintain table T415B
 CSMT_T415B_POST Table T415B: save changes
© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 32
Simplified Callstacks for the integrated BOM maintenance

Starting the BOM maintenance in MM4x


MODULE (PAI) BILDFOLGE (MGMW)
FORM BILDFOLGE (MGMW)
FM MATERIAL_DYNPRO_SEQUENCE
FORM OKCODE_KOMPONENTEN_RT (MGMW)
FM WST1_BOM_ASSIGN
FM WST1_BOM_MAINTAIN

Posting the BOM data in MM4x


FM CSMT_T415B_MAINTAIN Posting of table T415B for empties BOMs
FM CSMT_T415B_POST in update task

FM CSAI_BOM_CREATE Posting tables MAST, STKO, STPO, … to create a new BOM


FM CS_DI_BOM_VB
FM CS_BT_BOM_POST
FM BOM_POST in update task

FM CSAI_BOM_MAINTAIN Posting tables MAST, STKO, STPO, … to change an existing BOM


FM CS_DI_BOM_VB
FM CS_BT_BOM_POST
FM BOM_POST in update task

FM CSAI_BOM_DELETE Posting tables MAST, STKO, STPO, … to delete an existing BOM


FM CS_DI_BOM_VB
FM CS_BT_BOM_POST
FM BOM_POST in update task

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 33


Callstacks for the integrated BOM maintenance – Posting Focus

Posting the BOM data in MM4x – Details about ON COMMIT and IN UPDATE TASK process flow
FM MATERIAL_ARRAY_UPDATE_RETAIL
FM MATERIAL_POST_OTHER_DATA
FM WST0_START_POSTING
FM WST0_POST
FORM BOM_CREATE
FM CSMT_T415B_MAINTAIN
FORM T415B_UPDATE ON COMMIT
FM CSMT_T415B_POST IN UPDATE TASK
FM CSAI_BOM_CREATE
FM CS_DI_BOM_VB
FORM BUCHEN ON COMMIT
FM CS_BT_BOM_POST
FM BOM_POST IN UPDATE TASK

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 34


Thank you
Contact information:

F name MI. L name


Title
Address
Phone number

© 2015 SAP SE or an SAP affiliate company. All rights reserved.

You might also like