<?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: Lock table does not work in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-does-not-work/m-p/4463556#M1057682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look for the type of lock you have used as there are shared lock , cumulative not exclusive , cumulative exculsive locks are available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Locks are established at the time of update .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Sep 2008 09:01:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-05T09:01:26Z</dc:date>
    <item>
      <title>Lock table does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-does-not-work/m-p/4463552#M1057678</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 table (own development) that we use to save some data ...&lt;/P&gt;&lt;P&gt;In one of our programs we will need to change the data of some records. So, one of my colleagues created a lock-object to use ... There is also the generated function to lock the table ...&lt;/P&gt;&lt;P&gt;As possible test I open the table with SM30 and in my program I try to lock the table. Unfortunately this seems to be possible ... The function returns with sy-subrc 0, which means that the lock was executed ?&lt;/P&gt;&lt;P&gt;I don't understand why this is working ? In SM12 I see that the table is locked, but I still can lock it with the function in my program ?&lt;/P&gt;&lt;P&gt;Does anyone knows an explanation for this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance !&lt;/P&gt;&lt;P&gt;Greetz, Kurt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 08:50:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-does-not-work/m-p/4463552#M1057678</guid>
      <dc:creator>kumaro412</dc:creator>
      <dc:date>2008-09-05T08:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Lock table does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-does-not-work/m-p/4463553#M1057679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Curt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you use any key field to lock the table or only MANDT is used? &lt;/P&gt;&lt;P&gt;Also, What kind of lock you have executed, READ, WRITE or Exclusive?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kunjal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 08:53:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-does-not-work/m-p/4463553#M1057679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T08:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Lock table does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-does-not-work/m-p/4463554#M1057680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;       In SM30 did you open the table is Change or Edit mode .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you pressed the display button then through Program will work .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Display the table is not locked thru transaction ,but thru program if you lock you will get the result what you are getting now .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 08:57:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-does-not-work/m-p/4463554#M1057680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T08:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Lock table does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-does-not-work/m-p/4463555#M1057681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Locks that are created in se11are locical locks not physical lock that exist in DB level , so for SM 30 it will not work. Try running the program from your end , you can see subrc returning  '4'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 08:58:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-does-not-work/m-p/4463555#M1057681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T08:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Lock table does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-does-not-work/m-p/4463556#M1057682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look for the type of lock you have used as there are shared lock , cumulative not exclusive , cumulative exculsive locks are available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Locks are established at the time of update .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 09:01:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-does-not-work/m-p/4463556#M1057682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T09:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Lock table does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-does-not-work/m-p/4463557#M1057683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Locks only work when everybody use the same locking mechanism e.g. the same lock name and key-fields. because only then the program can see if a lock exists. so if the lockname is different from the SM30 then the one that has been made by your colleague, two locking mechanisms are working. and since this is NOT a real DB-lock, it will not work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guido&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 09:43:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-does-not-work/m-p/4463557#M1057683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T09:43:37Z</dc:date>
    </item>
  </channel>
</rss>

