Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 25

ZBOM Concept

ZBOM
More no. of components in the BOM will lead to ZBOM. Z-BOM concept improves the performance of BOM in SAP. SAP recommends the normal size of variant tables is under 100k and anything more than this will effect the performance. The selection charts from work book are used to update the Z- tables. For the current BOM design using V-tables, addition or deletion of component has to be done in BOM as well as in V-table. In the new design, we have to maintain it in only one place i.e. Z-tables. No need to maintain complex nested Super BOM Structures.

Z- BOM objects
1. 2. 3. 4. 5. 6. Master Z- Table Component Z-Table Upload Program P- Function Download Program BOM & Routing Testing Program

1.Master Z-Table
1. 2. 3. 4. 5. It contains the structure details of the each BOM table. Contents of Master Z- Table : List of Chars used in BOM table for components selection Position of the Chars Type of Chars (single/ multiple etc) All Value Flag BOM Table and Assembly Table descriptions. Master table is used for validation during data upload and for component picking during execution of P-Function.

Screen Shot of Master Z -Table


ABAP will create the Z-Table structure as per our requirement. The required contents of the Z-Table is created (T-Code: SE11)

Z-Table maintained
Once the Z-Table is created ,we will maintain the same as per requirement from the selection charts . T-code for maintaining the Z-Table is SM30.

Z-Table Maintained
Detailed explanation of how the Z-Table maintained.
BOM Table Field Position Char Prop All Value Char name BOM Table Text Assembly Table Description Assembly Table name

1. 2. 3. 4. 5. 6. 7.

From the above table : Assembly Table Name : Taken from the Selection chart BOM Table : from selection chart Field Position: based on the selection chart and Note: Key char position is 1. Char Prop: whether single or Multiple All Value: It indicates with * means if all values of the char are applicable. BOM Table Text: from selection char Assembly Table Description: from selection chart

2.Component Z-Table
It contains the data from the selection chart like: BOM Table Name Object Type Unit Type : Concatenated String Component and Quantity Part Text Part Type Phantom Audit Fields.etc

Screen Shot for Component ZTable


ABAP will create the component Z-Table structure as per our requirement. The required contents of component Z-Table is created (T-Code: SE11)

Z-component Table
In detail of the component table fields : Object Type: Material (MARA),DWG or Text Concatenated String : Form a string from the CHAR value selected. CHAR-1 CHAR-2 CHAR-3 Component Quantity Concatenated String EX: A D G COMP-1 1 A|D|G
B C * F H * COMP-2 COMP-3 2 3 B|*|H C|F|*

* means all values of char are applicable

4. Upload Program
After creating and maintaining the Master Table , we do the uploading of component table. T-code for uploading is Z_MCC_UPLOAD Depending on the Model type select the respective one from the MCC Type. Enter the Assembly Table name and BOM Table name and file path of upload file and execute. Select the validation and upload data radio button (as best practice ).

Upload file
Excel file is upload and contents of excel file are:

Row Id Mode Type Object Type Part Text Application CEWS1 CEWS2 Field4 Key CHAR CHAR1 CHAR2 CHAR3 Plant Part Quantity Part Type

The above file contents data is taken from the selection chart.

Upload Program

Uploading Program
1. 2. 3. 4. 5. In detail some of the excel file contents: Row ID: from selection chart Mode: TYPE: CTO/ CSP Object Type: MARA,DWG or Text CEWS1:

Upload Program
After the successful uploading to cross check BOM tables relevant to a particular key char, we use the T-code: Z_PCF_BOM_TABLES

3. P-Function
P-Function will contain core logic of picking up components & their corresponding quantity.
1. To trigger P-Function a dependency is attached to the configuration profile. 2. It reads to declared chars ie VC_GLB_BOM_FN_MAST_TABLE_DECLR VC_GLB_BOM_FN_LV_TABLE_DECALRE 3. It will get the values of these two chars from the configuration. 4. Now based on the values entered in configuration and Master table entries ,a concatenated string is formed for individual tables. 5. P-Function reads the BOM Assembly Tables one by one 6. It first read the Plant and Unit type (key char) from the configuration and then read only those relevant rows in BOM table.

P-Function
We have to create chars to use in the PFunction.
LENGTH VALUE ATTRIBUTES

SAP CHAR. NAME

Description

Data Type

Addl Data

Additional Values Flag

VALUES

VALUE DESCRIPTION (30 Char)

VC_GLB_BOM_FN_MAST_TABLE_DECLR VC_GLB_BOM_FN_LV_TABLE_DECLARE VC_GLB_BOM_FN_MV_TABLE_DECLARE VC_GLB_BOM_FN_CALL

Declare Master Table Name Declare Table name for BOM Declare Table name for BOM Confirm FM has been Read

Char 30 Char 30 Char 30 1

M M M S

ND ND ND ND X X

ZLV_MASTER_TAB ZMV_MASTER_TAB

ZLV_MASTER_TAB ZMV_MASTER_TAB

Y N P D X X

Yes No Component is missing in Plant Char is missing in Class

VC_GLB_BOM_FN_CHAR_01 VC_GLB_BOM_FN_CHAR_02

Declare table name in Depdncy Char 30 Declare table name in Depdncy Char 30

S S

ND ND

P- Function
VC_GLB_BOM_FN_MAST_TABLE_DECLR char used in LVMCC and MVMCC models and char value is defaulted based on the model. ex: If LVMCC model ,the value is defaulted to ZLV_MASTER_TAB in the respective class level. VC_GLB_BOM_FN_LV_TABLE_DECLARE char is used in LVMCC model. VC_GLB_BOM_FN_MV_TABLE_DECLARE char is used in MVMCC model.

Procedure is assigned to configuration profile


Procedures is assigned to configuration profile (CU42)

Procedure for BOM Table Declare

Procedure with condition

Procedure without condition

5. Testing and Download Program


T-code for Testing: Z_PCF_TEST_MCC_KMAT

Download program
T-code for Download : Z_MCC_UPLOAD

Recommendation
Recommendations for Performance consideration: A BOM table should not have more than 15 chars. BOM table should not have more than 8 chars with ALL VALUE (*).

You might also like