<?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: Question on Lock Objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock-objects/m-p/1937888#M387730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;One way you can enforce the lock till the end is,&lt;/P&gt;&lt;P&gt;find out the LOCK object (ENQUEUE func. module) which is used to lock the production order,&lt;/P&gt;&lt;P&gt;Now before your BAPI call, again execute this func. module and release the lock after bapi is committed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Feb 2007 19:13:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-08T19:13:19Z</dc:date>
    <item>
      <title>Question on Lock Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock-objects/m-p/1937887#M387729</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 am in a custom transaction and am using a lock object to lock the production order I am working with. Further down in the logic, I am using a bapi to create a notification. After this call, the lock gets released. Is there any way in which I could ensure that the lock is not released even after the bapi executes?&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, 08 Feb 2007 18:56:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock-objects/m-p/1937887#M387729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T18:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Lock Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock-objects/m-p/1937888#M387730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;One way you can enforce the lock till the end is,&lt;/P&gt;&lt;P&gt;find out the LOCK object (ENQUEUE func. module) which is used to lock the production order,&lt;/P&gt;&lt;P&gt;Now before your BAPI call, again execute this func. module and release the lock after bapi is committed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 19:13:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock-objects/m-p/1937888#M387730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T19:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Lock Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock-objects/m-p/1937889#M387731</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;Does the BAPI you are calling doing a commit work ? Then it is the commit work that clears the lock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually BAPIs have a parameter in its interface with whihc you can tell whther to do a commit or not ....if the parameter is available then use this to tell the BAPI not to do a commit...and do the commit from your program later ....btw which BAPI are you using?&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, 08 Feb 2007 20:03:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock-objects/m-p/1937889#M387731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T20:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Lock Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock-objects/m-p/1937890#M387732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the bapi IQS4_CREATE_NOTIFICATION has a parameter I_COMMIT that commits work and I guess this is what is releasing the locks. However, I do need to commit work since I need the notification number returned by the bapi in downstream processing...&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, 08 Feb 2007 20:17:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock-objects/m-p/1937890#M387732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T20:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Lock Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock-objects/m-p/1937891#M387733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tessy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use transaction SM12 Lock entries to see lock entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Naming: The lock object name must start with EZ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the lock object for the required table using SE11. When you create the locl object, two function &lt;/P&gt;&lt;P&gt;modules will be created automatically. These two function modules named&lt;/P&gt;&lt;P&gt;ENQUEUE_&amp;lt;lock object name&amp;gt; and DEQUEUE_&amp;lt;lock object name&amp;gt;  can be called to lock or dislock &lt;/P&gt;&lt;P&gt;the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a lock object for table MSEG called EZTESTLOCK.&lt;/P&gt;&lt;P&gt;When you has created the lock object, the two function modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENQUEUE_EZTESTLOCK&lt;/P&gt;&lt;P&gt;DEQUEUE_EZTESTLOCK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will automatically be created&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;REPORT lockentries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:&lt;/P&gt;&lt;P&gt;  p_mbelnr  LIKE mseg-mblnr DEFAULT '4900008001',&lt;/P&gt;&lt;P&gt;  p_mjahr  LIKE mseg-mjahr DEFAULT '2001',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  p_zeile  LIKE mseg-zeile DEFAULT 1,&lt;/P&gt;&lt;P&gt;  p_lock   RADIOBUTTON GROUP lock,&lt;/P&gt;&lt;P&gt;  p_unlock RADIOBUTTON GROUP lock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF p_lock = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Lock item&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'ENQUEUE_EZTESTLOCK'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MODE_MSEG            = 'E'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MANDT                = SY-MANDT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    mblnr                = p_mbelnr&lt;/P&gt;&lt;P&gt;    mjahr                = p_mjahr&lt;/P&gt;&lt;P&gt;    zeile                = p_zeile&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_MBLNR              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_MJAHR              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_ZEILE              = ' '&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;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&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;              .&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSEIF p_unlock = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Unlock item&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'DEQUEUE_EZTESTLOCK'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MODE_MSEG       = 'E'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MANDT           = SY-MANDT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        mblnr           = p_mbelnr&lt;/P&gt;&lt;P&gt;        mjahr           = p_mjahr&lt;/P&gt;&lt;P&gt;        zeile           = p_zeile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_MBLNR         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_MJAHR         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_ZEILE         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _SCOPE          = '3'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _SYNCHRON       = ' '&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;         .&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sreeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 20:18:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock-objects/m-p/1937891#M387733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T20:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Lock Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock-objects/m-p/1937892#M387734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tessy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whatever value you pass to I_COMMIT, you will get the notification number back...however it won't be commited yet into the database tables... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can commit it from your program....Now if you are accessing details of the notification before doing commit, obviously that will fail....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So call the BAPI without commit and do your processing as your require..maybe you just need the notification number...so do your activities and then commit..&lt;/P&gt;&lt;P&gt;&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, 08 Feb 2007 20:37:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock-objects/m-p/1937892#M387734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T20:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Lock Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock-objects/m-p/1937893#M387735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, that did not work. I passed I_COMMIT as space to the bapi but still the lock is getting released..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tessy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 20:46:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock-objects/m-p/1937893#M387735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T20:46:16Z</dc:date>
    </item>
  </channel>
</rss>

