06-05-2008 1:51 PM
Hi ,
I am working on BOM. If You see the transaction cs03 (go with any bom ) inside we can see the componenets......
These componenet having the check boxes for Assembly and Phantom componenet. If the check box is cheked we will consider as that component is Assembly Or Phantom....
My question is how to identy this at table level..i don't see any field related to these check boxess in SRPO , STKO and MAST.
Please do need full.
Regards,
Raja.K
06-05-2008 1:59 PM
Field STLKZ is the assembly indicator but I can't remember which table this is held on if at all.
You could always loop through the components of your BoM and see if they have their own children - if they do then they are an assembly. I can't remember right now how to identify a phantom assembly sorry.
Gareth.
06-05-2008 4:03 PM
Hi Raja,
If you can handle ABAP, please use FM 'CS_BOM_EXPL_MAT_V2' to explode your Bom
Write something like this :
* Tables "call CS_BOM_EXPL_MAT_V2 "
DATA: BEGIN OF stb OCCURS 0.
INCLUDE STRUCTURE stpox.
DATA: END OF stb.
...
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
auskz = ' '
capid = 'PP01'
datuv = sy-datum
emeng = '1.000'
stlan = '1'
stlal = mast-stlal
mtnrv = matnr
mehrs = 'X'
mmory = '1'
stpst = '0'
werks = werks
IMPORTING
topmat = selpool
dstst = dstst_flg
TABLES
stb = stb
matcat = matcat
EXCEPTIONS
material_not_found = 4
no_plant_data = 8
no_bom_found = 12
no_suitable_bom_found = 16.
SORT stb BY idnrk.
The field which will indicate you wether your component is either an Assembly or a Phantom is stb-dumps ( EQ space , for assembly ).
Hope this helps,
Erwan