<?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: Multilevel BOM explosion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/multilevel-bom-explosion/m-p/8194147#M1625545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you make a copy of standard program RCS12001?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Sep 2011 02:49:26 GMT</pubDate>
    <dc:creator>sjeevan</dc:creator>
    <dc:date>2011-09-20T02:49:26Z</dc:date>
    <item>
      <title>Multilevel BOM explosion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multilevel-bom-explosion/m-p/8194141#M1625539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am at present using FM 'CS_BOM_EXPLOSION' but its for single level BOM explosion now requirement is for muti level BOM explosion for this I had used FM 'CS_BOM_EXPL_MAT_V2'.&lt;/P&gt;&lt;P&gt;But I need to display components or items in my report which I am getting in field OBJNR of STBP table returned through FM 'CS_BOM_EXPLOSION'.&lt;/P&gt;&lt;P&gt;The problem is if I am using FM 'CS_BOM_EXPL_MAT_V2' then I am getting component description in field OJTXP but I need object number(OBJNR).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, Is there any way that I can achieve muti-level BOM through FM 'CS_BOM_EXPLOSION' or How should I get OBJNR&lt;/P&gt;&lt;P&gt;by using FM 'CS_BOM_EXPL_MAT_V2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 14:33:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multilevel-bom-explosion/m-p/8194141#M1625539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-19T14:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Multilevel BOM explosion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multilevel-bom-explosion/m-p/8194142#M1625540</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;Did you try to create a custom recursive function to read BOM? You should pass matnr, level, plant and status as actual parameters.. When you reach the deepest level you set status to false and recursevely come back.. This is the best way I think to reach your target... If you want I can pass you some code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope to help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 14:59:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multilevel-bom-explosion/m-p/8194142#M1625540</guid>
      <dc:creator>roberto_vacca2</dc:creator>
      <dc:date>2011-09-19T14:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Multilevel BOM explosion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multilevel-bom-explosion/m-p/8194143#M1625541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the earliest reply, I will appreciate If you Share some code...&lt;/P&gt;&lt;P&gt;&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;Shubh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 15:14:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multilevel-bom-explosion/m-p/8194143#M1625541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-19T15:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Multilevel BOM explosion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multilevel-bom-explosion/m-p/8194144#M1625542</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;I can send you this code but you have to adapt it to your needs...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your form should have this kind of declaration  ... fdeep in first launch is 0 ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
form explode_bom using value(fdeep)
                       value(fmatnr)
                       value(fplant)
                       value(fqtbase)  "optional
                    changing fstatus.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside your form you have to do all kinds of control you need , to bypass for example types of BOM you don't need or kind of materials you don't want...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to keep local_status for local form memory status and&lt;/P&gt;&lt;P&gt;work_status to pass to your sub form call...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

   local_status = ctrue.

  work_status = ctrue.

  w_deep = fdeep + 1.

  perform read_diba tables it_mast   "It will contain data for further exploding
                           using fmatnr
                           changing no_diba   "No diba exception
                                          prs_altern "Alternative BOM if you want to check it
                                         w_tdiba.   "BOM Type


if no_diba eq 'X'.

fstatus = cfalse.
EXIT.
ELSE.


* DO what you want

* Read BOM positions and data
  perform read_bom tables it_mast
                          it_stko
                          it_stpo.


 loop at it_stpo.

      perform explode_bom using w_deep
                                it_stpo-idnrk
                                fplant
                                tmp_qtbase
                       changing work_status.

if work_status eq cfalse.
  local_status = cfalse.
endif.


endloop.

  if local_status eq ctrue.
    fstatus = ctrue.
  else.

    fstatus = cfalse.
  endif.


ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this can help somehow...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 15:25:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multilevel-bom-explosion/m-p/8194144#M1625542</guid>
      <dc:creator>roberto_vacca2</dc:creator>
      <dc:date>2011-09-19T15:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Multilevel BOM explosion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multilevel-bom-explosion/m-p/8194145#M1625543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx This is helpfull for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Still I have one doubt,&lt;/P&gt;&lt;P&gt;As in FM 'CS_BOM_EXPLOSION' there is export parameter VBELN (sales order no.) which i am passing in my FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I want to use FM 'CS_BOM_EXPL_MAT_V2' . In this function module I didn't found any sales order no. field so how should I design Logic according to sales order no. ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 16:00:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multilevel-bom-explosion/m-p/8194145#M1625543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-19T16:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Multilevel BOM explosion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multilevel-bom-explosion/m-p/8194146#M1625544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sales order have materials in positions...you have to study BOMs from material, not from sales order..&lt;/P&gt;&lt;P&gt;CS_BOM_EXPL_MAT_V2 is for material and CS_BOM_EXPLOSION is a general BOM explosion  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to create a list of material of your sale order and study your BOM from this point... for every sale order you explode recoursevely its positions....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 16:27:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multilevel-bom-explosion/m-p/8194146#M1625544</guid>
      <dc:creator>roberto_vacca2</dc:creator>
      <dc:date>2011-09-19T16:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multilevel BOM explosion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multilevel-bom-explosion/m-p/8194147#M1625545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you make a copy of standard program RCS12001?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 02:49:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multilevel-bom-explosion/m-p/8194147#M1625545</guid>
      <dc:creator>sjeevan</dc:creator>
      <dc:date>2011-09-20T02:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Multilevel BOM explosion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multilevel-bom-explosion/m-p/8194148#M1625546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved.&lt;/P&gt;&lt;P&gt;used the FM 'CS_BOM_EXPL_KND_V1' for multi level BOM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 13:18:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multilevel-bom-explosion/m-p/8194148#M1625546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-20T13:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multilevel BOM explosion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multilevel-bom-explosion/m-p/8194149#M1625547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually you can use CS_BOM_EXPLOSION as well for multilevel explosion. just make sure you set Parameter MEHRS = 'X' and BREMS = space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 14:06:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multilevel-bom-explosion/m-p/8194149#M1625547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-20T14:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Multilevel BOM explosion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multilevel-bom-explosion/m-p/8194150#M1625548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@florian: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right FM 'CS_BOM_EXPLOSION' is working as multilevel BOM explosion after setting the fields MEHRS = 'X' and BREMS = ' ' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: shubh_ag on Sep 22, 2011 3:08 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 13:07:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multilevel-bom-explosion/m-p/8194150#M1625548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T13:07:42Z</dc:date>
    </item>
  </channel>
</rss>

