<?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 objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3271976#M782177</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;yes its the way to do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no user can use the table&lt;/P&gt;&lt;P&gt;data will not be lost&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2008 14:46:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-03T14:46:30Z</dc:date>
    <item>
      <title>Lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3271975#M782176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the enque and deque function for a data dictionary table.  I have some doubt how to use these functions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;tabname = table_name&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;foreign_lock = 1&lt;/P&gt;&lt;P&gt;system_failure = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here after locking the table...can i use this statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT INTO table_name VALUES l_log.  &amp;lt;--l_log is defined as l_log like table_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;than after inserting I can release the table as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;Unlock Table&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DEQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;tabname = table_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the right way of doing things?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, I want to know , that what happens to other user trying to access this table while i locked this table down.  Will they lose the data or they need some sort of loop to find if the object is free to use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: I asked this question before as well...for some reason, I can not see that question under the option of your question on the right top corner of the screen when you logged into your profile...any ideas on this as well....Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 14:42:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3271975#M782176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T14:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3271976#M782177</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;yes its the way to do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no user can use the table&lt;/P&gt;&lt;P&gt;data will not be lost&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 14:46:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3271976#M782177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T14:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3271977#M782178</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;Yes its correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 14:50:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3271977#M782178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T14:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3271978#M782179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answer to you 1st question would be...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes.. you are doing the right way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answer to your 2nd question would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you create your Lock Object define your key fields, so that, any other person with the same key cannot insert or update the record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select exclusive lock mode, that is the locked data can only be displayed and edited by one user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vinodh Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 14:51:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3271978#M782179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T14:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3271979#M782180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for all the replies...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 14:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3271979#M782180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T14:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3271980#M782181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well, the problem with lock objects and the enqueue/dequeue technique is that - basically it does not work as it should.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table entries that you have locked using ENQUEUE can easily get modified by another program/user/even client using some other program, which does not check whether these entries have been locked or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie as long as there is any program directly modifying your table without calling ENQUEUE first, you can never guarantee that your entries wont get modified by someone else, even when you lock them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 15:02:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3271980#M782181</guid>
      <dc:creator>stamik</dc:creator>
      <dc:date>2008-01-03T15:02:55Z</dc:date>
    </item>
  </channel>
</rss>

