<?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 problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-problem/m-p/4358703#M1037644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     U cannot lock a single record. The table can be locked using the FM's. If u want to lock it in record level, the record should contain an object, such as Material no, delivery no, etc... So only when objects are there in ur record u can lock otherwise it is not possible.... in record level...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Success........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Aug 2008 08:51:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-28T08:51:44Z</dc:date>
    <item>
      <title>lock problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-problem/m-p/4358697#M1037638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;plz let me know if nybody know how to lock the records of a z table that can be displayed in an editable alv . if user1 clicks on edit the record needs to be locked for all other users. if user1 clicks on update the lock is released.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 08:23:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-problem/m-p/4358697#M1037638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T08:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: lock problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-problem/m-p/4358698#M1037639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to create lock objects(SE11) and lock the entries using ENQUEUE &amp;amp; DEQUEUE functions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Piyush Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 08:25:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-problem/m-p/4358698#M1037639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T08:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: lock problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-problem/m-p/4358699#M1037640</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 think you need not to do anything explicitly. It is automaticaly taken care by the internal system of SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/Helpdata/EN/7b/f9813712f7434be10000009b38f8cf/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/Helpdata/EN/7b/f9813712f7434be10000009b38f8cf/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds,&lt;/P&gt;&lt;P&gt;Anirban&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 08:25:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-problem/m-p/4358699#M1037640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T08:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: lock problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-problem/m-p/4358700#M1037641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sohi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can use the function modules ENQUEUE_E_TABLE for locking tables and the function module DEQUEUE_E_TABLE for unlocking tables. With this method, we don't need to lock objects in order to lock the tables. In other words, any table can be locked/unlocked using these function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;Locking Table&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;varkey like rstable-varkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;varkey = sy-mandt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;locking the tables............................ &lt;/P&gt;&lt;P&gt;call function 'ENQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODE_RSTABLE = 'E' &lt;/P&gt;&lt;P&gt;tabname = 'MARA'&lt;/P&gt;&lt;P&gt;varkey = varkey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X_TABNAME = ' ' &lt;/P&gt;&lt;P&gt;X_VARKEY = ' ' &lt;/P&gt;&lt;P&gt;_SCOPE = '2' &lt;/P&gt;&lt;P&gt;_WAIT = ' ' &lt;/P&gt;&lt;P&gt;_COLLECT = 'X' &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;case sy-subrc.&lt;/P&gt;&lt;P&gt;when 1.&lt;/P&gt;&lt;P&gt;message i184(bctrain) with 'Foreignlock'.&lt;/P&gt;&lt;P&gt;when 2.&lt;/P&gt;&lt;P&gt;message i184(bctrain) with 'system failure'.&lt;/P&gt;&lt;P&gt;when 0.&lt;/P&gt;&lt;P&gt;message i184(bctrain) with 'success'.&lt;/P&gt;&lt;P&gt;when others.&lt;/P&gt;&lt;P&gt;message i184(bctrain) with 'others'.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unlocking the 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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODE_RSTABLE = 'E' &lt;/P&gt;&lt;P&gt;tabname = 'MARA'&lt;/P&gt;&lt;P&gt;varkey = varkey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X_TABNAME = ' ' &lt;/P&gt;&lt;P&gt;X_VARKEY = ' ' &lt;/P&gt;&lt;P&gt;_SCOPE = '3' &lt;/P&gt;&lt;P&gt;_SYNCHRON = ' ' &lt;/P&gt;&lt;P&gt;_COLLECT = ' ' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 08:30:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-problem/m-p/4358700#M1037641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T08:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: lock problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-problem/m-p/4358701#M1037642</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;While User Press Edit Button first you have to call&lt;/P&gt;&lt;P&gt;ENQUEUE_E_TABLE Function module to lock the Z table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And When user clicks on Update button Call FM DEQUEUE for unlocking the Records of the TAble.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sumit Agarwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 08:32:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-problem/m-p/4358701#M1037642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T08:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: lock problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-problem/m-p/4358702#M1037643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i've already created a lock object on the table.&lt;/P&gt;&lt;P&gt;the 2 fm's have also been created.&lt;/P&gt;&lt;P&gt;then on click of edit the records that are selected need to be locked.&lt;/P&gt;&lt;P&gt;i've taken the records in an internal table n looped it with the fm calling for lock f or each wa entries but it doesn't lock the object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 08:32:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-problem/m-p/4358702#M1037643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T08:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: lock problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-problem/m-p/4358703#M1037644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     U cannot lock a single record. The table can be locked using the FM's. If u want to lock it in record level, the record should contain an object, such as Material no, delivery no, etc... So only when objects are there in ur record u can lock otherwise it is not possible.... in record level...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Success........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 08:51:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-problem/m-p/4358703#M1037644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T08:51:44Z</dc:date>
    </item>
  </channel>
</rss>

