<?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: Parallel processing for account posting skipping records in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-for-account-posting-skipping-records/m-p/9587474#M1757155</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;For this wait is not the solution. I used import parameter once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the example code : &lt;A _jive_internal="true" href="https://answers.sap.com/message/13993540#13993540"&gt;http://scn.sap.com/message/13993540#13993540&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tolga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jul 2013 06:53:10 GMT</pubDate>
    <dc:creator>tolga_polat</dc:creator>
    <dc:date>2013-07-29T06:53:10Z</dc:date>
    <item>
      <title>Parallel processing for account posting skipping records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-for-account-posting-skipping-records/m-p/9587469#M1757150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using parallel processing method for account posting. I have created a Zbapi for bapi_acc_document_posting and have committed in the same zbapi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'ZBAPI_ACC_DOCUMENT_POST'&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STARTING &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;NEW &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TASK &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'POST' &lt;/SPAN&gt;DESTINATION &lt;SPAN class="L0S33"&gt;'NONE'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; documentheader&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;gs_header&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TABLES&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; accountgl&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;gt_item&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; accountreceivable &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;gt_acctr&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; accountpayable&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;gt_acctpy&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; currencyamount&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;gt_curr&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; criteria&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;gt_crit&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;return&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;gt_return&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_bapiret&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;gt_bapiret2&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;EXCEPTIONS&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; communication_failure &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;1 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MESSAGE &lt;/SPAN&gt;msg&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; system_failure&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;2&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MESSAGE &lt;/SPAN&gt;msg&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resource_failure&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;3&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;When I am scheduling the program in background for uploading suppose 1.5lakh records at a time, some records are gettinng skipped (somtimes 7000 records somtimes100 records). We are not getting the total count in bkpf table. I tried using wait up to '0.5' secs in zbapi too after commit.Please tell me what can be the issue.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jul 2013 10:33:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-for-account-posting-skipping-records/m-p/9587469#M1757150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-27T10:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing for account posting skipping records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-for-account-posting-skipping-records/m-p/9587470#M1757151</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;Could be locking conflict as you are doing parallel on same objects and they work on same Number ranges, same DB tables. Is it what you want to do? make sure you do lock and unlock well in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jul 2013 23:55:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-for-account-posting-skipping-records/m-p/9587470#M1757151</guid>
      <dc:creator>arindam_m</dc:creator>
      <dc:date>2013-07-28T23:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing for account posting skipping records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-for-account-posting-skipping-records/m-p/9587471#M1757152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Arindam, &lt;/P&gt;&lt;P&gt;Thanks for your response!! I have copied the standard bapi in to zbapi. So the locking and unlocking of the document number&amp;nbsp; is taken care by the bapi itself. Do I need to add additional code for that? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 05:32:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-for-account-posting-skipping-records/m-p/9587471#M1757152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-29T05:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing for account posting skipping records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-for-account-posting-skipping-records/m-p/9587472#M1757153</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;Well even though its standard it might happen. Try introducing WAIT statements. Best would be to trigger multiple jobs and each will use one background process (Usually many are available) so you will end up with parallel processing and also can avoid the missing doceuments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 06:33:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-for-account-posting-skipping-records/m-p/9587472#M1757153</guid>
      <dc:creator>arindam_m</dc:creator>
      <dc:date>2013-07-29T06:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing for account posting skipping records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-for-account-posting-skipping-records/m-p/9587473#M1757154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;helloo... i have already put wait up to statement in the zbapi. Please let me know if you have any piece of code to "trigger multiple jobs and each will use one background process" . Right now, the job takes the available workprocesses. The program will be scheduled in background only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 06:45:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-for-account-posting-skipping-records/m-p/9587473#M1757154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-29T06:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing for account posting skipping records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-for-account-posting-skipping-records/m-p/9587474#M1757155</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;For this wait is not the solution. I used import parameter once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the example code : &lt;A _jive_internal="true" href="https://answers.sap.com/message/13993540#13993540"&gt;http://scn.sap.com/message/13993540#13993540&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tolga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 06:53:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-for-account-posting-skipping-records/m-p/9587474#M1757155</guid>
      <dc:creator>tolga_polat</dc:creator>
      <dc:date>2013-07-29T06:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing for account posting skipping records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-for-account-posting-skipping-records/m-p/9587475#M1757156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ...Does&lt;STRONG&gt; performing ... at end of task &lt;/STRONG&gt;slow down the program performance??? I have gone through your code. Is it that the calling program will wait till all the tasks created while posting, pass this flag finish = X. Also will this create a bottleneck of resources??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 07:24:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-for-account-posting-skipping-records/m-p/9587475#M1757156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-29T07:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing for account posting skipping records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-for-account-posting-skipping-records/m-p/9587476#M1757157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it can cause to slowing. But for this scenario i needed to know first document finished its work, right know you can ask why you need parallel process, I did this in exit while posting document, so when writing without parallel process cause buffer overwrite anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your situation i think you will post independent document, and you want to call bapi same time. &lt;/P&gt;&lt;P&gt;I think data lost cause of update process, You used same task for all document, try changing this like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENETE lv_count 'POST' in lv_task. then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'Z....' starting new task lv_task etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with finish = 'X' you have only time increase, no resources problem, because with this you force program to wait until function finish its job ( like wait, but with this you have changeable time ). for time issue, I'm usually use another background job &lt;SPAN __jive_emoticon_name="grin" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1662/images/emoticons/grin.gif"&gt;&lt;/SPAN&gt; first i pass all data to background job with task SAVE_DATA for example, then in this i call posting with new task POST_DATA. so user doesnt wait until jobs done. And with finish = 'X' only two jobs is processing at same time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 08:55:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-for-account-posting-skipping-records/m-p/9587476#M1757157</guid>
      <dc:creator>tolga_polat</dc:creator>
      <dc:date>2013-07-29T08:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing for account posting skipping records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-for-account-posting-skipping-records/m-p/9587477#M1757158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tolga Polat ...your solution seems to be working fine for my requirement &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1662/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 07:51:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-for-account-posting-skipping-records/m-p/9587477#M1757158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-30T07:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing for account posting skipping records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-for-account-posting-skipping-records/m-p/9587478#M1757159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are wellcome&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 11:02:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-for-account-posting-skipping-records/m-p/9587478#M1757159</guid>
      <dc:creator>tolga_polat</dc:creator>
      <dc:date>2013-07-30T11:02:24Z</dc:date>
    </item>
  </channel>
</rss>

