<?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: Regarding Lock Object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object/m-p/2287027#M498541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can use either of this 2 function modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ENQUEUE_E_TABLE - Pass the table name and the fields based on which table should be locked in TABNAME and VARKEY parameters respectively. If you want to lock the table based on more than one key field, concatenate the key and pass it to VARKEY field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; e.g. to lock VBAP for client 100 order no 0000000001 and item 000010 pass &lt;/P&gt;&lt;P&gt;VBAP to TABNAME and&lt;/P&gt;&lt;P&gt;1000000000001000010 to VARKEY&lt;/P&gt;&lt;P&gt;also MODE_RSTABLE should be given E or S or X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. VIEW_ENQUEUE - this will also lock the table which you pass in VIEW_NAME parameter. i didnot get much success on this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds&lt;/P&gt;&lt;P&gt;Basha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2007 20:23:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-11T20:23:15Z</dc:date>
    <item>
      <title>Regarding Lock Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object/m-p/2287020#M498534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please guide me how i can find out the lock object name. If i know the table name. is there any table which stores the table name and lock object name for that table.&lt;/P&gt;&lt;P&gt;Or any function module to which i can pass table name in return i can get lock object name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to do all this by coding.&lt;/P&gt;&lt;P&gt;Its very urgect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;AZAD:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 11:57:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object/m-p/2287020#M498534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T11:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Lock Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object/m-p/2287021#M498535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Lock Objects Tables is: &amp;lt;b&amp;gt;DD25L&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Lock objects are use in SAP to avoid the inconsistancy at the time of data is being insert/change into database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP Provide three type of Lock objects. &lt;/P&gt;&lt;P&gt;- Read Lock(Shared Locked) &lt;/P&gt;&lt;P&gt;protects read access to an object. The read lock allows other transactions read access but not write access to &lt;/P&gt;&lt;P&gt;the locked area of the table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Write Lock(exclusive lock) &lt;/P&gt;&lt;P&gt;protects write access to an object. The write lock allows other transactions neither read nor write access to &lt;/P&gt;&lt;P&gt;the locked area of the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Enhanced write lock (exclusive lock without cumulating) &lt;/P&gt;&lt;P&gt;works like a write lock except that the enhanced write lock also protects from further accesses from the &lt;/P&gt;&lt;P&gt;same transaction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a lock on a object of SAP thorugh transaction SE11 and enter any meaningful name start with EZ Example EZTEST_LOCK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use: you can see in almost all transaction when you are open an object in Change mode SAP could not allow to any other user to open the same object in change mode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: in HR when we are enter a personal number in master data maintainance screen SAP can't allow to any other user to use same personal number for changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Technicaly: &lt;/P&gt;&lt;P&gt;When you create a lock object System automatically creat two function module. &lt;/P&gt;&lt;P&gt;1. ENQUEUE_&amp;lt;Lockobject name&amp;gt;. to insert the object in a queue. &lt;/P&gt;&lt;P&gt;2. DEQUEUE_&amp;lt;Lockobject name&amp;gt;. To remove the object is being queued through above FM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use these function module in your program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:vbak.&lt;/P&gt;&lt;P&gt;call function 'ENQUEUE_EZLOCK3'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;mode_vbak = 'E'&lt;/P&gt;&lt;P&gt;mandt = sy-mandt&lt;/P&gt;&lt;P&gt;vbeln = vbak-vbeln&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;X_VBELN = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;_SCOPE = '2'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;_WAIT = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;_COLLECT = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FOREIGN_LOCK = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SYSTEM_FAILURE = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OTHERS = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Anji Reddy Vangala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 11:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object/m-p/2287021#M498535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T11:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Lock Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object/m-p/2287022#M498536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. But i know this. we can use in this way.&lt;/P&gt;&lt;P&gt;But the requirment is in dynamic programming i m passing table name on selection screen. so i have to find out lock object name by programming for that particular table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 12:02:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object/m-p/2287022#M498536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T12:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Lock Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object/m-p/2287023#M498537</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;if u create a lock object system will generate enqueue_&amp;lt;lock object&amp;gt; and dequeue_&amp;lt;lock object&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goto abapdocu tcode.&lt;/P&gt;&lt;P&gt;select ABAP Database Access -&amp;gt;SAP Transaction Concept -&amp;gt;Setting and Releasing Locks .&lt;/P&gt;&lt;P&gt;see the that program to lock and unlock.&lt;/P&gt;&lt;P&gt;goto se11 and see the lock object "EDEMOFLHT"(this is related to the above program).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 12:04:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object/m-p/2287023#M498537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T12:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Lock Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object/m-p/2287024#M498538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi bharat..&lt;/P&gt;&lt;P&gt;this much i know. My requirment is different buddy. just read carefully after that if u can do ..then do the need full.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 12:06:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object/m-p/2287024#M498538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T12:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Lock Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object/m-p/2287025#M498539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Azad,&lt;/P&gt;&lt;P&gt;   am also having this same challenge... just wanted to know if you found the answer. If yes can you please share Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Basha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 22:14:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object/m-p/2287025#M498539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T22:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Lock Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object/m-p/2287026#M498540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can query table DD25L with table name and it returns the Lock object name&lt;/P&gt;&lt;P&gt;concatenate lock object name with 'ENQUEUE_' in the beginning and then use call function &lt;/P&gt;&lt;P&gt;but how do we get the exporting parameters is the question&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P&gt;table name : ztest&lt;/P&gt;&lt;P&gt;lock object name : eztest_lock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;query table DD25L with roottab = 'ztest'&lt;/P&gt;&lt;P&gt;this will return 'EZTEST_LOCK' in field viewname&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now concatenate 'ENQUEUE_'  and "EXTEST_LOCK' into v_lock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function v_lock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but how to do this with exporting parameters&lt;/P&gt;&lt;P&gt;am working on this.. ill let you know if i get an answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Basha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 22:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object/m-p/2287026#M498540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T22:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Lock Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object/m-p/2287027#M498541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can use either of this 2 function modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ENQUEUE_E_TABLE - Pass the table name and the fields based on which table should be locked in TABNAME and VARKEY parameters respectively. If you want to lock the table based on more than one key field, concatenate the key and pass it to VARKEY field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; e.g. to lock VBAP for client 100 order no 0000000001 and item 000010 pass &lt;/P&gt;&lt;P&gt;VBAP to TABNAME and&lt;/P&gt;&lt;P&gt;1000000000001000010 to VARKEY&lt;/P&gt;&lt;P&gt;also MODE_RSTABLE should be given E or S or X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. VIEW_ENQUEUE - this will also lock the table which you pass in VIEW_NAME parameter. i didnot get much success on this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds&lt;/P&gt;&lt;P&gt;Basha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 20:23:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object/m-p/2287027#M498541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T20:23:15Z</dc:date>
    </item>
  </channel>
</rss>

