<?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: How to identify a phantom component and a material is assembly ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-a-phantom-component-and-a-material-is-assembly/m-p/3877135#M931937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can handle ABAP, please use FM 'CS_BOM_EXPL_MAT_V2' to explode your Bom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write something like this :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

*     Tables  "call CS_BOM_EXPL_MAT_V2 "
DATA: BEGIN OF stb OCCURS 0.
        INCLUDE STRUCTURE stpox.
DATA: END OF stb.
...

  CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
    EXPORTING
      auskz                 = ' '
      capid                 = 'PP01'
      datuv                 = sy-datum
      emeng                 = '1.000'
      stlan                 = '1'
      stlal                 = mast-stlal
      mtnrv                 = matnr
      mehrs                 = 'X'
      mmory                 = '1'
      stpst                 = '0'
      werks                 = werks
    IMPORTING
      topmat                = selpool
      dstst                 = dstst_flg
    TABLES
      stb                   = stb
      matcat                = matcat
    EXCEPTIONS
      material_not_found    = 4
      no_plant_data         = 8
      no_bom_found          = 12
      no_suitable_bom_found = 16.

  SORT stb BY idnrk.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field which will indicate you wether your component is either an Assembly or a Phantom is stb-dumps ( EQ space , for assembly ).&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>Thu, 05 Jun 2008 15:03:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-05T15:03:48Z</dc:date>
    <item>
      <title>How to identify a phantom component and a material is assembly ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-a-phantom-component-and-a-material-is-assembly/m-p/3877133#M931935</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 working on BOM. If You see the transaction cs03 (go with any bom  ) inside we can see the componenets......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These componenet having the check boxes for &lt;STRONG&gt;Assembly&lt;/STRONG&gt; and &lt;STRONG&gt;Phantom&lt;/STRONG&gt; componenet. If the check box is cheked we will consider as that component is Assembly Or Phantom....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how to identy this at table level..i don't see any field related to these check boxess in SRPO , STKO and MAST. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do need full.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raja.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 12:51:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-a-phantom-component-and-a-material-is-assembly/m-p/3877133#M931935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T12:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify a phantom component and a material is assembly ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-a-phantom-component-and-a-material-is-assembly/m-p/3877134#M931936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Field STLKZ is the assembly indicator but I can't remember which table this is held on if at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could always loop through the components of your BoM and see if they have their own children - if they do then they are an assembly.  I can't remember right now how to identify a phantom assembly sorry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 12:59:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-a-phantom-component-and-a-material-is-assembly/m-p/3877134#M931936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T12:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify a phantom component and a material is assembly ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-a-phantom-component-and-a-material-is-assembly/m-p/3877135#M931937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can handle ABAP, please use FM 'CS_BOM_EXPL_MAT_V2' to explode your Bom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write something like this :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

*     Tables  "call CS_BOM_EXPL_MAT_V2 "
DATA: BEGIN OF stb OCCURS 0.
        INCLUDE STRUCTURE stpox.
DATA: END OF stb.
...

  CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
    EXPORTING
      auskz                 = ' '
      capid                 = 'PP01'
      datuv                 = sy-datum
      emeng                 = '1.000'
      stlan                 = '1'
      stlal                 = mast-stlal
      mtnrv                 = matnr
      mehrs                 = 'X'
      mmory                 = '1'
      stpst                 = '0'
      werks                 = werks
    IMPORTING
      topmat                = selpool
      dstst                 = dstst_flg
    TABLES
      stb                   = stb
      matcat                = matcat
    EXCEPTIONS
      material_not_found    = 4
      no_plant_data         = 8
      no_bom_found          = 12
      no_suitable_bom_found = 16.

  SORT stb BY idnrk.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field which will indicate you wether your component is either an Assembly or a Phantom is stb-dumps ( EQ space , for assembly ).&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>Thu, 05 Jun 2008 15:03:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-identify-a-phantom-component-and-a-material-is-assembly/m-p/3877135#M931937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T15:03:48Z</dc:date>
    </item>
  </channel>
</rss>

