<?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: Batch update through a Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-update-through-a-function-module/m-p/2612262#M599323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can you say this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'The normal speed is at least 100 record/1 second...'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on what he is doing in the function module. He could have a wait statement in it for 5 seconds for all you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also it will depend on the speed of the system.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I HATE PEOPLE WHO MAKE STUPID COMMENTS LIKE THIS!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT IS POINTLESS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2007 12:08:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-25T12:08:40Z</dc:date>
    <item>
      <title>Batch update through a Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-update-through-a-function-module/m-p/2612259#M599320</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 am required to generate output through a Function Module for specific input parameters.This Function Module takes two fields from a table as input to produce the output.I have to call this Function Module for all the records in the table(approx 5000 entries) and each record takes approx. 5-7 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any efficient way to achieve the same in batches(say 100 or 10 at a time,in parallel) instead of looping through each and every record in the table.&lt;/P&gt;&lt;P&gt;Kindly revert with the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shweta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:00:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-update-through-a-function-module/m-p/2612259#M599320</guid>
      <dc:creator>shweta_walaskar2</dc:creator>
      <dc:date>2007-07-25T12:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Batch update through a Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-update-through-a-function-module/m-p/2612260#M599321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Instead of looping outside the FM you can pass it as a Table into the FM and treat it "inside" your function module. It should help to reduce the processing time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-update-through-a-function-module/m-p/2612260#M599321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Batch update through a Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-update-through-a-function-module/m-p/2612261#M599322</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;No, there is no parrellel processing here in ABAP within 1 program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to speed up your FM. This is not "normal" to process 1 record for 5-7 seconds...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use SE30 transaction to the runtime analysis...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The normal speed is at least 100 record/1 second...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamás&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Tamás Nyisztor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-update-through-a-function-module/m-p/2612261#M599322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Batch update through a Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-update-through-a-function-module/m-p/2612262#M599323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can you say this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'The normal speed is at least 100 record/1 second...'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on what he is doing in the function module. He could have a wait statement in it for 5 seconds for all you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also it will depend on the speed of the system.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I HATE PEOPLE WHO MAKE STUPID COMMENTS LIKE THIS!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT IS POINTLESS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:08:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-update-through-a-function-module/m-p/2612262#M599323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Batch update through a Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-update-through-a-function-module/m-p/2612263#M599324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shweta,&lt;/P&gt;&lt;P&gt;               I dont think you can pass the data in batches. Moreover, even if you find a way to pass the data in batches i dont think it would reduce your execution time because the total no of documents will remain same. Correct me if I am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sourabh Verma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:09:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-update-through-a-function-module/m-p/2612263#M599324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Batch update through a Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-update-through-a-function-module/m-p/2612264#M599325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the FM is custom, modify it in order to pass an internal table as input in order to do everything in the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, in the main program submit a second program more times and pass to it an internal table with about 100 records that will be the input to the FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report MAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fill tb_one with 100 records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fill tb_two with 100 records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit program SECONDARY using tb_one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit program SECONDARY using tb_two&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report SECONDARY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at tb_X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input1 = tb_X-input1&lt;/P&gt;&lt;P&gt;input2 = tb_X-input2&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;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:12:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-update-through-a-function-module/m-p/2612264#M599325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:12:29Z</dc:date>
    </item>
  </channel>
</rss>

