<?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: Program taking too much time to execute in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-taking-too-much-time-to-execute/m-p/10769464#M1877740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; While fetching data from the table are you using all primary keys , if not then include those one and try.&lt;/P&gt;&lt;P&gt;And second thing , if part from primary keys if you are or you can use other keys means go with index .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Dec 2014 11:32:11 GMT</pubDate>
    <dc:creator>krishna_k19</dc:creator>
    <dc:date>2014-12-18T11:32:11Z</dc:date>
    <item>
      <title>Program taking too much time to execute</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-taking-too-much-time-to-execute/m-p/10769463#M1877739</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;&lt;/P&gt;&lt;P&gt;There is a requirement to delete some Open text files from the server. For that I am using below 2 FMs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; &lt;SPAN class="L0S33"&gt;ARCHIV_CONNECTINFO_GET_META&amp;nbsp; - To read fetch the file details&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;2.&amp;nbsp; ARCHIV_DELETE_META&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To delete the file&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;We have one custom table which contains key( object_id) for all the files(And this custom table contains million records in Production system).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And logic I am using to delete those file is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Fetch the object_id from the custom table&lt;/P&gt;&lt;P&gt;2. Pass it to 1st FM with&amp;nbsp; sap_object.&lt;/P&gt;&lt;P&gt;3. Then pass outcome value from 1st FM to 2nd FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially I had used select statement with package size 1000. But this program was taking more than 4Hrs to execute in Non-production systems with 25000 data in custom table. And again executed the program by increasing the package size by 50000, but no use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't run this program without using Packet size logic, as it will give TIME OUT dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me if there is any alternate solution for this.&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;Srivijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 11:11:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-taking-too-much-time-to-execute/m-p/10769463#M1877739</guid>
      <dc:creator>srivijay_dinnimath</dc:creator>
      <dc:date>2014-12-18T11:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Program taking too much time to execute</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-taking-too-much-time-to-execute/m-p/10769464#M1877740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; While fetching data from the table are you using all primary keys , if not then include those one and try.&lt;/P&gt;&lt;P&gt;And second thing , if part from primary keys if you are or you can use other keys means go with index .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 11:32:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-taking-too-much-time-to-execute/m-p/10769464#M1877740</guid>
      <dc:creator>krishna_k19</dc:creator>
      <dc:date>2014-12-18T11:32:11Z</dc:date>
    </item>
  </channel>
</rss>

