<?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 Components in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bom-components/m-p/908688#M56610</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know you have marked this problem as solved, but in the case where you have multiple level BOMS, just selecting using the tables mast/istpo is not going to get the full list (not unless you recurse the selects).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend going straight for the function: CS_BOM_EXPL_MAT_V2 (think spelling is correct).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you'll get full explosion (for the specified plant also!).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jun 2005 21:37:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-06-09T21:37:05Z</dc:date>
    <item>
      <title>BOM Components</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bom-components/m-p/908686#M56608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;  How can i determine that a material number is a BOM and if that is the case then how can i find the components of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2005 19:24:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bom-components/m-p/908686#M56608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-09T19:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: BOM Components</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bom-components/m-p/908687#M56609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First hit against the MAST table with the material number.  Then hit against STPO with the internal BOM number to get the components.  There are also some function modules that will do this to.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: xmast type mast.
data: istpo type table of stpo with header line.


Select Single * from mast
              where matnr = p_matnr.
If sy-subrc = 0.
Write:/ 'This material has a BOM'.
else.
Write:/ 'No BOM found'.
Endif.


write:/ 'Components'.
select * into corresponding fields of table istpo
        from stpo
             where stlnr = xmast-stlnr.
loop at istpo.
write:/ istpo-idnrk.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2005 19:36:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bom-components/m-p/908687#M56609</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-06-09T19:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: BOM Components</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bom-components/m-p/908688#M56610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know you have marked this problem as solved, but in the case where you have multiple level BOMS, just selecting using the tables mast/istpo is not going to get the full list (not unless you recurse the selects).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend going straight for the function: CS_BOM_EXPL_MAT_V2 (think spelling is correct).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you'll get full explosion (for the specified plant also!).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2005 21:37:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bom-components/m-p/908688#M56610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-09T21:37:05Z</dc:date>
    </item>
  </channel>
</rss>

