Skip to Content
-1

Exception occurred No_Plant_Data in cs_bom_expl_mat_v2

Hi,

i am created one zprogram in that i am using this CS_BOM_EXPL_MAT_V2 by using this function material and Plant am getting this error {material not maintain in plant}.

Please help me to solve this problem.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 25, 2017 at 04:38 AM

    Have you checked your table if the plant is available for the corresponding material...

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Praveen Kumar Bommireddy

      CS_BOM_EXPLOSION...in this fm what parameters r u passing..how come the WERKS is changing?

      CALL FUNCTION 'CS_BOM_EXPLOSION'
      EXPORTING
      AUMNG = 0
      CAPID = ' '
      DATUV = DATVAL "valid-from date
      EHNDL = '1'
      MKTLS = 'X'
      MEHRS = 'X'
      MMORY = '1'
      MTNRV = MATNR
      STLAL = LAL "like mast-stlal default '1'
      STLAN = LAN "like mast-stlan default '2'
      SVWVO = 'X'
      VRSVO = 'X'
      WERKS = WERKS
      mmaps = 'X'
      IMPORTING
      TOPMAT = STARTMAT "includes structure CSTMAT
      TABLES
      STBD = TBD "includes structure CSXDOC
      STBE = TBE "includes structure CSXEQUI
      STBK = TBK "includes structure CSXKLA
      STBM = TBM "includes structure CSXMAT
      STBP = TBP "includes structure CSXGEN
      STBT = TBT "includes structure CSXTDL
      EXCEPTIONS
      ALT_NOT_FOUND = 1
      CALL_INVALID = 2
      MISSING_AUTHORIZATION = 3
      NO_BOM_FOUND = 4
      NO_PLANT_DATA = 5
      NO_SUITABLE_BOM_FOUND = 6
      OBJECT_NOT_FOUND = 7
      CONVERSION_ERROR = 8
      OTHERS = 9.

      according to the type of BOM (material master, equipment etc ...) one of
      the appropriate tables STBD ... STBT is filled with the details of all
      positions of the given BOM number (MATNR). STARTMAT contains the details
      about the start material after the function call. Hope this helps.