<?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: Enqueue and Dequeue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110670#M106086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you have seen in this entire discussion, you are holding the lock, but for RFC calls, SAP releases the lock automatically, and I don't think there is any way to bypass that. This is true even within R/3. Do this small experiment. Open a program in change mode using SE38. In another session, run the transaction SM12 and you will find that you are holding a lock for that program in the other session. Now, you log out of the system abruptly by entering "/nex" in the command area. Log back in and go to SM12, your lock will no longer be there. This is exactly what is happening with your RFC call. If you login, do a transaction, you are actually logging out which kills all the locks you are holding. Instead, if you have a mechanism where you keep the RFC connectin open(not recommended though), and you can make multiple calls to SAP within that connection, then you can keep your locks. I am not sure how you can achieve that, but I have seen some third party applications that can keep one connection open all the time and do their work.&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;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2005 17:35:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-18T17:35:37Z</dc:date>
    <item>
      <title>Lock Object: Enqueue and Dequeue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110654#M106070</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;Im using VB.Net, SAP .Net to do data entry, updates to&lt;/P&gt;&lt;P&gt;SAP R/3.&lt;/P&gt;&lt;P&gt;Now, I need to lock the data during user changes on&lt;/P&gt;&lt;P&gt;particular documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I done is I created a lock object in SE11. Then&lt;/P&gt;&lt;P&gt;it produce 2 functions which are the ENQUEUE and&lt;/P&gt;&lt;P&gt;DEQUEUE.&lt;/P&gt;&lt;P&gt;Since the data reading from Non-SAP, I check for Allow&lt;/P&gt;&lt;P&gt;RFC and my lock mode is Exclusive and Cumulative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that, I also created a remote-enabled RFCs to be&lt;/P&gt;&lt;P&gt;call from VB.Net. These RFCs is calling the ENQUEUE&lt;/P&gt;&lt;P&gt;and DEQUEUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I tested in SAP itself, the locking data is&lt;/P&gt;&lt;P&gt;working perfectly. I checked in SM12, it does shows&lt;/P&gt;&lt;P&gt;the locking entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I try in VB.Net and call the function&lt;/P&gt;&lt;P&gt;modules, it does not shows any entry in SM12. It is&lt;/P&gt;&lt;P&gt;like nothing happen at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that, I do little test. Firstly I lock the data&lt;/P&gt;&lt;P&gt;from SAP then I run VB.Net, and it does shows the&lt;/P&gt;&lt;P&gt;message who is currently locking the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody could help me on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 02:37:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110654#M106070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T02:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object: Enqueue and Dequeue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110655#M106071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the following extract from documentation. Check if your lock object definition is satisfying all of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Reference Fields for RFC-Enabled Lock Objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The type of an RFC-enabled function module must be completely defined. The parameters of the generated function module therefore have the following reference fields for RFC-enabled lock objects:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Parameters               Reference fields
