<?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 EXPLODING BOM !! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exploding-bom/m-p/3813492#M917204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I never worked with such a kind of assignment.I have to &lt;/P&gt;&lt;P&gt;explode CS_BOM_EXPLOSION.I got syntax but could not retrieve the data.In this case&lt;/P&gt;&lt;P&gt;assume li_datuv is what user enters ie budat&lt;/P&gt;&lt;P&gt;             li_werks is plantcode&lt;/P&gt;&lt;P&gt;            li_mtnrv is material no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have declared STARTMAT as internal table of type CSTMAT. and further declared i_XXX tables based on corresponding structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wil be definitely rewarded.          &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;li_datuv = i_mseg-budat.&lt;/P&gt;&lt;P&gt;li_mktls = 'X'.&lt;/P&gt;&lt;P&gt;li_mehrs = 'X'.&lt;/P&gt;&lt;P&gt;li_mtnrv = i_mseg-matnr.&lt;/P&gt;&lt;P&gt;li_mmory = '1'.&lt;/P&gt;&lt;P&gt;li_stlal = '001'.&lt;/P&gt;&lt;P&gt;li_werks = s_werks.&lt;/P&gt;&lt;P&gt;li_svwvo = 'X'.&lt;/P&gt;&lt;P&gt;li_vrsvo = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CS_BOM_EXPLOSION'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DATUV = li_datuv&lt;/P&gt;&lt;P&gt;MKTLS = 'X'&lt;/P&gt;&lt;P&gt;MEHRS = 'X'&lt;/P&gt;&lt;P&gt;MMORY = '1'&lt;/P&gt;&lt;P&gt;MTNRV = li_mtnrv&lt;/P&gt;&lt;P&gt;STLAL = '01'&lt;/P&gt;&lt;P&gt;SVWVO = 'X'&lt;/P&gt;&lt;P&gt;VRSVO = 'X'&lt;/P&gt;&lt;P&gt;WERKS = li_WERKS&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;TOPMAT = STARTMAT "includes structure CSTMAT&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;STBD = i_tbd "includes structure CSXDOC&lt;/P&gt;&lt;P&gt;STBE = i_tbe "includes structure CSXEQUI&lt;/P&gt;&lt;P&gt;STBK = i_tbk "includes structure CSXKLA&lt;/P&gt;&lt;P&gt;STBM = i_tbm "includes structure CSXMAT&lt;/P&gt;&lt;P&gt;STBP = i_tbp "includes structure CSXGEN&lt;/P&gt;&lt;P&gt;STBT = i_tbt "includes structure CSXTDL&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;MISSING_AUTHORIZATION = 3&lt;/P&gt;&lt;P&gt;NO_BOM_FOUND = 4&lt;/P&gt;&lt;P&gt;NO_PLANT_DATA = 5&lt;/P&gt;&lt;P&gt;NO_SUITABLE_BOM_FOUND = 6&lt;/P&gt;&lt;P&gt;OBJECT_NOT_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;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 May 2008 08:02:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-21T08:02:40Z</dc:date>
    <item>
      <title>EXPLODING BOM !!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exploding-bom/m-p/3813492#M917204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I never worked with such a kind of assignment.I have to &lt;/P&gt;&lt;P&gt;explode CS_BOM_EXPLOSION.I got syntax but could not retrieve the data.In this case&lt;/P&gt;&lt;P&gt;assume li_datuv is what user enters ie budat&lt;/P&gt;&lt;P&gt;             li_werks is plantcode&lt;/P&gt;&lt;P&gt;            li_mtnrv is material no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have declared STARTMAT as internal table of type CSTMAT. and further declared i_XXX tables based on corresponding structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wil be definitely rewarded.          &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;li_datuv = i_mseg-budat.&lt;/P&gt;&lt;P&gt;li_mktls = 'X'.&lt;/P&gt;&lt;P&gt;li_mehrs = 'X'.&lt;/P&gt;&lt;P&gt;li_mtnrv = i_mseg-matnr.&lt;/P&gt;&lt;P&gt;li_mmory = '1'.&lt;/P&gt;&lt;P&gt;li_stlal = '001'.&lt;/P&gt;&lt;P&gt;li_werks = s_werks.&lt;/P&gt;&lt;P&gt;li_svwvo = 'X'.&lt;/P&gt;&lt;P&gt;li_vrsvo = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CS_BOM_EXPLOSION'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DATUV = li_datuv&lt;/P&gt;&lt;P&gt;MKTLS = 'X'&lt;/P&gt;&lt;P&gt;MEHRS = 'X'&lt;/P&gt;&lt;P&gt;MMORY = '1'&lt;/P&gt;&lt;P&gt;MTNRV = li_mtnrv&lt;/P&gt;&lt;P&gt;STLAL = '01'&lt;/P&gt;&lt;P&gt;SVWVO = 'X'&lt;/P&gt;&lt;P&gt;VRSVO = 'X'&lt;/P&gt;&lt;P&gt;WERKS = li_WERKS&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;TOPMAT = STARTMAT "includes structure CSTMAT&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;STBD = i_tbd "includes structure CSXDOC&lt;/P&gt;&lt;P&gt;STBE = i_tbe "includes structure CSXEQUI&lt;/P&gt;&lt;P&gt;STBK = i_tbk "includes structure CSXKLA&lt;/P&gt;&lt;P&gt;STBM = i_tbm "includes structure CSXMAT&lt;/P&gt;&lt;P&gt;STBP = i_tbp "includes structure CSXGEN&lt;/P&gt;&lt;P&gt;STBT = i_tbt "includes structure CSXTDL&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;MISSING_AUTHORIZATION = 3&lt;/P&gt;&lt;P&gt;NO_BOM_FOUND = 4&lt;/P&gt;&lt;P&gt;NO_PLANT_DATA = 5&lt;/P&gt;&lt;P&gt;NO_SUITABLE_BOM_FOUND = 6&lt;/P&gt;&lt;P&gt;OBJECT_NOT_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;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 08:02:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exploding-bom/m-p/3813492#M917204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T08:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: EXPLODING BOM !!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exploding-bom/m-p/3813493#M917205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check whether u have authorization....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 08:05:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exploding-bom/m-p/3813493#M917205</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-05-21T08:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: EXPLODING BOM !!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exploding-bom/m-p/3813494#M917206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check whether any data is coming thru se37&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 08:06:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exploding-bom/m-p/3813494#M917206</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-05-21T08:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: EXPLODING BOM !!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exploding-bom/m-p/3813495#M917207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try using cs_mat_bom_read&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 08:11:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exploding-bom/m-p/3813495#M917207</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-05-21T08:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: EXPLODING BOM !!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exploding-bom/m-p/3813496#M917208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to give parameters in this module in nse37.&lt;/P&gt;&lt;P&gt;I noticed some finished/smei finished goods.&lt;/P&gt;&lt;P&gt;But which date should i give in datuv ie to pick from where ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 09:19:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exploding-bom/m-p/3813496#M917208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T09:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: EXPLODING BOM !!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exploding-bom/m-p/3813497#M917209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its only for testing ...for ex:give a line item of ur itab and check&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 09:26:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exploding-bom/m-p/3813497#M917209</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-05-21T09:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: EXPLODING BOM !!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exploding-bom/m-p/3813498#M917210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes for the time neing ,i am looking for such case but dont know what material no and date particularly to give&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 09:29:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exploding-bom/m-p/3813498#M917210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T09:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: EXPLODING BOM !!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exploding-bom/m-p/3813499#M917211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
