WORKING WITH BOM EXPLOSION FUNCTION MODULE(CS_BOM_EXPL_MAT_V2)

Here You will get the BOM(Bill of Material) details using Function Module.
Function Module Name : CS_BOM_EXPL_MAT_V2

Example:

CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
      EXPORTING
        AUSKZ                 'X'
        CAPID                 'PP01'
        DATUV                 =  SY-DATUM    "DATE
        EHNDL                 '1'
        EMENG                 = IM_YIELD     "Pass Quantity
        MKTLS                 'X'
        MMORY                 '1'
        MTNRV                 IM_MATERIAL  "Pass Material
        STPST                 0
        SVWVO                 'X'
        WERKS                 = IM_PLANT     "Pass Plant
        VRSVO                 'X'
      TABLES
        STB                   EX_STB
        MATCAT                EX_MATCAT
      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


You will get the BOM Details in EX_MATCAT.

Popular posts from this blog

Working with batch Classification Change Function Module

ABAP CODE FOR FIBONACCI SERIES