We are using FM CS_BOM_EXPL_MAT_V2 in a report program that needs a fully exploded material BOM for many materials. Users have long complained that it runs too slow. We have identified this FM as the bottleneck. Is there an alternative material BOM explosion FM or some trick to make it run faster?
Here is the calling code:
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2' EXPORTING * FTREL = ' ' * ALTVO = ' ' * AUFSW = ' ' * AUMGB = ' ' * aumng = 0 * AUSKZ = ' ' * AMIND = ' ' * BAGRP = ' ' * BEIKZ = ' ' * BESSL = ' ' * BGIXO = ' ' * BREMS = ' ' capid = pm_capid * cospr = ' ' * cuobj = 000000000000000 * cuols = ' ' datuv = pm_datuv * delnl = ' ' * ehndl = ' ' * emeng = 0 * erskz = ' ' * erssl = ' ' * fbstp = ' ' "Keine Auflsg. bei F * ksbvo = ' ' * mbwls = ' ' mktls = 'X' "Kurztext lesen * mdmps = ' ' mehrs = 'X' "Mehrstufige Auflösung * mkmat = ' ' * mmaps = ' ' * splww = ' ' * mmory = ' ' mtnrv = t_selections-matnr postp = 'L' * RNDKZ = ' ' * RVREL = ' ' * SANFR = ' ' * SANIN = ' ' * SANKA = ' ' * SANKO = ' ' * SANVS = ' ' * SCHGT = ' ' * STKKZ = ' ' stlal = pm_stlal stlan = pm_stlan werks = p_werks * mdnot = ' ' * panot = ' ' * verid = ' ' IMPORTING topmat = selpool "Info zum Top-Material * dstst = TABLES stb = stb "Enthält Positionsdaten matcat = matcat "Enthält Baugruppendaten EXCEPTIONS alt_not_found = 1 call_invalid = 2 material_not_found = 3 missing_authorization = 4 no_bom_found = 5 no_plant_data = 6 no_suitable_bom_found = 7 conversion_error = 8 OTHERS = 9.
Edited by: Larry Browning on Jul 14, 2011 11:08 AM