goto tcode cs13 and check for some entries...
check it with se37.


u want to get the child materials when passing FERT ( Upper to lower hierarchy )...
the below code part gets all its child hierarchically for a FERT part in a plant..check whethre its usefull..


  DATA:wk_bom TYPE stpo-menge.
  DATA:it_stpo LIKE STANDARD TABLE OF st_stpo.
  DATA:it_stpo1 LIKE STANDARD TABLE OF st_stpo.

    PERFORM get_stpo_data USING so_matnr so_werks '1'.

    LOOP AT t_stpo[] INTO s_stpo.
      MOVE s_stpo-component TO st_stpo-matnr.
      MOVE s_stpo-comp_qty TO st_stpo-menge.
      APPEND st_stpo TO it_stpo[].
      CLEAR st_stpo.
    ENDLOOP.

  ENDDO.


  LOOP AT it_stpo[] INTO st_stpo.

    REFRESH t_stpo[].

    PERFORM get_stpo_data USING st_stpo-matnr so_werks '1'.

    LOOP AT t_stpo[] INTO s_stpo.
      AT FIRST .
        MOVE st_stpo-menge TO wk_bom.
      ENDAT.
      MOVE s_stpo-component TO st_stpo-matnr.
      st_stpo-menge = s_stpo-comp_qty * wk_bom.
      APPEND st_stpo TO it_stpo[].
      AT LAST.
        CLEAR wk_bom.
      ENDAT.
    ENDLOOP.

  ENDLOOP.

  SORT it_stpo[] ASCENDING.

*Sum up all menge for a part
  LOOP AT it_stpo[] INTO st_stpo.
    COLLECT st_stpo INTO it_stpo1[].
    CLEAR st_stpo.
  ENDLOOP.

  REFRESH it_stpo[].
  it_stpo[] = it_stpo1[].
  FREE it_stpo1[].

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  get_stpo_data
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_SO_MATNR  text
*      --&amp;gt;P_SO_WERKS  text
*      --&amp;gt;P_0469   text
*----------------------------------------------------------------------*
FORM get_stpo_data  USING    p_so_matnr TYPE marc-matnr
                             p_so_werks TYPE marc-werks
                             value(p_0469) TYPE any.

  CALL FUNCTION 'CSAP_MAT_BOM_READ'
    EXPORTING
      material  = p_so_matnr
      plant     = p_so_werks
      bom_usage = p_0469
    TABLES
      t_stpo    = t_stpo
    EXCEPTIONS
      error     = 1
      OTHERS    = 2.

ENDFORM.                    " get_stpo_data

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 09:39:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exploding-bom/m-p/3813499#M917211</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-05-21T09:39:55Z</dc:date>
    </item>
  </channel>
</rss>

