<?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: why to create a lock object when there is a FM ENQUEUE_E_TABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-to-create-a-lock-object-when-there-is-a-fm-enqueue-e-table/m-p/10394635#M1842058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Willi&lt;/P&gt;&lt;P&gt;The FM which generated by Indivadul lock object can lock table at line item level(you can lock some lines, other lines are not locked.), but that FM only can lock table at table level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Archer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jul 2014 02:16:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-07-08T02:16:27Z</dc:date>
    <item>
      <title>why to create a lock object when there is a FM ENQUEUE_E_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-to-create-a-lock-object-when-there-is-a-fm-enqueue-e-table/m-p/10394633#M1842056</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;Need insight on why to create a lock object when there is already available Fm ENQUEUE_E_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand there should be a very good reason for that. Please let me know you comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Willi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 15:56:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-to-create-a-lock-object-when-there-is-a-fm-enqueue-e-table/m-p/10394633#M1842056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-07T15:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: why to create a lock object when there is a FM ENQUEUE_E_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-to-create-a-lock-object-when-there-is-a-fm-enqueue-e-table/m-p/10394634#M1842057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Willi Robert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While you can use that FM to lock any table it has his limitations, with a "lock object" you can: &lt;/P&gt;&lt;P&gt;- specify the fields and secondary tables(with fields) to customize it&lt;/P&gt;&lt;P&gt;- select the type of lock &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;im sure there are more reasons... i dont wanna sound rude but please google it before posting, its a rule here and there is a lot of documentation out there... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/41/7af4c8a79e11d1950f0000e82de14a/content.htm" style="font-size: 10pt;" title="http://help.sap.com/saphelp_nw70/helpdata/en/41/7af4c8a79e11d1950f0000e82de14a/content.htm"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/41/7af4c8a79e11d1950f0000e82de14a/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will find the lock object &lt;SPAN style="color: #45157e; font-family: Arial, Helvetica, 'Microsoft YaHei', Meiryo, 'Malgun Gothic', sans-serif; font-weight: bold; background-color: #eeeeee;"&gt;EDEMOFLHT&lt;/SPAN&gt; with a secondary table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;MC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 22:01:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-to-create-a-lock-object-when-there-is-a-fm-enqueue-e-table/m-p/10394634#M1842057</guid>
      <dc:creator>former_member197622</dc:creator>
      <dc:date>2014-07-07T22:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: why to create a lock object when there is a FM ENQUEUE_E_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-to-create-a-lock-object-when-there-is-a-fm-enqueue-e-table/m-p/10394635#M1842058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Willi&lt;/P&gt;&lt;P&gt;The FM which generated by Indivadul lock object can lock table at line item level(you can lock some lines, other lines are not locked.), but that FM only can lock table at table level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Archer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 02:16:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-to-create-a-lock-object-when-there-is-a-fm-enqueue-e-table/m-p/10394635#M1842058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-08T02:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: why to create a lock object when there is a FM ENQUEUE_E_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-to-create-a-lock-object-when-there-is-a-fm-enqueue-e-table/m-p/10394636#M1842059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Archer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even using the FM ENQUEUE_E_TABLE we can lock the table at the key level using the parameter RSTABLE-VARKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 06:00:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-to-create-a-lock-object-when-there-is-a-fm-enqueue-e-table/m-p/10394636#M1842059</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2014-07-08T06:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: why to create a lock object when there is a FM ENQUEUE_E_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-to-create-a-lock-object-when-there-is-a-fm-enqueue-e-table/m-p/10394637#M1842060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's true we can lock objects a row level with standard FM as well, and thats why I have raises this question we can have same functinality with both the things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One reason I understand that we can specificaly decide on which key field we want to lock or a combination as well but is this the reason they created an object ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the other reason I know is if you use lock object it checks only if table is locked for the same locked object, but is we use standard FM even if you have opened it with SM30 it will give a runtime after waiting for a while.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide you insight.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 16:07:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-to-create-a-lock-object-when-there-is-a-fm-enqueue-e-table/m-p/10394637#M1842060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-08T16:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: why to create a lock object when there is a FM ENQUEUE_E_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-to-create-a-lock-object-when-there-is-a-fm-enqueue-e-table/m-p/10394638#M1842061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To my knowledge,whether it is ENQUEUE_E_TABLE or Custom Lock Object a table can be locked at the record level only using Primary keys.But through Custom Lock Object we can extend the lock even to Foreign keys related to secondary tables.Let's see what experts get to say on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 05:54:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-to-create-a-lock-object-when-there-is-a-fm-enqueue-e-table/m-p/10394638#M1842061</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2014-07-09T05:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: why to create a lock object when there is a FM ENQUEUE_E_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-to-create-a-lock-object-when-there-is-a-fm-enqueue-e-table/m-p/10394639#M1842062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To lock any transaction or table or item level while using same to other user. the purpose of this function module to lock table on key based.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 06:35:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-to-create-a-lock-object-when-there-is-a-fm-enqueue-e-table/m-p/10394639#M1842062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-09T06:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: why to create a lock object when there is a FM ENQUEUE_E_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-to-create-a-lock-object-when-there-is-a-fm-enqueue-e-table/m-p/10394640#M1842063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not much satisfactory answer yet , I was waiting for some expert to comment on , will wait for one more day and the close the thread.&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, 10 Jul 2014 18:43:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-to-create-a-lock-object-when-there-is-a-fm-enqueue-e-table/m-p/10394640#M1842063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-10T18:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: why to create a lock object when there is a FM ENQUEUE_E_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-to-create-a-lock-object-when-there-is-a-fm-enqueue-e-table/m-p/10394641#M1842064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;To my knowledge,whether it is ENQUEUE_E_TABLE or Custom Lock Object a table &lt;STRONG style="text-decoration: underline;"&gt;can be locked&lt;/STRONG&gt; at the record level &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;only&lt;/STRONG&gt;&lt;/SPAN&gt; using Primary keys.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Not entirely correct &lt;SPAN __jive_emoticon_name="plain" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/906/images/emoticons/plain.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The golden rule with SAP locking mechanism is based on "logical" locks and not "physical" locks. In this mechanism the most important role is played by the lock argument (SEQTA-GARG), the lock requests are checked against each other using this lock argument.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since key fields help you to identify a unique record of a table, you can use them to build the lock argument. I can also create a UUID, GUID, hash key et al. using the key fields and pass it as a lock argument.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact there is no correlation between the table &amp;amp; the lock argument, you can give any arbitrary argument, the lock module will still be able to lock it (unless there is a lock collision, of course &lt;SPAN __jive_emoticon_name="silly" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/906/images/emoticons/silly.gif"&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now back to the OP's question. If you check the lock object E_TABLE, you will find that TABNAME &amp;amp; VARKEY are passed on as the lock argument. So you have to manually build the VARKEY and pass it on. But if you use more specific lock objects (e.g., ESFLIGHT), you don't have to think about the argument. The lock object FMs do it automatically for you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if i could convince the OP of "why" he should not use the generic E_TABLE lock object. IMHO there is no answer to the "why", if it is used for simple locking mechanism then E_TABLE is sufficient. But if you wanna use it for more fancy stuff (e.g., secondary table) in that case you have to use the specific lock objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would always use a more specific lock object if available, then using the generic E_TABLE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 20:05:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-to-create-a-lock-object-when-there-is-a-fm-enqueue-e-table/m-p/10394641#M1842064</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2014-07-10T20:05:28Z</dc:date>
    </item>
  </channel>
</rss>

