06-03-2009 2:27 PM
dear all
I want to know how can I get the BOM usage ? I search in table MAST and STPO
but it can't be decided only one record.
if do so , I can't use the FM ' CS_BOM_EXPL_MAT_V2'.
So can anybody help me
thanks in advacne !
Kind Regards
Nick
06-03-2009 2:35 PM
Hi,
We have used to get the bom usage for material.
SELECT amatnr awerks astlnr astlal a~stlan
b~stlty "STLNR STLAL
bstkoz bdatuv b~aennr
FROM mast AS a INNER JOIN stko AS b
ON astlnr = bstlnr
and astlal = bstlal
INTO CORRESPONDING FIELDS OF TABLE ig_bom
FOR ALL ENTRIES IN ig_matno
WHERE a~matnr = ig_matno-matnr AND
a~werks = ig_matno-werks AND
a~stlan = '3' AND
b~stlty = 'M' and
b~datuv <= p_datuv.
and use same FM to explode Material BOM
Cheers,
Naveen
06-03-2009 2:48 PM
Hi Naveen,
First , Thanks for your reply . But I think your solution doens't meet my request .
I want to get BOM usage (STLAN) , and the BOM usage is not fixed .
Kind Regards
Nick