<?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 Background Job in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-background-job/m-p/9533127#M1750947</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You wont find anything in SM12 as you did not manage lock at SAP level, your problem is caused by lock/wait or even deadlock at database level. Use Database tool to find actual error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use SAP lock to prevent insertion of overlapping keys range&lt;/LI&gt;&lt;LI&gt;Use an update task FM (CALL Z_XXX IN UPDATE TASK) to executer the OPEN-SQL statements i&amp;nbsp; update task, so main job wont wait, and system will manage some queue in update&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jun 2013 08:18:03 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2013-06-10T08:18:03Z</dc:date>
    <item>
      <title>Parallel Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-background-job/m-p/9533119#M1750939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have a problem in parallel background job.&lt;/P&gt;&lt;P&gt;&amp;nbsp; The background job is to update one database table with different variant for each background job.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Firstly the program delete database content for that variant , and then insert the new content based on that variant.&lt;/P&gt;&lt;P&gt; At the end of program I used syntax commit work and wait.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; But unfortunately all the parallel program hung up&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp; If I check the SM66 all program hung up in the syntax insert table and never end.&lt;/P&gt;&lt;P&gt; And it only happen in the production environment , in QA and DEV environment its run smoothly. &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;Ikrar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 03:33:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-background-job/m-p/9533119#M1750939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-07T03:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-background-job/m-p/9533120#M1750940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ikrar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you try to remove the "AND WAIT" ? &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;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 06:13:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-background-job/m-p/9533120#M1750940</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2013-06-07T06:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-background-job/m-p/9533121#M1750941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;Are the variant defining exclusive subsets of the database, and no overlapping between two jobs, are there message in system log or on database server (deadlocks) did you use a lock/enqueue tool to prevent such behavior ?&lt;/LI&gt;&lt;LI&gt;The AND WAIT serves no purpose as long as you did not call any update task FM (read the documentation of COMMIT WORK via F1 or at help.sap.com)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 06:33:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-background-job/m-p/9533121#M1750941</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-06-07T06:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-background-job/m-p/9533122#M1750942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't understand your comment on the AND WAIT ? &lt;/P&gt;&lt;P&gt;for you AND WAIT have no impact if you are not un a update task FM ? &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;fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 07:25:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-background-job/m-p/9533122#M1750942</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2013-06-07T07:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-background-job/m-p/9533123#M1750943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The AND WAIT option of the &lt;A href="http://help.sap.com/abapdocu_731/en/abapcommit.htm"&gt;COMMIT WORK&lt;/A&gt; statement, system will wait until all Update V1 task are ended, here none were called.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;However, if the addition &lt;SPAN class="qtext"&gt;AND WAIT&lt;/SPAN&gt; is specified, program processing after &lt;SPAN class="qtext"&gt;COMMIT WORK&lt;/SPAN&gt; will not continue until the update work process has executed the high-priority update function modules (synchronous updating).&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Execution a COMMIT WORK after only OPEN-SQL statements will only trigger a database commit like FM DB_COMMIT or a native SQL COMMIT statement whatever options are used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to create a sample that update a million records via OPEN-SQL, test with a COMMIT WORK AND WAIT and a simple COMMIT WORK.&lt;/P&gt;&lt;P&gt;Depending on OS database, a native sql statement can look like EXECUTE IMMEDIATE COMMIT but not in OPEN-SQL, or use a Native SQL syntax.&lt;/P&gt;&lt;P&gt;Also there can be delay due to communication between application server and database server, and with buffering of data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample for Oracle could be COMMIT WORK WRITE IMMEDIATE WAIT ?&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_4010.htm"&gt;&lt;IMG alt="Description of commit.gif follows" class="jiveImage" height="234" src="http://docs.oracle.com/cd/B19306_01/server.102/b14200/img/commit.gif" title="Description of commit.gif follows" width="730" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 07:39:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-background-job/m-p/9533123#M1750943</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-06-07T07:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-background-job/m-p/9533124#M1750944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I think I'm agree with you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, if you run 3 programs that update the same table (not the same entries), if you use the COMMIT WORK, SAP will wait the end of the 3 programs ?&amp;nbsp; no ? &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;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 08:32:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-background-job/m-p/9533124#M1750944</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2013-06-07T08:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-background-job/m-p/9533125#M1750945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There could be lock between the job, on undo space and shared areas ?.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That can raise in Oracle for example some ORA-0060 during insertions of different records) but an OS like DB400 never raise me this kind of error, so depend on OS database ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In every case, the lock/wait may arise in DB commit task even if no WAIT in statement, a solution in Oracle could be a &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&amp;nbsp; EXEC SQL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; COMMIT WORK WRITE BATCH NOWAIT&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDEXEC.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 08:53:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-background-job/m-p/9533125#M1750945</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-06-07T08:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-background-job/m-p/9533126#M1750946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have check in the SM12 and I don't find&amp;nbsp; any locking.&lt;BR /&gt;Do you think because I add the Wait statement and the background job became synchronous&lt;/P&gt;&lt;P&gt; task ?&lt;/P&gt;&lt;P&gt; and the hung up situation because the synchronous task. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ikrar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jun 2013 04:37:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-background-job/m-p/9533126#M1750946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-09T04:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-background-job/m-p/9533127#M1750947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You wont find anything in SM12 as you did not manage lock at SAP level, your problem is caused by lock/wait or even deadlock at database level. Use Database tool to find actual error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use SAP lock to prevent insertion of overlapping keys range&lt;/LI&gt;&lt;LI&gt;Use an update task FM (CALL Z_XXX IN UPDATE TASK) to executer the OPEN-SQL statements i&amp;nbsp; update task, so main job wont wait, and system will manage some queue in update&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 08:18:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-background-job/m-p/9533127#M1750947</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-06-10T08:18:03Z</dc:date>
    </item>
  </channel>
</rss>