X_&amp;lt;field name&amp;gt;           DDENQ_LIKE-XPARFLAG
_WAIT                    DDENQ_LIKE-WAITFLAG
_SCOPE                   DDENQ_LIKE-SCOPE
_SYNCHRON                DDENQ_LIKE-SYNCHRON
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the link to the documentation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/4f/991f82446d11d189700000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/4f/991f82446d11d189700000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 02:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110655#M106071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T02:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object: Enqueue and Dequeue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110656#M106072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yup, I did try the parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'ENQUEUE_EZCOL05'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     ZBUKRS               = '1000'&lt;/P&gt;&lt;P&gt;     ZCENT                = code1&lt;/P&gt;&lt;P&gt;     ZCTR                 = code2&lt;/P&gt;&lt;P&gt;     X_ZBUKRS             = 'X'&lt;/P&gt;&lt;P&gt;     X_ZCENT              = 'X'&lt;/P&gt;&lt;P&gt;     X_ZCTR               = 'X'&lt;/P&gt;&lt;P&gt;     _SCOPE               = '2'&lt;/P&gt;&lt;P&gt;     _WAIT                = 'X'&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;        foreign_lock   = 2&lt;/P&gt;&lt;P&gt;        system_failure = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does not have any effects on the locking data. I dont know what happen. There is no entry in SM12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 03:02:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110656#M106072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T03:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object: Enqueue and Dequeue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110657#M106073</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;One RFC means one transaction. The moment one RFC call is over it will release the lock. You need to code your ENQUEUE/ DEQUEUE in the same function ( RFC call ) which is doing the data entry and not have a separate RFC FM for it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 03:03:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110657#M106073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T03:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object: Enqueue and Dequeue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110658#M106074</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;Could you post the RFC that you mentioned by one transaction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My scenario: User is changing data. Meaning to say, the user would select particular Document Number and that moment , I would call the RFC ENQUEUE. Upon saving the data, I would release the lock and call the DEQUEUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any possiblity to do that? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 03:25:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110658#M106074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T03:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object: Enqueue and Dequeue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110659#M106075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP Lock concept is related to Logical Unit Of work -&amp;gt; and this is called transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you call an RFC it is similar to one dialog transaction .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you call a RFC for locking ( separate FM ) , the lock will be released when this RFC is over. Next when you call the RFC for changing data it will be another transaction and the lock may not be there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Between what document are you trying to change and which Function are you calling to achieve this . If its a custom FM you can put your ENQUEUE / DEQUEUE FMs in the same custom FM and call only one RFC to change the document .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 03:35:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110659#M106075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T03:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object: Enqueue and Dequeue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110660#M106076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would do it like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call rfc document list to present the user with a list of documents.(no locka required here). &lt;/P&gt;&lt;P&gt;User selects the document to be updated.(no lock required here)&lt;/P&gt;&lt;P&gt;Get the document details using rfc get detail.no lock required. keep a copy of this data.&lt;/P&gt;&lt;P&gt;Give the user VB.net gui to modify the document. Prepare the change data and here is where I need a rfc that does the following&lt;/P&gt;&lt;P&gt;lock the document data in R/3,&lt;/P&gt;&lt;P&gt;do another read of the document. compare it with the previously stored information to check if the document has changed in R/3. If changed, error handling. If not, lock the document by calling enqueue, apply the changes in R/3 and then dequeue.&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;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 03:36:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110660#M106076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T03:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object: Enqueue and Dequeue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110661#M106077</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 have customized module doing data entry and updates. So, when it comes to updating Document Number, i need to lock it so that other user cannot access that document number at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 04:08:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110661#M106077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T04:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object: Enqueue and Dequeue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110662#M106078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to write a custom RFC that has the following 3 calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call to enqueue&lt;/P&gt;&lt;P&gt;call to change document&lt;/P&gt;&lt;P&gt;call to dequeue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 04:15:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110662#M106078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T04:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object: Enqueue and Dequeue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110663#M106079</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;The Module that you are calling for data update should have the call to ENQUEUE / DEQUEUE functions in addition to the data update . That will be sufficient to lock the number when you are updating that . In any case lock should not remain for a long period as then user will select one entry and that will be locked for all other users . So lock should be triggered only when user presses SAVE ( Commit ) button .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 04:26:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110663#M106079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T04:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object: Enqueue and Dequeue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110664#M106080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I have the 3 FMs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call to enqueue&lt;/P&gt;&lt;P&gt;call to change document&lt;/P&gt;&lt;P&gt;call to dequeue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is from VB.Net (NON-SAP) cannot lock the data. There is no entry in SM12 when I call the enqueue fm from VB.Net.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the Lock Object, I check for Allow RFC and Lock Mode = Exclusive, Cumulative.&lt;/P&gt;&lt;P&gt;and for the parameters, I put it below information as instructed in the SAP Library - Lock Objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    X_&amp;lt;field_name&amp;gt;&lt;/P&gt;&lt;P&gt;    _WAIT&lt;/P&gt;&lt;P&gt;    _SCOPE&lt;/P&gt;&lt;P&gt;    _SYNCHRON&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know which part I miss. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 04:55:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110664#M106080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T04:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object: Enqueue and Dequeue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110665#M106081</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 guess you are getting it worng.&lt;/P&gt;&lt;P&gt;You have to write a wrapper RFC  function -&lt;/P&gt;&lt;P&gt;  which will have the three ( further ) calls -&lt;/P&gt;&lt;P&gt;   call to enqueue&lt;/P&gt;&lt;P&gt;   call to change document&lt;/P&gt;&lt;P&gt;   call to dequeue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From VB you should only call the wrapper RFC FM ( and not the above indivdual FMs ) when user presses SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 05:03:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110665#M106081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T05:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object: Enqueue and Dequeue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110666#M106082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try your solution. But before that there is 1 question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why when I run the ENQUEUE from NON-SAP it does not lock the data? By logic, it should lock the data and there is entry in the SM12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what you're suggesting is that NON-SAP need to have wrapper function in order the Lock object to be working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 05:13:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110666#M106082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T05:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object: Enqueue and Dequeue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110667#M106083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Why when I run the ENQUEUE from NON-SAP it does not lock the data&amp;lt;/b&amp;gt;? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the time you go and check in SM12 , the RFC call has ended ( i.e. the transaction has ended ) . This releases the lock and your entry from SM12 is gone.  If you really can check SM12 while your RFC is running you will see the entry . But I guess the RFC is too fast . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you read the first post I mentioned this . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( Dont forget to reward if answers were helpful )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 05:18:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110667#M106083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T05:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object: Enqueue and Dequeue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110668#M106084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get what you mean by 'too fast'. &lt;/P&gt;&lt;P&gt;I did a little test. I put:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; WAIT UP TO 1 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to see whether it really locks the data from NON-SAP. Yup, it locks the data! &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why I kept on saying it does not lock the data from NON-SAP because when I do testing in SAP itself it shows in SM12. There is an entry. Thats why my thinking is that it would be the same logic for NON-SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another question:&lt;/P&gt;&lt;P&gt;1.  Can a user hold/lock the data?? I dont want it automatically release the lock. Unless I call the DEQUEUE fm then I would release the lock.&lt;/P&gt;&lt;P&gt;Is there any possibilities to do? Or do I have to change the Lock Mode??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 06:48:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110668#M106084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T06:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object: Enqueue and Dequeue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110669#M106085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can a user hold/lock the data?? I dont want it automatically release the lock. Unless I call the DEQUEUE fm then I would release the lock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any possibilities to do? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 08:32:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110669#M106085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T08:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object: Enqueue and Dequeue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110670#M106086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you have seen in this entire discussion, you are holding the lock, but for RFC calls, SAP releases the lock automatically, and I don't think there is any way to bypass that. This is true even within R/3. Do this small experiment. Open a program in change mode using SE38. In another session, run the transaction SM12 and you will find that you are holding a lock for that program in the other session. Now, you log out of the system abruptly by entering "/nex" in the command area. Log back in and go to SM12, your lock will no longer be there. This is exactly what is happening with your RFC call. If you login, do a transaction, you are actually logging out which kills all the locks you are holding. Instead, if you have a mechanism where you keep the RFC connectin open(not recommended though), and you can make multiple calls to SAP within that connection, then you can keep your locks. I am not sure how you can achieve that, but I have seen some third party applications that can keep one connection open all the time and do their work.&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;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 17:35:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-enqueue-and-dequeue/m-p/1110670#M106086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-18T17:35:37Z</dc:date>
    </item>
  </channel>
</rss>

