Skip to Content
0
Former Member
Nov 08, 2007 at 07:26 PM

Alternative BOM

243 Views

Hello Friends,

I am using the function Moodule

'CS_BOM_EXPL_MAT_V2'

to get all the BOM materials.

The issue is for some material there are couple of alternative BOM.

IN this function Module for the Erporting parameter STLAL When I am passing

STLAL = '01' it gets the data for Alternate BOM = 1. When I pass

STLAL = '02' it gets data for alternate BOM = 2.

However My requirement is to get the data for all the alternatives.

I tried to pass a blank field, it gets the data only for Alt BOM = '01'.

I commented this field and it still gets data for ALT BOM = '01'.

ANy suggestion on how to get the data for all the alternatives.

Thanks,

STER.

    CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
      EXPORTING
        FTREL                 = ' '
        ALTVO                 = ' '
        AUFSW                 = ' '
        AUSKZ                 = ' '
        BAGRP                 = ' '
        BEIKZ                 = ' '
        BESSL                 = ' '
        BGIXO                 = ' '
        BREMS                 = ' '
        CAPID                 = P_CAPID
        DATUV                 = V_DATUV
        EMENG                 = ' '
        ERSKZ                 = ' '
        ERSSL                 = ' '
        MBWLS                 = ' '
        MTNRV                 = W_MARC_MKAL-MATNR
        MDMPS                 = ' '
        MEHRS                 = ' '
        MMORY                 = ' '
        POSTP                 = ' '
        SANKO                 = ' '
        SANFR                 = ' '
        SANKA                 = ' '
        SANIN                 = ' '
        SANVS                 = ' '
        RNDKZ                 = ' '
        RVREL                 = ' '
        SCHGT                 = ' '
        STKKZ                 = ' '
<b>        STLAL                 = '01'</b>
        STLAN                 = '1'
        WERKS                 = P_WERKS-LOW
      IMPORTING
        TOPMAT                = XTOPMAT
        DSTST                 = XFELD
      TABLES
        STB                   = XSTPOX
        MATCAT                = XMATCAT
      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
        OTHERS                = 8.