<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: BOM Errror NO_BOM_FOUND in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bom-errror-no-bom-found/m-p/3059985#M724821</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check Exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add the following code at the end of the FM :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    EXCEPTIONS
      material_not_found    = 4
      no_plant_data         = 8
      no_bom_found          = 12
      no_suitable_bom_found = 16.

if sy-subrc eq 12.
break-point.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then check !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Nov 2007 14:23:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-28T14:23:45Z</dc:date>
    <item>
      <title>BOM Errror NO_BOM_FOUND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bom-errror-no-bom-found/m-p/3059984#M724820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;i am using the below code to explode the BOM i am getting more than 30000 material in i_mast, but at some point it is throwing Errror NO_BOM_FOUND.&lt;/P&gt;&lt;P&gt;now  it is difficult to find the particular material for which it is showing error, how can i check it initially before passing the materials to the FM. so that noe Error will be shown&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  f_explore_bom
*&amp;amp;---------------------------------------------------------------------*
FORM f_explore_bom.
  RANGES s_stlnr  FOR  stko-stlnr.
**
  CHECK i_marc[] IS NOT INITIAL.
**
  SELECT matnr werks stlnr INTO TABLE i_mast
    FROM mast FOR ALL ENTRIES IN i_marc
    WHERE matnr = i_marc-matnr AND
          werks = i_marc-werks.
**
  DELETE i_mast WHERE stlnr IS INITIAL.
**
  CHECK i_mast[] IS NOT INITIAL.
**
  SELECT stlnr lkenz INTO TABLE i_stko
    FROM stko FOR ALL ENTRIES IN i_mast
    WHERE stlty = 'M' AND stlnr = i_mast-stlnr.
**
  s_stlnr-sign = 'I'. s_stlnr-option = 'EQ'.
  LOOP AT i_stko WHERE lkenz = 'X'.
    s_stlnr-low = i_stko-stlnr. COLLECT s_stlnr.
  ENDLOOP.
**
  DELETE i_mast WHERE stlnr IN s_stlnr.
**
  LOOP AT i_mast.
    CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
      EXPORTING
        capid = 'ENGR'
        datuv = sy-datum
        mtnrv = i_mast-matnr
        werks = i_mast-werks
      TABLES
        stb   = i_stb.
*
    LOOP AT i_stb.
      i_comp-werks      = i_mast-werks.
      i_comp-matnr      = i_mast-matnr.
      i_comp-comp       = i_stb-idnrk.
      i_comp-comp_qty   = i_stb-menge.
      i_comp-comp_posnr = i_stb-posnr.
      i_comp-comp_werks = i_stb-werks.
*
      i_matnr-matnr  = i_stb-idnrk.
      i_objek-objek  = i_stb-idnrk.
*
      COLLECT : i_matnr, i_objek.
*
      APPEND i_comp.  CLEAR : i_matnr, i_objek, i_comp.
*
    ENDLOOP.
    REFRESH i_stb.    CLEAR : i_stb, i_mast.
  ENDLOOP.
ENDFORM.                    " f_explore_bom&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 14:18:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bom-errror-no-bom-found/m-p/3059984#M724820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-28T14:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: BOM Errror NO_BOM_FOUND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bom-errror-no-bom-found/m-p/3059985#M724821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check Exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add the following code at the end of the FM :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    EXCEPTIONS
      material_not_found    = 4
      no_plant_data         = 8
      no_bom_found          = 12
      no_suitable_bom_found = 16.

if sy-subrc eq 12.
break-point.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then check !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 14:23:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bom-errror-no-bom-found/m-p/3059985#M724821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-28T14:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: BOM Errror NO_BOM_FOUND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bom-errror-no-bom-found/m-p/3059986#M724822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved at own.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 08:53:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bom-errror-no-bom-found/m-p/3059986#M724822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T08:53:13Z</dc:date>
    </item>
  </channel>
</rss>

