Thursday, March 16, 2017

Bill Of Materials BOM

To produce a product with different variants, you can create super Bill of Materials 
that has a list of components to manufacture different variants of a product

Own notes
One Material is made up different components at different levels which are materials them selves.
Like, A material called APPLE is has BOM which has components like seeds, skin, pulp which are also materials.
There can be different levels of BOM.
        Main Material
       /       |       \
      /        |        \
 L1M1   L1M2   L1M3
                        /    |  
                              /        |
                         L2M1   L2M2



Tables
MAST - Material to BOM Link
STPO   - BOM item


Function Module
BOM Explosion : CS_BOM_EXPL_MAT_V2

CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
        EXPORTING
          CAPID                 = 'SD01' "Sales
          DATUV                 = SY-DATUM "System Date
          MEHRS                 = 'X' " MultiLevels
          MTNRV                 = <Material>
          STLAL                 = <Alternative BOM>
          STLAN                 = <BOM Usage>
          WERKS                 = <Planst>
        TABLES
          STB                   = <output table>
        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.

No comments:

Post a Comment