<?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: Can we call a Function Module with in a loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-call-a-function-module-with-in-a-loop/m-p/1669446#M296024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Mamatha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  You can call .. but it is better to avoid calling it within a loop...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Loop at it_tab.

   call function 'CONVERSION_EXIT_ALPHA_INPUT'
    exporting
      input  = it_tab-vbeln.
    importing
      output = it_tab-vbeln.

endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Santosh Kumar Patha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Nov 2006 07:32:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-23T07:32:54Z</dc:date>
    <item>
      <title>Can we call a Function Module with in a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-call-a-function-module-with-in-a-loop/m-p/1669442#M296020</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;Can we call a Function Module within a loop . Does it reduces the performance.&lt;/P&gt;&lt;P&gt;Can you please guide regarding this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Best Regards&lt;/P&gt;&lt;P&gt;Mamatha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 07:26:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-call-a-function-module-with-in-a-loop/m-p/1669442#M296020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T07:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can we call a Function Module with in a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-call-a-function-module-with-in-a-loop/m-p/1669443#M296021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes we can call. But it depends on the requirement.Performance is not a major compared to the requirement needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_tab into wa_tab.&lt;/P&gt;&lt;P&gt;call function 'CONVERSION_EXIT_PDATE_OUTPUT'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    INPUT        = wa_tab-date&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   OUTPUT        = wa_tab-date.&lt;/P&gt;&lt;P&gt;modify table it_tab from wa_tab transporting date.&lt;/P&gt;&lt;P&gt;clear wa_tab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 07:27:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-call-a-function-module-with-in-a-loop/m-p/1669443#M296021</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2006-11-23T07:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can we call a Function Module with in a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-call-a-function-module-with-in-a-loop/m-p/1669444#M296022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you can avoid it that's good, &lt;/P&gt;&lt;P&gt;but it doesn't affect the performance very badly as it creates it's own LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghavendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 07:29:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-call-a-function-module-with-in-a-loop/m-p/1669444#M296022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T07:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can we call a Function Module with in a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-call-a-function-module-with-in-a-loop/m-p/1669445#M296023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can call the fuction module in the loop.&lt;/P&gt;&lt;P&gt;it depends totally what fuction module you are calling, if it is making lot ot iteration then performance may decrease,&lt;/P&gt;&lt;P&gt;so its totally depends upon the condtion where you are calling&lt;/P&gt;&lt;P&gt;but in most of the cases its not good to do so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 07:29:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-call-a-function-module-with-in-a-loop/m-p/1669445#M296023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T07:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can we call a Function Module with in a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-call-a-function-module-with-in-a-loop/m-p/1669446#M296024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Mamatha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  You can call .. but it is better to avoid calling it within a loop...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Loop at it_tab.

   call function 'CONVERSION_EXIT_ALPHA_INPUT'
    exporting
      input  = it_tab-vbeln.
    importing
      output = it_tab-vbeln.

endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Santosh Kumar Patha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 07:32:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-call-a-function-module-with-in-a-loop/m-p/1669446#M296024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T07:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can we call a Function Module with in a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-call-a-function-module-with-in-a-loop/m-p/1669447#M296025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can call the function module in loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 07:37:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-call-a-function-module-with-in-a-loop/m-p/1669447#M296025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T07:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can we call a Function Module with in a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-call-a-function-module-with-in-a-loop/m-p/1669448#M296026</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 have the input to a function module in an internal table and i need read record by record. For Each record we have to fetch the Net Due Date by calling a FM.&lt;/P&gt;&lt;P&gt;How can i avoid calling a Function Module with a loop. Any alternatives available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Best Regards&lt;/P&gt;&lt;P&gt;Mamatha.B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 07:38:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-call-a-function-module-with-in-a-loop/m-p/1669448#M296026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T07:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can we call a Function Module with in a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-call-a-function-module-with-in-a-loop/m-p/1669449#M296027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes u can call the FM its not a big performance issue. unless and untill it triggers the &amp;lt;b&amp;gt;MODIFICATIONS&amp;lt;/b&amp;gt; on standard SAP tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Gopi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Gopi Narendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 07:45:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-call-a-function-module-with-in-a-loop/m-p/1669449#M296027</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2006-11-23T07:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can we call a Function Module with in a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-call-a-function-module-with-in-a-loop/m-p/1669450#M296028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mamatha.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can edit the function module, you can pass the internal table or the column of the table (import) to the function module and return the due date column (as a table of due date) (export).&lt;/P&gt;&lt;P&gt;Loop on the imported table and write your due date calculation code in that loop filling the export table at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kaushal N. Shah.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 07:51:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-call-a-function-module-with-in-a-loop/m-p/1669450#M296028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T07:51:02Z</dc:date>
    </item>
  </channel>
</rss>

