02-19-2009 5:12 AM
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
02-19-2009 5:15 AM
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
02-19-2009 5:15 AM
02-19-2009 5:16 AM
hi,
see transaction CSK2. and CS21
fm is cs_bom_explosion.
field is RC29L-AENNR
thanks
02-19-2009 5:20 AM
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
02-19-2009 5:28 AM
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