<?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 Material BOM explosion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-bom-explosion/m-p/6598501#M1436987</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement where I need to determine all the components ( even multilevel) of a BOM.&lt;/P&gt;&lt;P&gt;I am using FM "CS_BOM_EXPLOSION" with flag 'MEHRS' as X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my case , one BOM can have multiple "Alternative BOm's" also and I need to get the information about all of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me understand , how do I retrieve the entire information??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Feb 2010 05:32:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-11T05:32:05Z</dc:date>
    <item>
      <title>Material BOM explosion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-bom-explosion/m-p/6598501#M1436987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement where I need to determine all the components ( even multilevel) of a BOM.&lt;/P&gt;&lt;P&gt;I am using FM "CS_BOM_EXPLOSION" with flag 'MEHRS' as X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my case , one BOM can have multiple "Alternative BOm's" also and I need to get the information about all of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me understand , how do I retrieve the entire information??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 05:32:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-bom-explosion/m-p/6598501#M1436987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T05:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Material BOM explosion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-bom-explosion/m-p/6598502#M1436988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use this FM u will get all the levels of BOM&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            capid                 = 'PP01'&lt;/P&gt;&lt;P&gt;            datuv                 = sy-datum&lt;/P&gt;&lt;P&gt;            ehndl                 = '1'&lt;/P&gt;&lt;P&gt;            mktls                 = 'X'&lt;/P&gt;&lt;P&gt;            mehrs                 = 'X'&lt;/P&gt;&lt;P&gt;            mtnrv                 = lv_matnr1&lt;/P&gt;&lt;P&gt;            stlal                 = lv_stlal1&lt;/P&gt;&lt;P&gt;            stlan                 = lv_stlan1&lt;/P&gt;&lt;P&gt;            svwvo                 = 'X'&lt;/P&gt;&lt;P&gt;            werks                 = lv_werks1&lt;/P&gt;&lt;P&gt;            vrsvo                 = 'X'&lt;/P&gt;&lt;P&gt;          TABLES&lt;/P&gt;&lt;P&gt;            stb                   = it_stpo5&lt;/P&gt;&lt;P&gt;          EXCEPTIONS&lt;/P&gt;&lt;P&gt;            alt_not_found         = 1&lt;/P&gt;&lt;P&gt;            call_invalid          = 2&lt;/P&gt;&lt;P&gt;            material_not_found    = 3&lt;/P&gt;&lt;P&gt;            missing_authorization = 4&lt;/P&gt;&lt;P&gt;            no_bom_found          = 5&lt;/P&gt;&lt;P&gt;            no_plant_data         = 6&lt;/P&gt;&lt;P&gt;            no_suitable_bom_found = 7&lt;/P&gt;&lt;P&gt;            conversion_error      = 8&lt;/P&gt;&lt;P&gt;            OTHERS                = 9.&lt;/P&gt;&lt;P&gt;        IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 05:36:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-bom-explosion/m-p/6598502#M1436988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T05:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Material BOM explosion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-bom-explosion/m-p/6598503#M1436989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use FM 'CS_BOM_EXPL_MAT_V2' as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select * from stpo into table lt_stpo&lt;/P&gt;&lt;P&gt;       where POSTP = 'K'  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at lt_stpo.&lt;/P&gt;&lt;P&gt;   select * from plmz into table lt_plmz where&lt;/P&gt;&lt;P&gt;             stlnr = lt_stpo-stlnr and&lt;/P&gt;&lt;P&gt;             stlty = lt_stpo-stlty and&lt;/P&gt;&lt;P&gt;             stlkn = lt_stpo-stvkn and&lt;/P&gt;&lt;P&gt;             kante = '000000'.&lt;/P&gt;&lt;P&gt;   if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;     append lines of lt_plmz to lt_plmz_modify.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   describe table lt_plmz lines entries.&lt;/P&gt;&lt;P&gt;   counter = counter + entries.&lt;/P&gt;&lt;P&gt;   clear entries.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at lt_plmz_modify.&lt;/P&gt;&lt;P&gt;   select single * from mast into lt_mast where&lt;/P&gt;&lt;P&gt;                 stlnr = lt_plmz_modify-stlnr_w and&lt;/P&gt;&lt;P&gt;                 stlan = usage and&lt;/P&gt;&lt;P&gt;                 stlal = lt_plmz_modify-stlal_w .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;write : 'No BOM found with usg',usage,' for BOM',lt_plmz_modify-stlnr_w.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     FTREL                       = 'X'&lt;/P&gt;&lt;P&gt;     CAPID                       = 'PP01'&lt;/P&gt;&lt;P&gt;     DATUV                       = lt_plmz_modify-datuv&lt;/P&gt;&lt;P&gt;     MDMPS                       = 'X'&lt;/P&gt;&lt;P&gt;     MEHRS                       = 'X'&lt;/P&gt;&lt;P&gt;     MTNRV                       = lt_mast-matnr&lt;/P&gt;&lt;P&gt;     STLAL                       = lt_plmz_modify-stlal_w&lt;/P&gt;&lt;P&gt;     stlan                       = usage&lt;/P&gt;&lt;P&gt;     WERKS                       = lt_mast-werks&lt;/P&gt;&lt;P&gt;     MDNOT                       = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      TOPMAT                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      DSTST                       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      STB                         = lt_stb&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      MATCAT                      =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     ALT_NOT_FOUND               = 1&lt;/P&gt;&lt;P&gt;     CALL_INVALID                = 2&lt;/P&gt;&lt;P&gt;     MATERIAL_NOT_FOUND          = 3&lt;/P&gt;&lt;P&gt;     MISSING_AUTHORIZATION       = 4&lt;/P&gt;&lt;P&gt;     NO_BOM_FOUND                = 5&lt;/P&gt;&lt;P&gt;     NO_PLANT_DATA               = 6&lt;/P&gt;&lt;P&gt;     NO_SUITABLE_BOM_FOUND       = 7&lt;/P&gt;&lt;P&gt;     CONVERSION_ERROR            = 8&lt;/P&gt;&lt;P&gt;     OTHERS                      = 9&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    Write: ' Error in BOM Explosion for material ', lt_mast-matnr.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 06:43:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-bom-explosion/m-p/6598503#M1436989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T06:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Material BOM explosion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-bom-explosion/m-p/6598504#M1436990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I even want the details of Alternative BOM's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For e.g. if I have a BOM with 4 Alternative BOM's , I need to explode all of them.&lt;/P&gt;&lt;P&gt;If this possible using above FM's, I am able to explode only one Alternative BOM as specified in STLAL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 07:08:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-bom-explosion/m-p/6598504#M1436990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T07:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Material BOM explosion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-bom-explosion/m-p/6598505#M1436991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Donot post duplicate threads.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pl check link:[http://wiki.sdn.sap.com/wiki/display/Snippets/Inverse&lt;EM&gt;or&lt;/EM&gt;Reverse&lt;EM&gt;Bom&lt;/EM&gt;with&lt;EM&gt;Qty&lt;/EM&gt;Required]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 08:41:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-bom-explosion/m-p/6598505#M1436991</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-02-11T08:41:49Z</dc:date>
    </item>
  </channel>
</rss>

