<?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 Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/recursive-function-module/m-p/3539708#M851636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use do...while loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare a flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data flag type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do &lt;/P&gt;&lt;P&gt;if sy-index eq 10.&lt;/P&gt;&lt;P&gt;  flag = 'X'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function &lt;/P&gt;&lt;P&gt;Export&lt;/P&gt;&lt;P&gt;tab = B&lt;/P&gt;&lt;P&gt;IMPORT&lt;/P&gt;&lt;P&gt;tab = B.&lt;/P&gt;&lt;P&gt;while flag &amp;lt;&amp;gt; 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will call the same function 10 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Hemant on Apr 16, 2008 6:21 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Apr 2008 12:50:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-16T12:50:16Z</dc:date>
    <item>
      <title>Recursive Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/recursive-function-module/m-p/3539705#M851633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables A and B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A has two value 10&lt;/P&gt;&lt;P&gt;                        20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B is empty here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{Loop at A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call Fuction ' Find_Value'&lt;/P&gt;&lt;P&gt;Export&lt;/P&gt;&lt;P&gt;        em_a      =  A&lt;/P&gt;&lt;P&gt; Import&lt;/P&gt;&lt;P&gt;       im_b        =  B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endloop.}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here b has 3 records &lt;/P&gt;&lt;P&gt;                                75&lt;/P&gt;&lt;P&gt;                                25&lt;/P&gt;&lt;P&gt;                                39&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case-2: I want to call same function module.&lt;/P&gt;&lt;P&gt;I want pass B value here till following condition satisfy. Let Say 10times. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="green" __jive_macro_name="color"&gt;&lt;/SPAN&gt; Problem is I dont want to call same function module again and again. &lt;SPAN __default_attr="green" __jive_macro_name="color"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{loop at B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call Fuction ' Find_Value'&lt;/P&gt;&lt;P&gt;Export&lt;/P&gt;&lt;P&gt;        em_a      =  B&lt;/P&gt;&lt;P&gt; Import&lt;/P&gt;&lt;P&gt;       im_b        =  B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table B,Field A  = Table A Field C.&lt;/P&gt;&lt;P&gt;    if B-A = A-C&lt;/P&gt;&lt;P&gt;         Exit.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endloop. }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest how to call above Fuction Module recursively for all value...in B. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clarification appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anee.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 11:50:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/recursive-function-module/m-p/3539705#M851633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T11:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/recursive-function-module/m-p/3539706#M851634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use a local variable to assign the value of B. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and after calling the FM, update B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;keep calling the FM in a loop until and unless until the value of prev B = the local variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 12:21:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/recursive-function-module/m-p/3539706#M851634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T12:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/recursive-function-module/m-p/3539707#M851635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for  your quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if B has 3 values, again each record giving me multiple import value. I have to again pass the same function module to find their subtransaction values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when condition not satisfied , then quit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me example if any u have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 12:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/recursive-function-module/m-p/3539707#M851635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T12:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/recursive-function-module/m-p/3539708#M851636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use do...while loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare a flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data flag type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do &lt;/P&gt;&lt;P&gt;if sy-index eq 10.&lt;/P&gt;&lt;P&gt;  flag = 'X'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function &lt;/P&gt;&lt;P&gt;Export&lt;/P&gt;&lt;P&gt;tab = B&lt;/P&gt;&lt;P&gt;IMPORT&lt;/P&gt;&lt;P&gt;tab = B.&lt;/P&gt;&lt;P&gt;while flag &amp;lt;&amp;gt; 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will call the same function 10 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Hemant on Apr 16, 2008 6:21 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 12:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/recursive-function-module/m-p/3539708#M851636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T12:50:16Z</dc:date>
    </item>
  </channel>
</rss>

