Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

to find the bom is multi level or not?

Former Member
0 Kudos

how to check the bom whether it is multi level or single level???? from the abap point of view? from which field we need to check in the table stpo and stko?

is thier any function module or BAPi to find the bom is multi level or not?

Edited by: Julius Bussche on Feb 19, 2009 11:46 AM

5 REPLIES 5

Former Member
0 Kudos

The BOM tables are as follows:

MAST---->Material to BOM Link

STKO -


>BOM Header

STPO----->BOM item

STKO -


BOM - header

STPO -


BOM - item

STAS -


BOMs - Item Selection

STPN -


BOMs - follow-up control

STPU -


BOM - sub-item

STZU -


Permanent BOM data

PLMZ -


Allocation of BOM - items to operations

MAST -


Material to BOM link

KDST -


Sales order to BOM link

Edited by: Phanindra Annaparthi on Feb 19, 2009 6:20 AM

Former Member
0 Kudos

Use FM

CSAP_MAT_BOM_READ

CS_BOM_EXPLOSION_MAT

Former Member
0 Kudos

hi,

see transaction CSK2. and CS21

fm is cs_bom_explosion.

field is RC29L-AENNR

thanks

Former Member
0 Kudos

have a look

[Link|http://www.sapfans.com/forums/viewtopic.php?f=13&t=313478]

Regards

Shashi

Edited by: shashi jha on Feb 19, 2009 6:20 AM

I355602
Advisor
Advisor
0 Kudos

Hi,

Use transaction CSK2,

give the values for sales order, line item, material (not mandatory) and give application as BEST and execute.

You will get an ALV output with the first column as level having values .1, .2 and so on.

This indicates the level of BOM explosion.

Or goto SE37 and use FM CS_BOM_EXPLOSION with details as:-

CAPID : PP01

DATUV : sy-datum

MKTLS : X

MEHRS : X

MTNRV : MATNR (Material Number)

STLAN : 1

STPST : 0

SVWVO : X

WERKS : WERKS (Plant)

VBELN : VBELN (Sales Order)

VBPOS : VBPOS (Line Item)

VRSVO : X

This will return a table STBP, see this table, refer first field STUFE this is the level in multi-level BOM explosion

Or debug the transaction CS21, and check internal table gt_ltb, you will get the first columns for the level of BOM explosion

Hope this helps you.

Regards,

Tarun

Edited by: Tarun Gambhir on Feb 19, 2009 11:07 AM