<?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: Recursive function call 'CABM_READ_BOM' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/recursive-function-call-cabm-read-bom/m-p/1864261#M364618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Why dont you try FM: PM_HIERARCHY_CALL_BOM_MARA?&lt;/P&gt;&lt;P&gt;I dont know if this would satisfy your requirement.&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;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jan 2007 22:35:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-16T22:35:15Z</dc:date>
    <item>
      <title>Recursive function call 'CABM_READ_BOM'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/recursive-function-call-cabm-read-bom/m-p/1864260#M364617</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 need to do a recursive call to 'CABM_READ_BOM' using different matnr each time.  Data will be stored in i_exp_bom_head and i_exp_bom_item.  Since this is a recursive call to the same routine and iterations depend on the level of BOM how can I keep track of the internal tables returned by its level?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM READ_BOM using p_matnr.&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         = p_matnr&lt;/P&gt;&lt;P&gt;      i_werks         = i_bom_select-werks&lt;/P&gt;&lt;P&gt;      i_vbeln         = i_bom_select-vbeln&lt;/P&gt;&lt;P&gt;      i_vbpos         = i_bom_select-posnr&lt;/P&gt;&lt;P&gt;      i_stlal         = i_bom_select-stlal&lt;/P&gt;&lt;P&gt;      i_stlan         = i_bom_select-stlan&lt;/P&gt;&lt;P&gt;      i_datuv         = i_bom_select-erdat&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      exp_bom_data    = i_exp_bom_head&lt;/P&gt;&lt;P&gt;      exp_itm_data    = i_exp_bom_item&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;&lt;/P&gt;&lt;P&gt;  LOOP AT i_exp_bom_item WHERE postp = 'N'.&lt;/P&gt;&lt;P&gt;    PERFORM READ_BOM using i_exp_bom_item-idnrk.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 22:29:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/recursive-function-call-cabm-read-bom/m-p/1864260#M364617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T22:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive function call 'CABM_READ_BOM'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/recursive-function-call-cabm-read-bom/m-p/1864261#M364618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Why dont you try FM: PM_HIERARCHY_CALL_BOM_MARA?&lt;/P&gt;&lt;P&gt;I dont know if this would satisfy your requirement.&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;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 22:35:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/recursive-function-call-cabm-read-bom/m-p/1864261#M364618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T22:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive function call 'CABM_READ_BOM'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/recursive-function-call-cabm-read-bom/m-p/1864262#M364619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subramanian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your prompt reply.&lt;/P&gt;&lt;P&gt;I'm trying to create master BOM and sub BOM depending on how many levels it is.&lt;/P&gt;&lt;P&gt;IF i_exp_bom_item-POSTP = 'N' then I call the function module again to create sub BOM.  I will call the function module recursively until  i_exp_bom_item-POSTP &amp;lt;&amp;gt; 'N'.  That will be the lowest level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alex Nguyen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 22:53:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/recursive-function-call-cabm-read-bom/m-p/1864262#M364619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T22:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive function call 'CABM_READ_BOM'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/recursive-function-call-cabm-read-bom/m-p/1864263#M364620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls share the solution for your problem.&lt;/P&gt;&lt;P&gt;I am also facing the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SAtendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 14:56:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/recursive-function-call-cabm-read-bom/m-p/1864263#M364620</guid>
      <dc:creator>former_member1282761</dc:creator>
      <dc:date>2011-05-20T14:56:53Z</dc:date>
    </item>
  </channel>
</rss>

