<?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/5916102#M1330670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use like this, then you are acquiring locks on all 3 rows which is not correct becuase you are stopping others to work with other records which differs only in VBLEN value. So, it is better to use all the key fields while acquring any locks on record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siva.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jul 2009 05:37:57 GMT</pubDate>
    <dc:creator>sivasatyaprasad_yerra</dc:creator>
    <dc:date>2009-07-16T05:37:57Z</dc:date>
    <item>
      <title>Lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/5916101#M1330669</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 created lock objects on a ztable using all its primary keys:&lt;/P&gt;&lt;P&gt;VKORG&lt;/P&gt;&lt;P&gt;VBELN&lt;/P&gt;&lt;P&gt;DATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to insert records into the ztable from internal table.&lt;/P&gt;&lt;P&gt;In the internal I will have one VKORG through out internal table &amp;amp; Date will be sy-datum always. But I will have different values of VBELN.&lt;/P&gt;&lt;P&gt;Table entries are For eg:&lt;/P&gt;&lt;P&gt;VKORG  VBELN   DATE&lt;/P&gt;&lt;P&gt;GR16            1      15.07.2009&lt;/P&gt;&lt;P&gt;GR16            2      15.07.2009&lt;/P&gt;&lt;P&gt;GR16            3      15.07.2009&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if it is fine to use  Lock object without VBELN field by commenting VBELN at the time of calling FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'ENQUEUE_/EUR/EOGR_PRINT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        mode_/eur/ogrt_print = l_c_e&lt;/P&gt;&lt;P&gt;        mandt                = sy-mandt&lt;/P&gt;&lt;P&gt;        vkorg                = 'GR16'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      vbeln                = &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        datum                = SY-DATUM&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;Or please let me know the best way to use this FM.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shraddha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 04:54:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/5916101#M1330669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T04:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/5916102#M1330670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use like this, then you are acquiring locks on all 3 rows which is not correct becuase you are stopping others to work with other records which differs only in VBLEN value. So, it is better to use all the key fields while acquring any locks on record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siva.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 05:37:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/5916102#M1330670</guid>
      <dc:creator>sivasatyaprasad_yerra</dc:creator>
      <dc:date>2009-07-16T05:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/5916103#M1330671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do so when I  have various entries in VBELN.&lt;/P&gt;&lt;P&gt;Even if I take all VBELN in a range and pass it to the FM, if a lock fails for one entry I will not be able to update whole internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to deal with these scenarios.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shraddha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 05:44:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/5916103#M1330671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T05:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/5916104#M1330672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case, you can actually use FM like whatever you have mentioned in first memo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 05:47:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/5916104#M1330672</guid>
      <dc:creator>sivasatyaprasad_yerra</dc:creator>
      <dc:date>2009-07-16T05:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/5916105#M1330673</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;But is this right to use like this. I mean I am just blocking other VBELN to be updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shraddha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 06:10:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/5916105#M1330673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T06:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/5916106#M1330674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you are not sure which entries you will be updating, then you need to lock all the entries. Or else you can call this FM individually for all the objects which will be part of your internal table. SO, that you will be blocking only those which you might update.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 06:13:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/5916106#M1330674</guid>
      <dc:creator>sivasatyaprasad_yerra</dc:creator>
      <dc:date>2009-07-16T06:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/5916107#M1330675</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 thing wht u did is right only use the lock object. with out giving vbeln field then it will lock other entries which is having same date and vkorg except vbeln.  udate table. what wrong ur getting their.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;rajesh varma.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 06:18:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/5916107#M1330675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T06:18:48Z</dc:date>
    </item>
  </channel>
</rss>

