<?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 Parallel Updation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-updation/m-p/8103130#M1616615</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;I have an abap program that,  updates a ztable as follows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT t_tb INTO wa_tb.&lt;/P&gt;&lt;P&gt;      UPDATE ztab SET zfield = x&lt;/P&gt;&lt;P&gt;                    WHERE keyfield EQ wa_tb-keyfield.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to confirm that if I run parallelly (or simulataneously) 2 or more batch jobs based on same program that updates the same ztable there will be no problem and &lt;/P&gt;&lt;P&gt;the update will be the same result as if I run these batch jobs one after another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please throw me some clues which I would appreciate a great deal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;M Russo &lt;/P&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an abap program that,  updates a ztable as follows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT t_tb INTO wa_tb.&lt;/P&gt;&lt;P&gt;      UPDATE ztab SET zfield = x&lt;/P&gt;&lt;P&gt;                    WHERE keyfield EQ wa_tb-keyfield.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to confirm that if I run parallelly (or simulataneously) 2 or more batch jobs based on same program that updates the same ztable there will be no problem and &lt;/P&gt;&lt;P&gt;the update will be the same result as if I run these batch jobs one after another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please throw me some clues which I would appreciate a great deal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;M Russo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;BUMP**&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mirella Russo on Jul 23, 2011 3:31 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jul 2011 02:14:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-07-18T02:14:59Z</dc:date>
    <item>
      <title>Parallel Updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-updation/m-p/8103130#M1616615</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;I have an abap program that,  updates a ztable as follows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT t_tb INTO wa_tb.&lt;/P&gt;&lt;P&gt;      UPDATE ztab SET zfield = x&lt;/P&gt;&lt;P&gt;                    WHERE keyfield EQ wa_tb-keyfield.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to confirm that if I run parallelly (or simulataneously) 2 or more batch jobs based on same program that updates the same ztable there will be no problem and &lt;/P&gt;&lt;P&gt;the update will be the same result as if I run these batch jobs one after another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please throw me some clues which I would appreciate a great deal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;M Russo &lt;/P&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an abap program that,  updates a ztable as follows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT t_tb INTO wa_tb.&lt;/P&gt;&lt;P&gt;      UPDATE ztab SET zfield = x&lt;/P&gt;&lt;P&gt;                    WHERE keyfield EQ wa_tb-keyfield.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to confirm that if I run parallelly (or simulataneously) 2 or more batch jobs based on same program that updates the same ztable there will be no problem and &lt;/P&gt;&lt;P&gt;the update will be the same result as if I run these batch jobs one after another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please throw me some clues which I would appreciate a great deal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;M Russo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;BUMP**&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mirella Russo on Jul 23, 2011 3:31 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 02:14:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-updation/m-p/8103130#M1616615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-18T02:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-updation/m-p/8103131#M1616616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please go through the locking concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eed9446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eed9446011d189700000e8322d00/content.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the need device the lock mechanism.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables accessed simultaneously and one after the other in batch jobs has some differences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vighneswaran CE on Jul 23, 2011 7:35 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jul 2011 17:34:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-updation/m-p/8103131#M1616616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-23T17:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-updation/m-p/8103132#M1616617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There wont be a problem if key fields are different in different job. It will better if you update the DB table in one step rather than doing it in loop. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jul 2011 16:50:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-updation/m-p/8103132#M1616617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-24T16:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-updation/m-p/8103133#M1616618</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;if you are running jobs parallely to update the same DB table, it will cause locking issues. to avoid it, create lock objects for your ZTAB in SE11, then use the FMs ENQUEUE_&amp;lt;lockobjectname&amp;gt; ....... DEQUEUE_&amp;lt;lockobjectname&amp;gt; and write your update logic in between these FMs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jul 2011 18:21:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-updation/m-p/8103133#M1616618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-24T18:21:57Z</dc:date>
    </item>
  </channel>
</rss>

