on 10-23-2006 10:18 AM
All,
I have a list of finished goods (about 3000). I need to check which components are in the related BOMs. I need something like CS15 but for a mass data process.
I dont want to create an ABAP because my ABAP skills arent that good.
Ive looked to Table STKO but I cant see the header material there I only see the BOM number. If some one could tell me where I can see the link between the header Material and the BOM number I could use table STOP.
Thanks
In advance
MAST - TOP BOM (material and bom number)
STPO - components
NOTE: MAST have different types of BOMs, for example in SD same material may have sales bom & revenue bom ...
STLAN field - BOM usage determines BOM type.
STLNR - BOm number, then in STPO you can find components.
I would suhhest you rather use FM like CS_BOM_EXPL_MAT_V2
to explode BOM on any date (some components may not be valid on your date).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
mast contains the matnr and the assignment to the bom-number. The link to stpo goes via stas, key fiels stlkn
example for coding:
select stlnr stlkn idnrk from stpo into
corresponding fields of table it_stpo
where stlty eq 'M' and
idnrk eq p_matnr and
lkenz eq space.
select stlnr stlkn from stas into
corresponding fields of table it_stas
for all entries in it_stpo
where stlty eq 'M' and
stlnr eq it_stpo-stlnr and
stlkn eq it_stpo-stlkn and
lkenz eq space.
select stlnr matnr from mast into
corresponding fields of table it_mast
for all entries in it_stas
where stlnr eq it_stas-stlnr and
werks eq p_werks.
Good luck!
Jürgen
User | Count |
---|---|
109 | |
15 | |
10 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.