<?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/Unlock Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-unlock-table/m-p/4761504#M1116456</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 to access the entries from the table that you have locked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Nov 2008 14:11:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-01T14:11:05Z</dc:date>
    <item>
      <title>Lock/Unlock Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-unlock-table/m-p/4761498#M1116450</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 lock the custom table to do the updation from program,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created the lock objects for that table and i am using the enqueue and dequeue function modules in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now how i can test this locking happeing or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: "urgently" not permitted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is the code i am using in th program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'ENQUEUE_EZFAMEX_IBCP'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      mode_zfamex_ibcp       = 'E'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      client                 = sy-mandt&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       land1                  = p_land1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      x_land1                = 'X'&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;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;   &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;Regards&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 15:39:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-unlock-table/m-p/4761498#M1116450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T15:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Lock/Unlock Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-unlock-table/m-p/4761499#M1116451</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 to access the entries from the table that you have locked. &lt;/P&gt;&lt;P&gt;Find in SM12 whether the entries are locked then you can conform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 15:41:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-unlock-table/m-p/4761499#M1116451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T15:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Lock/Unlock Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-unlock-table/m-p/4761500#M1116452</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 found 'no lock entries found' in SM12.&lt;/P&gt;&lt;P&gt;what i did i put a break-point at the function module and i have checked in SM12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 15:47:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-unlock-table/m-p/4761500#M1116452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T15:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Lock/Unlock Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-unlock-table/m-p/4761501#M1116453</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;After using the function module ENQUEUE_E_TABLE.&lt;/P&gt;&lt;P&gt;Try to print whether the table is locked or not where you can conform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'ENQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt; exporting&lt;/P&gt;&lt;P&gt;   tabname              = '&amp;lt;tablename&amp;gt;'&lt;/P&gt;&lt;P&gt;   varkey               = varkey&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;&lt;/P&gt;&lt;P&gt;If sy-subrc = 0.&lt;/P&gt;&lt;P&gt;write: 'successfully locked the table'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write: 'not locked'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 16:05:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-unlock-table/m-p/4761501#M1116453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T16:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Lock/Unlock Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-unlock-table/m-p/4761502#M1116454</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;Thanks for you imeediate reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i did not see the Tabname parameter in my FM exporting parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am only getting keyfield parameter in my exporting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 17:17:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-unlock-table/m-p/4761502#M1116454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T17:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Lock/Unlock Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-unlock-table/m-p/4761503#M1116455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a difference you have to notice here if you use the FM CALL FUNCTION 'ENQUEUE_&lt;STRONG&gt;EZFAMEX_IBCP&lt;/STRONG&gt;'  " here you have to create the lock object and then call the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the FM (call function 'ENQUEUE_E_TABLE')i have used there is no need to create any lock object separately, directly you can lock the table itself with out creating lock object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you got my answer. Therefore call FM call function 'ENQUEUE_E_TABLE' and give your table in TABNAME it will automatically lock your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 17:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-unlock-table/m-p/4761503#M1116455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T17:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Lock/Unlock Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-unlock-table/m-p/4761504#M1116456</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 to access the entries from the table that you have locked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Nov 2008 14:11:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-unlock-table/m-p/4761504#M1116456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-01T14:11:05Z</dc:date>
    </item>
  </channel>
</rss>

