<?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: z-table updating in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-updating/m-p/8031060#M1609838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP database will automatically lock the table for you. So whichever batch hits the database first this will update the table then when that batch finishes the next will be allowed to write to the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Aug 2011 09:18:43 GMT</pubDate>
    <dc:creator>former_member201275</dc:creator>
    <dc:date>2011-08-09T09:18:43Z</dc:date>
    <item>
      <title>z-table updating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-updating/m-p/8031058#M1609836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a z-table. A z-program selects data from SAP tables and updates this table via batch jobs with selection criteria.&lt;/P&gt;&lt;P&gt;If i run 2 or more such batch jobs with different or overlapping selections, what happens if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the z-program uses a simple "Update" command without FM ENQUEUE_E_TABLEE to lock the table and FM DEQUEUE_E_TABLEE to unlock table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default, when abap command updates a table with "update" , without the above 2 FMs,  does it lock the z-table?&lt;/P&gt;&lt;P&gt;If not,  how is data being updated in the table :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. overlapping data selection.&lt;/P&gt;&lt;P&gt;2. disjoint data selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot understand how can the server update concurrently when everything is sequential?&lt;/P&gt;&lt;P&gt;So, when there are 2 updates at the same time, is it not sequentially done , 1 after the other ? How can both updates be updated at exactly the same time when there is assuming a single disk written using a single write mechanism at any point in time?&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;Bass&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 07:30:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-updating/m-p/8031058#M1609836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-09T07:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: z-table updating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-updating/m-p/8031059#M1609837</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;The fm ENQUEUE_E_TABLEE and FM DEQUEUE_E_TABLEE manages a logical lock only, this lock can be used to avoid several processes use the same object together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means the lock above has to be managed programmatically only: after checking the result of these function you need to decide if to update or not to update the table. (or to abort the process).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If nobody prevents several processes update the same  table: the database places all processes in a queue and the last one overwrites all prevoius modifications (for the records with same key of course).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 07:47:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-updating/m-p/8031059#M1609837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-09T07:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: z-table updating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-updating/m-p/8031060#M1609838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP database will automatically lock the table for you. So whichever batch hits the database first this will update the table then when that batch finishes the next will be allowed to write to the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 09:18:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-updating/m-p/8031060#M1609838</guid>
      <dc:creator>former_member201275</dc:creator>
      <dc:date>2011-08-09T09:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: z-table updating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-updating/m-p/8031061#M1609839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seeing two different answers here i want to point you to Max´s Answer as it is the correct one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 09:39:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-updating/m-p/8031061#M1609839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-09T09:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: z-table updating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-updating/m-p/8031062#M1609840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also confused by the 2 types of answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both to me sounds right.   &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also asked some colleagues who said the database handles this sort of thing by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, why  the Enqueue and DeQueue functions exist?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I have to go with you and adopt Max's advise while also considering Gemini's .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Bass&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Sep 2011 04:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-updating/m-p/8031062#M1609840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-04T04:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: z-table updating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-updating/m-p/8031063#M1609841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gemini's answer is wrong and shows a complete lack of understanding of how locking is to be applied in SAP. Your colleagues who agree with Gemini are also wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The database does have its own locking mechanism, but it &lt;STRONG&gt;must not&lt;/STRONG&gt; be relied on or utilised for ABAP applications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Sep 5, 2011 6:55 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 04:51:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-table-updating/m-p/8031063#M1609841</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2011-09-05T04:51:22Z</dc:date>
    </item>
  </channel>
</rss>

