<?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 custom tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-custom-tables/m-p/2561835#M584267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to use lock objects pls go through this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm"&amp;gt;http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jul 2007 02:46:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-13T02:46:50Z</dc:date>
    <item>
      <title>Lock custom tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-custom-tables/m-p/2561833#M584265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am writing program to upload data from excel to custom tables.&lt;/P&gt;&lt;P&gt;Here i add/ update/delete records from the table based on entries from excel sheet.&lt;/P&gt;&lt;P&gt;While i run this program, how do i maintain locks on the table, so that any other user is not modifying the tables at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be awarded immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 02:42:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-custom-tables/m-p/2561833#M584265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T02:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Lock custom tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-custom-tables/m-p/2561834#M584266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create lock objects in SE11 for that table.&lt;/P&gt;&lt;P&gt;then it create 2 function modules enqueue_&amp;lt;lockobject&amp;gt; and dequeue_&amp;lt;lockobject&amp;gt;&lt;/P&gt;&lt;P&gt;Use the FM's to lock and unlock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;the lock object name should always start with E.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eef3446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eef3446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 02:45:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-custom-tables/m-p/2561834#M584266</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-07-13T02:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Lock custom tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-custom-tables/m-p/2561835#M584267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to use lock objects pls go through this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm"&amp;gt;http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 02:46:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-custom-tables/m-p/2561835#M584267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T02:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Lock custom tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-custom-tables/m-p/2561836#M584268</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;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3301061"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 02:57:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-custom-tables/m-p/2561836#M584268</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-07-13T02:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Lock custom tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-custom-tables/m-p/2561837#M584269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Lock objects&amp;lt;/b&amp;gt; are used to lock the database table while making the modifications on the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can create your own lock objects using SE11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you create lock objects on any table system will create two function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1.ENQUEUE....&lt;/P&gt;&lt;P&gt;2.DEQUEUE.....&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first one is used to lock the table&lt;/P&gt;&lt;P&gt;second one used to removing lock on the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;This lock object&amp;lt;/b&amp;gt; facilitates synchronous process. That is suppose if you are changing the table entries, and simultaneously there might be several programs running in the background or by anything else which also does changes to the same table. In this case you can lock the table so that other program will not able to update/insert/ do any other operation unless or until your program executes successfully. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create lock objects for this purpose in transaction SE11. SAP by default create 2 function modules. One for locking ( Enqueue) and other for unlocking ( Dequeue ). You can call these function module in appropriate places in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex...&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;lock Table&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;&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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;check the below links:&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_40b/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_40b/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1716213"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&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;Moqeeth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 03:13:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-custom-tables/m-p/2561837#M584269</guid>
      <dc:creator>mohammed_moqeeth</dc:creator>
      <dc:date>2007-07-13T03:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Lock custom tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-custom-tables/m-p/2561838#M584270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To lock the whole table, you can use this generic object FM ENQUEUE_E_TABLE&lt;/P&gt;&lt;P&gt;here you pass upu custom table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to lock on a key value(entries) than you can create a lock object in SE11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;A.Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 03:51:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-custom-tables/m-p/2561838#M584270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T03:51:08Z</dc:date>
    </item>
  </channel>
</rss>

