Hallo Thomas,
dazu gibt es einen sehr performanten FB:
* Stücklisten auflösen (mehrs = X bis ins letzte)
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
altvo = pm_altvo
aufsw = ' '
auskz = pm_ausch
bagrp = pm_bagrp
beikz = pm_beikz
bessl = pm_bessl
brems = pm_brems
capid = pm_capid
datuv = pm_datuv
ehndl = pm_ehndl
emeng = pm_emeng
erskz = pm_erskz
erssl = pm_erssl
mbwls = ' '
mtnrv = pm_mtnrv
mehrs = 'X'
*del MMORY = '1' "YHG020009"HGB070841
mmory = mem_mngmt "HGB070841
postp = pm_postp
sanko = pm_sanko
sanfr = pm_sanfe
sanka = pm_sanka
sanin = pm_sanin
sanvs = pm_sanvs
rndkz = tcspr-amekz "YHG100738
rvrel = pm_rvrel
schgt = pm_schgt
stkkz = pm_stkkz
stlal = pm_stlal
stlan = pm_stlan
werks = pm_werks
IMPORTING
topmat = selpool
dstst = dstst_flg "YHG132854
TABLES
stb = stb
matcat = matcat
EXCEPTIONS
material_not_found = 4
no_plant_data = 8
no_bom_found = 12
no_suitable_bom_found = 16
alt_not_found = 24
missing_authorization = 28.
Der löst bis in die kleinste Ecke die Stückliste auf.
Gruß
Wolfgang