<?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: Funtion Module inside a loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-inside-a-loop/m-p/2147469#M453134</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;If the fm is complex then it takes time or u can use it.&lt;/P&gt;&lt;P&gt;My suggestion is if u feel the same problem then go to the source code of the function module and pick the codes of line where it is getting populated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Apr 2007 13:15:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-18T13:15:55Z</dc:date>
    <item>
      <title>Funtion Module inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-inside-a-loop/m-p/2147467#M453132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have my data in internal i need to add the days to the date field depending on the term of payment. I used the function module 'DATE_IN_FUTURE' it is working fine, but I used this FM when I am moving my data from other internal table to the final internal table.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I doubt it is not good method to use FM inside a loop, Can any one pls give ur comments on this. Is there any other process to do it pls let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 12:55:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-inside-a-loop/m-p/2147467#M453132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T12:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion Module inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-inside-a-loop/m-p/2147468#M453133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the arguement of using the function module within a loop?  It depends on what the function module is doing.  If it is doing some complex stuff and takes a lot of time, then doing within a loop is not optimal, but may be necessary depending on the requiement.  For this function module, I don't see a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich HEilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 13:00:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-inside-a-loop/m-p/2147468#M453133</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-18T13:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion Module inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-inside-a-loop/m-p/2147469#M453134</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;If the fm is complex then it takes time or u can use it.&lt;/P&gt;&lt;P&gt;My suggestion is if u feel the same problem then go to the source code of the function module and pick the codes of line where it is getting populated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 13:15:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-inside-a-loop/m-p/2147469#M453134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T13:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion Module inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-inside-a-loop/m-p/2147470#M453135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Line Turbin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FMs are also brought from ABAP Memory not even from SAP memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So There will not be much performance difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can use it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Rama.Pammi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 13:32:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-inside-a-loop/m-p/2147470#M453135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T13:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion Module inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-inside-a-loop/m-p/2147471#M453136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;Infact if your requirement is to add days into a date to get the future date .. then the FM is not required actually ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have understood you correctly... you have a date say date_old and you want to know the date after 5 days (just an example)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So a simple statement date_new = date_old + 5 will give you the new date.&lt;/P&gt;&lt;P&gt;So you can actually avoid the call to FM. &lt;/P&gt;&lt;P&gt;Subtraction also works just like addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All you need to take care is that the date has to be of type sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have fun..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if this solves your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 13:35:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-inside-a-loop/m-p/2147471#M453136</guid>
      <dc:creator>former_member69765</dc:creator>
      <dc:date>2007-04-18T13:35:02Z</dc:date>
    </item>
  </channel>
</rss>

