<?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: Locking the Custom table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-custom-table/m-p/3613644#M870596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
Hi,
To lock perticular record to modify in the program 
&lt;STRONG&gt;1&lt;/STRONG&gt;. Create Lock object by specifying all key fields.
&lt;STRONG&gt;2&lt;/STRONG&gt;. When u activate 2 FMs ENQUE_&amp;lt;lockobject&amp;gt;, DEQUE_&amp;lt;&amp;lt;lockobject&amp;gt; are created automatically. Call ENQUE* FM  in your program and pass exact record  which needs to be locked and modify the table record and finall call DEQUE* FM.

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Mar 2008 08:28:45 GMT</pubDate>
    <dc:creator>venkat_o</dc:creator>
    <dc:date>2008-03-31T08:28:45Z</dc:date>
    <item>
      <title>Locking the Custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-custom-table/m-p/3613641#M870593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a custom tble zcustom_tab. I am modifying the entries in the program .  Right now i am locking the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now instead of table locking, i want the record level locking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 06:44:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-custom-table/m-p/3613641#M870593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T06:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Locking the Custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-custom-table/m-p/3613642#M870594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try if this code helps.&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;Thanks&amp;amp;regards,&lt;/P&gt;&lt;P&gt;Sravani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 07:43:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-custom-table/m-p/3613642#M870594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T07:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Locking the Custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-custom-table/m-p/3613643#M870595</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;Create a lock object for the table in SE11. This will create 2 FMs one for locking and other for unlocking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;While calling the locking FM, pass all the primary fields of the table and this will lock only that record in the table.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if you dont pass the primary field values, the entire table would be locked.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information on lock objects, check the below link.&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;For creating lock objects, check the below link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eef3446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eef3446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. Rwd points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 07:59:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-custom-table/m-p/3613643#M870595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T07:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Locking the Custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-custom-table/m-p/3613644#M870596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
Hi,
To lock perticular record to modify in the program 
&lt;STRONG&gt;1&lt;/STRONG&gt;. Create Lock object by specifying all key fields.
&lt;STRONG&gt;2&lt;/STRONG&gt;. When u activate 2 FMs ENQUE_&amp;lt;lockobject&amp;gt;, DEQUE_&amp;lt;&amp;lt;lockobject&amp;gt; are created automatically. Call ENQUE* FM  in your program and pass exact record  which needs to be locked and modify the table record and finall call DEQUE* FM.

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 08:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-custom-table/m-p/3613644#M870596</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-03-31T08:28:45Z</dc:date>
    </item>
  </channel>
</rss>

