<?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_Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-query/m-p/1576732#M260347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if you want to use the Lock concept, the Lock object should be there, you can create the lock object starting with Z or Y. and the ENQUEUE and DEQUEUE function modules will be genareted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or else, you can use the below way..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;i_varkey TYPE rstable-varkey,
i_tabname TYPE rstable-tabname VALUE 'ZGLACC'.
CONCATENATE sy-mandt i_final-vbeln 
INTO i_varkey.

 CALL FUNCTION 'ENQUEUE_E_TABLEE'
      EXPORTING
           tabname = i_tabname
           varkey  = i_varkey.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Oct 2006 09:06:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-09T09:06:49Z</dc:date>
    <item>
      <title>Lock_Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-query/m-p/1576729#M260344</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;I want to know that do we need to create a Lock Object for any SAP Object or we can directly write ENQUE_* for the object?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean when I try to create a Lock Object I am asked an Access Key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is it so?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 09:00:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-query/m-p/1576729#M260344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T09:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Lock_Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-query/m-p/1576730#M260345</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;When you create a Lock Object in SE11 , automatically the ENQU*  and DEQU* FM's gets created .&lt;/P&gt;&lt;P&gt;As for the Access key restriction contact your basis person for the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 09:03:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-query/m-p/1576730#M260345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T09:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Lock_Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-query/m-p/1576731#M260346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/a2/3547360f2ea61fe10000009b38f839/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/a2/3547360f2ea61fe10000009b38f839/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 09:04:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-query/m-p/1576731#M260346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T09:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Lock_Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-query/m-p/1576732#M260347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if you want to use the Lock concept, the Lock object should be there, you can create the lock object starting with Z or Y. and the ENQUEUE and DEQUEUE function modules will be genareted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or else, you can use the below way..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;i_varkey TYPE rstable-varkey,
i_tabname TYPE rstable-tabname VALUE 'ZGLACC'.
CONCATENATE sy-mandt i_final-vbeln 
INTO i_varkey.

 CALL FUNCTION 'ENQUEUE_E_TABLEE'
      EXPORTING
           tabname = i_tabname
           varkey  = i_varkey.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 09:06:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-query/m-p/1576732#M260347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T09:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Lock_Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-query/m-p/1576733#M260348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   if you are trying to create lock object for SAP&lt;/P&gt;&lt;P&gt;   tables you need access key.&lt;/P&gt;&lt;P&gt;   when lockobject is created using se11 &lt;/P&gt;&lt;P&gt;   by default enqueue_&amp;lt;lock objectname&amp;gt;      &lt;/P&gt;&lt;P&gt;              dequeue_&amp;lt;lock objectname&amp;gt; are created &lt;/P&gt;&lt;P&gt;   by SAP.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;   you can create at table level or row level lock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   check out whether ant standard lock objects are &lt;/P&gt;&lt;P&gt;   already defined for your table in se11 and use &lt;/P&gt;&lt;P&gt;   the same for your requirement.        &lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 09:10:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-query/m-p/1576733#M260348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T09:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Lock_Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-query/m-p/1576734#M260349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi subhash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I mean when I try to create a Lock Object I am asked an Access Key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats bcos u are directly creating the &lt;/P&gt;&lt;P&gt;lock object with the name starting from&lt;/P&gt;&lt;P&gt;Z or Y.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;(INSTEAD use EZabc or EYabc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie. E should be the first letter&lt;/P&gt;&lt;P&gt;    Z/Y should be the second letter&lt;/P&gt;&lt;P&gt;    then anything..)&amp;lt;/b&amp;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;2. &lt;/P&gt;&lt;P&gt; want to know that do we need to create a Lock Object for any SAP Object or we can directly write ENQUE_* for the object?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, we need to create.&lt;/P&gt;&lt;P&gt;Create a lock object,&lt;/P&gt;&lt;P&gt;will automatically create TWO FMs &lt;/P&gt;&lt;P&gt;for Dequeue/enqueue,&lt;/P&gt;&lt;P&gt;which we have to use in our abap code.&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 09:18:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-query/m-p/1576734#M260349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T09:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Lock_Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-query/m-p/1576735#M260350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;first u have to create lock object using&amp;lt;b&amp;gt; SE11&amp;lt;/b&amp;gt; tcode.&lt;/P&gt;&lt;P&gt;then it automatically create its &amp;lt;b&amp;gt;ENQUE&amp;lt;/b&amp;gt; And &amp;lt;b&amp;gt;DEQUE&amp;lt;/b&amp;gt; Function Module for this object and then u can use that in your Program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 10:28:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-query/m-p/1576735#M260350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T10:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Lock_Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-query/m-p/1576736#M260351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudheer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell the difference between the two methods specified by you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create Lock Object for the table from SE11 and use the Enqueue and Dequeue function modules of that lock object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Do NOT create a Lock Object for the table and use the function modules ENQUEUE_E_TABLEE and DEQUEUE_E_TABLEE, passing the table name to them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I opened the table in Edit Mode in SM30 and then tried using both these methods above.&lt;/P&gt;&lt;P&gt;The first method allowed me to update the table, even though the table was open in edit mode in SM30.&lt;/P&gt;&lt;P&gt;The second method did NOT allow me to update the table. It gave an error that the table is already locked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please shed some light on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anshuman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Sep 2007 08:26:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-query/m-p/1576736#M260351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-16T08:26:31Z</dc:date>
    </item>
  </channel>
</rss>

