2007 Jul 30 8:35 AM
hi experts
I have one problem I have 4 materials (ie for line item). i want all sub level from Bill of Material.
for each material i want sublevel from BOM.
in 4 materials one is Main Material and i want sub level from BOM.
In which talbe i should find these sublevel item
2007 Jul 30 8:37 AM
Hi,
First hit against the MAST table with the material number. Then hit against STPO with the internal BOM number to get the components. There are also some function modules that will do this to.
data: xmast type mast.
data: istpo type table of stpo with header line.
Select Single * from mast
where matnr = p_matnr.
If sy-subrc = 0.
Write:/ 'This material has a BOM'.
else.
Write:/ 'No BOM found'.
Endif.
write:/ 'Components'.
select * into corresponding fields of table istpo
from stpo
where stlnr = xmast-stlnr.
loop at istpo.
write:/ istpo-idnrk.
endloop.
Regards
2007 Jul 30 9:06 AM
Try the function module
CUBM_MATERIAL_BOM_READ
i_matnr =
i_werks =
i_capid = PP01
I_Menge = 1
With Wishes
Jai
2007 Jul 31 4:55 AM
HI JAI,
CUBM_MATERIAL_BOM_READ
I can use this functional module but i have only 2 inputs ie
Material.
BOM Application.
for these 2inputs what i should to.................
Plz its urgent
2007 Jul 31 5:09 AM
HI JAI,
CUBM_MATERIAL_BOM_READ
I can use this functional module but i have only 2 inputs ie
Material.
BOM Application.
for these 2inputs what i should to.................
Plz its urgent