<?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 Using Function Module in a Loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-in-a-loop/m-p/7400442#M1546809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a program with a function module "TB_DATAFEED_MODIFY_OICQP"for updating table OICQP for price data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module can be used for mass update but user requirement is in such a way that the error records which are not updated needs to be displsyed in LOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i was using the function module inside the final loop of data and doing the update 1 by 1 and checking SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module has a ENQUE , DEQUE function inbuilt inside this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QUESTION&lt;/STRONG&gt;: Is there any problem in using a mass update function module in LOOP, but only updating record 1 by 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Oct 2010 12:34:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-11T12:34:03Z</dc:date>
    <item>
      <title>Using Function Module in a Loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-in-a-loop/m-p/7400442#M1546809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a program with a function module "TB_DATAFEED_MODIFY_OICQP"for updating table OICQP for price data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module can be used for mass update but user requirement is in such a way that the error records which are not updated needs to be displsyed in LOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i was using the function module inside the final loop of data and doing the update 1 by 1 and checking SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module has a ENQUE , DEQUE function inbuilt inside this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QUESTION&lt;/STRONG&gt;: Is there any problem in using a mass update function module in LOOP, but only updating record 1 by 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 12:34:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-in-a-loop/m-p/7400442#M1546809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-11T12:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using Function Module in a Loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-in-a-loop/m-p/7400443#M1546810</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 don't see any problem in that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 12:47:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-in-a-loop/m-p/7400443#M1546810</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2010-10-11T12:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using Function Module in a Loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-in-a-loop/m-p/7400444#M1546811</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;You will not get any problem while writing that in LOOP.&lt;/P&gt;&lt;P&gt;read it 1 by 1.&lt;/P&gt;&lt;P&gt;Go a head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kruthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 12:55:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-in-a-loop/m-p/7400444#M1546811</guid>
      <dc:creator>former_member1125862</dc:creator>
      <dc:date>2010-10-11T12:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using Function Module in a Loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-in-a-loop/m-p/7400445#M1546812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, it all depends on the volume of data, if it is too much, you can eventually have time out problems. If you can, run your program in background, as a job, and at least you will never have a time out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 16:30:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-in-a-loop/m-p/7400445#M1546812</guid>
      <dc:creator>mrio_espinheira</dc:creator>
      <dc:date>2010-10-11T16:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using Function Module in a Loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-in-a-loop/m-p/7400446#M1546813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it's not preferred, but if there is no alternate solution. Calling function module in loop for 100 to 5000 times usually works ok (depending on FM memory handling). If it's complex, usually performance goes on reducing. one can measure time after each call &amp;amp; then see how time taken for each call, goes on increasing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 16:54:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-in-a-loop/m-p/7400446#M1546813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-11T16:54:38Z</dc:date>
    </item>
  </channel>
</rss>

