<?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 Function Module for Displaying BOM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-displaying-bom/m-p/932922#M61272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Can anyone of you specify a function module that&lt;/P&gt;&lt;P&gt;displays the "Bill of Materials (BOMs)" relavant to a&lt;/P&gt;&lt;P&gt;Top Level Material&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Usha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jul 2005 06:31:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-07-06T06:31:35Z</dc:date>
    <item>
      <title>Function Module for Displaying BOM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-displaying-bom/m-p/932922#M61272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Can anyone of you specify a function module that&lt;/P&gt;&lt;P&gt;displays the "Bill of Materials (BOMs)" relavant to a&lt;/P&gt;&lt;P&gt;Top Level Material&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Usha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2005 06:31:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-displaying-bom/m-p/932922#M61272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-06T06:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for Displaying BOM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-displaying-bom/m-p/932923#M61273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try this :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
    EXPORTING
      auskz                 = ' '
      capid                 = 'PP01'
      datuv                 = sy-datum
      emeng                 = '1.000'
      stlan                 = '1'
      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.&lt;/CODE&gt;&lt;/PRE&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>Wed, 06 Jul 2005 06:42:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-displaying-bom/m-p/932923#M61273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-06T06:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for Displaying BOM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-displaying-bom/m-p/932924#M61274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erwan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Thanks for the reply.&lt;/P&gt;&lt;P&gt;   Could you please explain the implications of the&lt;/P&gt;&lt;P&gt;   exporting (namely- capid, emeng, datuv) &amp;amp; importing parameters you have specified in your&lt;/P&gt;&lt;P&gt;   function module? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Usha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2005 06:56:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-displaying-bom/m-p/932924#M61274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-06T06:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for Displaying BOM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-displaying-bom/m-p/932925#M61275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Capid is an id which indicate the domain area :&lt;/P&gt;&lt;P&gt;BEST Inventory management  &lt;/P&gt;&lt;P&gt;PC01 Costing               &lt;/P&gt;&lt;P&gt;PP01 Production - general  &lt;/P&gt;&lt;P&gt;SD01 Sales and distribution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;emeng = 1 as it's the quantity of the "finish product".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Datuv : with this parameter set to sy-datum, it 'll retrieve the valid BOM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stlan : 1,2 or 3 as it's a productio bom or sales bom, ...etc ( like in cs03 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it 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>Wed, 06 Jul 2005 07:19:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-displaying-bom/m-p/932925#M61275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-06T07:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for Displaying BOM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-displaying-bom/m-p/932926#M61276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Usha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use function module - CSAP_MAT_BOM_READ.&lt;/P&gt;&lt;P&gt;Import parameters are -&lt;/P&gt;&lt;P&gt;Material Number&lt;/P&gt;&lt;P&gt;Plant&lt;/P&gt;&lt;P&gt;Bom Usage&lt;/P&gt;&lt;P&gt;Valid From&lt;/P&gt;&lt;P&gt;Valid to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function module will return all related BOMs in T_STKO / T_STPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give a try. If you need more help, please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Warm Regards.&lt;/P&gt;&lt;P&gt;Pras Durafe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2005 07:49:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-displaying-bom/m-p/932926#M61276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-08T07:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for Displaying BOM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-displaying-bom/m-p/932927#M61277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the easiest function module is:-&lt;/P&gt;&lt;P&gt;the only input required is matnr and plant ..... hard-core the values of STLAL and STLAN as follows:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CABM_READ_BOM'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        I_MATNR         = MATNR&lt;/P&gt;&lt;P&gt;        I_WERKS         = WERK&lt;/P&gt;&lt;P&gt;        I_STLAL         = '01'&lt;/P&gt;&lt;P&gt;        I_STLAN         = '1'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        EXP_BOM_DATA    = IT_CAL&lt;/P&gt;&lt;P&gt;        EXP_ITM_DATA    = IT_ITM&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        NO_RECORD_FOUND = 1&lt;/P&gt;&lt;P&gt;        OTHERS          = 2.&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;P&gt;*********************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You shall get the BOM in table itm...... and the matnr as IDNRK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2005 10:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-displaying-bom/m-p/932927#M61277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-08T10:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for Displaying BOM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-displaying-bom/m-p/932928#M61278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erwan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to search a Function for the multilevel BOM for a material and I could just find it for single level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function you specified works perfectly fine showing &lt;/P&gt;&lt;P&gt;all items in one structure and the higher level items in another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Mp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mp on Jun 30, 2008 3:54 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2005 20:26:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-displaying-bom/m-p/932928#M61278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-20T20:26:12Z</dc:date>
    </item>
  </channel>
</rss>

