<?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 Inserting in a Custom table in an Fm via Parallel processing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-in-a-custom-table-in-an-fm-via-parallel-processing/m-p/7428984#M1550203</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 a requirement wherein i am inserting certain data in a custom table throgh a Function module which has been processed through parallel processing. So do i need to use locking for custom table because many session will try to insert data in that table? The data will be different in each session.Tried searching it in Wiki but could not find related document. It will be helpful if anyone could give me useful links or suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Dec 2010 10:34:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-18T10:34:22Z</dc:date>
    <item>
      <title>Inserting in a Custom table in an Fm via Parallel processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-in-a-custom-table-in-an-fm-via-parallel-processing/m-p/7428984#M1550203</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 a requirement wherein i am inserting certain data in a custom table throgh a Function module which has been processed through parallel processing. So do i need to use locking for custom table because many session will try to insert data in that table? The data will be different in each session.Tried searching it in Wiki but could not find related document. It will be helpful if anyone could give me useful links or suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Dec 2010 10:34:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-in-a-custom-table-in-an-fm-via-parallel-processing/m-p/7428984#M1550203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-18T10:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting in a Custom table in an Fm via Parallel processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-in-a-custom-table-in-an-fm-via-parallel-processing/m-p/7428985#M1550204</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;Any inputs?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 08:25:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-in-a-custom-table-in-an-fm-via-parallel-processing/m-p/7428985#M1550204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-21T08:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting in a Custom table in an Fm via Parallel processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-in-a-custom-table-in-an-fm-via-parallel-processing/m-p/7428986#M1550205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not really performance question,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes you should use an enqueue for locking, and you must set it with all available key. Other parallel processes can also insert different data. But just in case, if the same key comes again, then the enqueue would not allow the duplicate insert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 09:29:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-in-a-custom-table-in-an-fm-via-parallel-processing/m-p/7428986#M1550205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-21T09:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting in a Custom table in an Fm via Parallel processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-in-a-custom-table-in-an-fm-via-parallel-processing/m-p/7428987#M1550206</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 would wait for all parallel processes to finish and then commit in DB all results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Technically, it means the use of call funtion keyword  performing XXXXX on end of task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In this perform you are retrieving a result table (with keyword receive results from function) and then append lines in a global table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When all processes are finished, commit everything in DB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Dec 2010 13:56:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-in-a-custom-table-in-an-fm-via-parallel-processing/m-p/7428987#M1550206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-23T13:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting in a Custom table in an Fm via Parallel processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-in-a-custom-table-in-an-fm-via-parallel-processing/m-p/7428988#M1550207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mathieu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what if i insert during the processing instead in the recieve statement. Won't t be one and same thing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Dec 2010 06:06:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-in-a-custom-table-in-an-fm-via-parallel-processing/m-p/7428988#M1550207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-24T06:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting in a Custom table in an Fm via Parallel processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-in-a-custom-table-in-an-fm-via-parallel-processing/m-p/7428989#M1550208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi asagraw1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My point was to insert &lt;U&gt;&lt;STRONG&gt;after&lt;/STRONG&gt;&lt;/U&gt; the receiving statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the receiving perform you are just doing "APPEND ALL LINES OF et_results TO gt_results". So all processes will append results in a global table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when they are all finished, you are doing a single insert from this global table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this you avoid lock problems as you are doing a single database access (and you don't loose in performance as a single DB access is really efficient).&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;Mathieu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Dec 2010 08:44:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-in-a-custom-table-in-an-fm-via-parallel-processing/m-p/7428989#M1550208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-24T08:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting in a Custom table in an Fm via Parallel processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-in-a-custom-table-in-an-fm-via-parallel-processing/m-p/7428990#M1550209</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 assume you know &lt;/P&gt;&lt;P&gt;-&amp;gt;about enqueue and dequeue process &lt;/P&gt;&lt;P&gt;-&amp;gt; The types of FM used for update &lt;/P&gt;&lt;P&gt;-&amp;gt; The update strategies are know to you . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read more documents on update strategis to find when the lock gets released and what type of update you want asynchronus or synchronus ? depending on that you can decide how the locking mechannism should work ...if your ultimate aim is to update the table asynchronus update will work ..however you want further processing only if the the data has been updated go for synchronus ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 07:57:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-in-a-custom-table-in-an-fm-via-parallel-processing/m-p/7428990#M1550209</guid>
      <dc:creator>AnjaneyaBhardwaj</dc:creator>
      <dc:date>2010-12-28T07:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting in a Custom table in an Fm via Parallel processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-in-a-custom-table-in-an-fm-via-parallel-processing/m-p/7428991#M1550210</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;of course locking is in general the correct way, but if you are going for best performance in this special case... my proposal is different:&lt;/P&gt;&lt;P&gt;- you only do inserts (no update, no delete)&lt;/P&gt;&lt;P&gt;- your data is unique (no double keys)&lt;/P&gt;&lt;P&gt;-&amp;gt; just do inserts (with commit) and skip locking, there can't be any lock-situation for this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course it's different in case of updates or complex booking scenarios... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 10:53:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-in-a-custom-table-in-an-fm-via-parallel-processing/m-p/7428991#M1550210</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2011-02-03T10:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting in a Custom table in an Fm via Parallel processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-in-a-custom-table-in-an-fm-via-parallel-processing/m-p/7428992#M1550211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; not really performance question,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Siegfried&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moved to ABAP General.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 10:45:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-in-a-custom-table-in-an-fm-via-parallel-processing/m-p/7428992#M1550211</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2011-02-08T10:45:31Z</dc:date>
    </item>
  </channel>
</rss>

