<?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: Locking multiple records in a database table at a time in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-multiple-records-in-a-database-table-at-a-time/m-p/5231322#M1209226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My objective is not with authorization objects. I cant fix values for locking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Feb 2009 13:45:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-18T13:45:40Z</dc:date>
    <item>
      <title>Locking multiple records in a database table at a time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-multiple-records-in-a-database-table-at-a-time/m-p/5231320#M1209224</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;   I have a requirement to lock multiple records in the database table for writing. I have created lock object in SE11. But with this we have only 2 possibilities either lock entire table or lock a single record at a time. &lt;/P&gt;&lt;P&gt;   My requirement is, i have table with key field PROJECTID. I want more than one project to be locked, but not the complete table. I dont have any other field in the table to compare.&lt;/P&gt;&lt;P&gt;Thanks in advance..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Asrar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 13:35:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-multiple-records-in-a-database-table-at-a-time/m-p/5231320#M1209224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T13:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Locking multiple records in a database table at a time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-multiple-records-in-a-database-table-at-a-time/m-p/5231321#M1209225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi welcome to SCN...&lt;/P&gt;&lt;P&gt;in su21 you can add some more data elements in the same Authorization object..&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="green" __jive_macro_name="color"&gt;J@Y&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 13:42:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-multiple-records-in-a-database-table-at-a-time/m-p/5231321#M1209225</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-02-18T13:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Locking multiple records in a database table at a time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-multiple-records-in-a-database-table-at-a-time/m-p/5231322#M1209226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My objective is not with authorization objects. I cant fix values for locking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 13:45:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-multiple-records-in-a-database-table-at-a-time/m-p/5231322#M1209226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T13:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Locking multiple records in a database table at a time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-multiple-records-in-a-database-table-at-a-time/m-p/5231323#M1209227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you might have SAP_ALL access.. so you cannot test if its locking or not.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT Hit F1 on this and find more info..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 13:59:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-multiple-records-in-a-database-table-at-a-time/m-p/5231323#M1209227</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-02-18T13:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Locking multiple records in a database table at a time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-multiple-records-in-a-database-table-at-a-time/m-p/5231324#M1209228</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;Try with &lt;STRONG&gt;FOR UPDATE&lt;/STRONG&gt; in the SELECT sentence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT FOR UPDATE *&lt;/P&gt;&lt;P&gt;         INTO Internal_Table&lt;/P&gt;&lt;P&gt;       FROM Table&lt;/P&gt;&lt;P&gt;      WHERE Conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sentence blocks the records that satisfy of the WHERE conditions.&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;José&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 20:29:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-multiple-records-in-a-database-table-at-a-time/m-p/5231324#M1209228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T20:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Locking multiple records in a database table at a time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-multiple-records-in-a-database-table-at-a-time/m-p/5231325#M1209229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used to lock the compolete table, and implemented the required logic in the program so that users did not get locking errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2009 07:13:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-multiple-records-in-a-database-table-at-a-time/m-p/5231325#M1209229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-13T07:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Locking multiple records in a database table at a time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-multiple-records-in-a-database-table-at-a-time/m-p/5231326#M1209230</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;Try with FOR UPDATE in the SELECT sentence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT FOR UPDATE *&lt;/P&gt;&lt;P&gt;    INTO Internal_Table&lt;/P&gt;&lt;P&gt;  FROM Table&lt;/P&gt;&lt;P&gt;WHERE Conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE "Table_name" FROM TABLE  Internal_Table.&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sentence blocks only the records that satisfy of the WHERE conditions (not the entire table) and unlocks after commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information is help to you.&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;José&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 19:39:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-multiple-records-in-a-database-table-at-a-time/m-p/5231326#M1209230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-08T19:39:41Z</dc:date>
    </item>
  </channel>
</rss>

