<?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 Object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217055#M1007644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the FM ENQUEUE and DEQUEUE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz refer to the link below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eebf446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eebf446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jul 2008 06:08:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-14T06:08:58Z</dc:date>
    <item>
      <title>Lock Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217054#M1007643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all experts,&lt;/P&gt;&lt;P&gt;                       how can we used the 'Lock Object' concept&lt;/P&gt;&lt;P&gt;in my coding.please give me a sample code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance and reward also if it useful.&lt;/P&gt;&lt;P&gt;Regards :&lt;/P&gt;&lt;P&gt;Deepsama&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 06:00:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217054#M1007643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T06:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217055#M1007644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the FM ENQUEUE and DEQUEUE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz refer to the link below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eebf446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eebf446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 06:08:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217055#M1007644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T06:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217056#M1007645</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;A lock object is a virtual link of several SAP tables which is used to synchronize simultaneous access by two users to the same set of data ( SAP lock concept).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Locks are requested and released in the programming of online transactions by calling certain function modules which are automatically generated from the definition of the lock objects. These lock objects must be explicitly created in the ABAP Dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To set locks, you must perform the following steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You must define a lock object in the ABAP Dictionary. The name of the lock object should begin with E.&lt;/P&gt;&lt;P&gt;2. The function modules for requesting and releasing locks which are created automatically when the lock object is activated must be linked to the programming of the relevant online transactions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 06:11:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217056#M1007645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T06:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217057#M1007646</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;/P&gt;&lt;P&gt;Refer to the following link....&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Redards,&lt;/P&gt;&lt;P&gt;Jaya Vani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 06:11:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217057#M1007646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T06:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217058#M1007647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi deep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm" target="test_blank"&gt;http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sravanthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 06:12:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217058#M1007647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T06:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217059#M1007648</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;Lock object can be created from SE11 transaction.&lt;/P&gt;&lt;P&gt;The name of the object will start from E and not Z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you create the lock object SAP will create two FMs, one to lock ( Enqueue ) the table and other to unlock ( Dequeue ) the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For  more details about this concept check the below link :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/community &lt;B&gt;[original link is broken]&lt;/B&gt;&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;Regards,&lt;/P&gt;&lt;P&gt;Lalit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 06:15:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217059#M1007648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T06:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217060#M1007649</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;Example for Lock Objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When booking flights (see Flight Model) it is important to prevent flights from being overbooked. For this reason, you have to lock the particular flight as well as all the bookings existing for this flight during processing. You can do this with lock object E_BOOKING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The flights are recorded in table SFLIGHT and the bookings for the flights in table SBOOK. The two tables are linked with a foreign key. Lock object E_BOOKING must therefore contain table SFLIGHT as primary table and table SBOOK as further table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The lock argument of table SFLIGHT thus contains the fields MANDT, CARRID, CONNID, and FLDATE. The lock argument of table SBOOK thus contains the fields MANDT, CARRID, CONNID, FLDATE, BOOKID and CUSTOMID. &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;When the lock object is activated, the following function modules are generated from its definition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENQUEUE_ E_BOOKING (set locks) &lt;/P&gt;&lt;P&gt;ENQUEUE_ E_BOOKING (release locks)&lt;/P&gt;&lt;P&gt;These function modules can now be linked to ABAP programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following example shows how function module ENQUEUE_ E_BOOKING is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_E_BOOKING'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;mode_sflight         = ' E '&lt;/P&gt;&lt;P&gt;mode_sbook         = ' E '&lt;/P&gt;&lt;P&gt;mandt                  = sy-mandt&lt;/P&gt;&lt;P&gt;carrid                   = ' LH '&lt;/P&gt;&lt;P&gt;connid                 = 400&lt;/P&gt;&lt;P&gt;fldate                   = ' 19981129 '  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this call, flight LH 400 on Nov. 29,1998 is exclusively (lock mode E) locked in table SFLIGHT together with all the bookings entered in table SBOOK for this flight (since the initial value 0 is transferred for BOOKID and CUSTOMID). The lock is sent to the update program (_SCOPE = u20182u2019). If there is a lock conflict, another attempt is made to set the lock after a certain time (_WAIT = u2018Xu2019).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set locks can be removed by calling the function module DEQUEUE_E_BOOKING as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DEQUEUE_E_BOOKING'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;mode_sflight         = ' E '&lt;/P&gt;&lt;P&gt;mode_sbook         = ' E '&lt;/P&gt;&lt;P&gt;mandt                  = sy-mandt&lt;/P&gt;&lt;P&gt;carrid                   = ' LH '&lt;/P&gt;&lt;P&gt;connid                 = 400&lt;/P&gt;&lt;P&gt;fldate                   = ' 19981129 '  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The existing exclusive lock entries for flight LH 400 are deleted in table SFLIGHT and the bookings for this flight are deleted in table SBOOK. The request to delete the lock entries is passed on to the update program (_SCOPE = u20183u2019).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Das.............&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 06:17:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217060#M1007649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T06:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217061#M1007650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sapna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you to refer to these references:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[SAP HELP - Examples on Lock Objects|http://help.sap.com/saphelp_nw04/helpdata/en/af/22ab01dd0b11d1952000a0c929b3c3/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[SDN - Reference for sample code/examples on Lock Objects|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3685728"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[SDN - Reference for Lock Objects|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="310833"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[SDN - Reference for Lock Objects related examples|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="462035"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that's usefull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck &amp;amp; Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Harsh Dave&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Harsh Dave on Jul 14, 2008 11:59 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Harsh Dave on Jul 14, 2008 12:00 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Harsh Dave on Jul 14, 2008 12:00 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 06:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217061#M1007650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T06:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217062#M1007651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deep,&lt;/P&gt;&lt;P&gt;Check the following links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic concept:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Types and use:&lt;/P&gt;&lt;P&gt;[http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anirban Bhattacharjee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 06:39:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217062#M1007651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T06:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217063#M1007652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;  Check out this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/abaptips/content/view/376/62/" target="test_blank"&gt;http://www.erpgenie.com/abaptips/content/view/376/62/&lt;/A&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;Abhijeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 06:40:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217063#M1007652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T06:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217064#M1007653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;hope this example helps u,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZLOCKING                                                    *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zlocking                                .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : tab_emp TYPE TABLE OF zemp_51772,&lt;/P&gt;&lt;P&gt;       wa_emp TYPE zemp_51772.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_emp-emp_no = '102'.&lt;/P&gt;&lt;P&gt;wa_emp-emp_id = '157'.&lt;/P&gt;&lt;P&gt;wa_emp-emp_name = 'SIVA'.&lt;/P&gt;&lt;P&gt;wa_emp-emp_dept = 'SAP'.&lt;/P&gt;&lt;P&gt;APPEND wa_emp TO tab_emp.&lt;/P&gt;&lt;P&gt;CLEAR wa_emp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_emp-emp_no = '128'.&lt;/P&gt;&lt;P&gt;wa_emp-emp_id = '138'.&lt;/P&gt;&lt;P&gt;wa_emp-emp_name = 'RAMA'.&lt;/P&gt;&lt;P&gt;wa_emp-emp_dept = 'SAP'.&lt;/P&gt;&lt;P&gt;APPEND wa_emp TO tab_emp.&lt;/P&gt;&lt;P&gt;CLEAR wa_emp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_emp-emp_no = '133'.&lt;/P&gt;&lt;P&gt;wa_emp-emp_id = '121'.&lt;/P&gt;&lt;P&gt;wa_emp-emp_name = 'KRISHNA'.&lt;/P&gt;&lt;P&gt;wa_emp-emp_dept = 'SAP'.&lt;/P&gt;&lt;P&gt;APPEND wa_emp TO tab_emp.&lt;/P&gt;&lt;P&gt;CLEAR wa_emp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_E_TABLEE'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   mode_rstable         = 'X'&lt;/P&gt;&lt;P&gt;   tabname              = 'ZEMP_51772'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  varkey               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_TABNAME            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_VARKEY             = ' '&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;/UL&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;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;  INSERT zemp_51772 FROM TABLE tab_emp.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DEQUEUE_E_TABLEE'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   mode_rstable       = 'X'&lt;/P&gt;&lt;P&gt;   tabname            = 'ZEMP_51772'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VARKEY             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_TABNAME          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_VARKEY           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _SCOPE             = '3'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _SYNCHRON          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _COLLECT           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;  WRITE:/ 'Unlocked the Table'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;please refer to the links below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eebf446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eebf446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/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;&lt;/P&gt;&lt;P&gt;With thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Sravani yendru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 07:01:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217064#M1007653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T07:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217065#M1007654</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;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;&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 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 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 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:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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;&lt;/P&gt;&lt;P&gt;When you create a lock object System automatically creat two function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ENQUEUE_. to insert the object in a queue.&lt;/P&gt;&lt;P&gt;2. DEQUEUE_. 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;For sample program check in transaction /ABAPDOCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 07:04:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object/m-p/4217065#M1007654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T07:04:43Z</dc:date>
    </item>
  </channel>
</rss>

