<?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 objects.... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/6705326#M1453014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking into the import parameters, the lock objects can only lock specific records, not the whole table. I want to  prevent insertion of records while the program is selecting from the table. Is there a way to do that? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joyie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Apr 2010 06:12:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-12T06:12:30Z</dc:date>
    <item>
      <title>lock objects....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/6705321#M1453009</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 a report where I am updating the pickup date and time for a shipment in LIKP using FM 'WS_DELIVERY_UPDATE_2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is , I want to check each delivery before updating LIKP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e if some user has opened a delivery in VL02n (lock object), then those I need to find those object before calling the FM 'WS_DELIVERY_UPDATE_2'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Mar 2010 12:12:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/6705321#M1453009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-06T12:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/6705322#M1453010</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;You dont need to worry about this, the FM has already taken care about it.&lt;/P&gt;&lt;P&gt;Just execute this FM and in another Session open delivery document you will get the Message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in SE37 Just search for ENQUE key word and you will find this FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;574       CALL FUNCTION 'ENQUEUE_EVVBLKE' "  At line number 574
               EXPORTING
                    vbeln          = p_vbak-vbeln
               EXCEPTIONS
                    foreign_lock   = 1 " Means P_VBAK-VBELN is locked by another User
                    system_failure = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Mar 2010 12:25:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/6705322#M1453010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-06T12:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/6705323#M1453011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you are right , the FM already takes care of this. But my requirement is to find out the delivery's which are locked before I update the table and I want to avoid the error msg which is displayed when the object is locked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how it can be achieved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;Quresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Mar 2010 12:29:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/6705323#M1453011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-06T12:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/6705324#M1453012</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;Then use this FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put a break point at the FM &lt;STRONG&gt;'ENQUEUE_EVVBLKE'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and open a billing document in  VL02N and in other session execute the Same&lt;/P&gt;&lt;P&gt;document number with the FM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'ENQUEUE_EVVBLKE'
exporting
  vbeln          = if_delivery " Your Delivery Document Number
exceptions
  foreign_lock   = 2 " Means already locked by other User
the user ID is given back to you in "SY-MSGV
" and Give your Own message
  system_failure = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Mar 2010 12:32:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/6705324#M1453012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-06T12:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/6705325#M1453013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ram,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Mar 2010 12:39:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/6705325#M1453013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-06T12:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: lock objects....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/6705326#M1453014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking into the import parameters, the lock objects can only lock specific records, not the whole table. I want to  prevent insertion of records while the program is selecting from the table. Is there a way to do that? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joyie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 06:12:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/6705326#M1453014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-12T06:12:30Z</dc:date>
    </item>
  </channel>
</rss>

