<?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: commit work and enqueue and dequeue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-enqueue-and-dequeue/m-p/1929330#M385199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At (5) set _WAIT = 'X' for the ENQUEUE function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Feb 2007 15:43:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-14T15:43:58Z</dc:date>
    <item>
      <title>commit work and enqueue and dequeue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-enqueue-and-dequeue/m-p/1929327#M385196</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;Please help. &lt;/P&gt;&lt;P&gt;My program logic is as follows: &lt;/P&gt;&lt;P&gt;(1) enqueue pernr&lt;/P&gt;&lt;P&gt;(2) update infotypes for the pernr&lt;/P&gt;&lt;P&gt;(3) dequeue pernr  &lt;/P&gt;&lt;P&gt;(4) commit work and clear buffer&lt;/P&gt;&lt;P&gt;(5) enqueue pernr&lt;/P&gt;&lt;P&gt;(6) additional logic &lt;/P&gt;&lt;P&gt;(7) dequeue pernr&lt;/P&gt;&lt;P&gt;(8) commit work and clear buffer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to perform to commit due to certain design requirements.&lt;/P&gt;&lt;P&gt;When i am performing the ENQUEUE action again at (5), i will get an error that the pernr cannot be locked. This error is not consistent, sometimes it happens, sometimes it doesn't. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me on this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ming&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 15:33:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-enqueue-and-dequeue/m-p/1929327#M385196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T15:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: commit work and enqueue and dequeue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-enqueue-and-dequeue/m-p/1929328#M385197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try a COMMIT WORK AND WAIT. With a COMMIT WORK, the program will continue to be executed even though the commit may not of finished. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also try putting it into debug mode and check SM12 for the table locks to see if they have been removed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 15:34:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-enqueue-and-dequeue/m-p/1929328#M385197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T15:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: commit work and enqueue and dequeue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-enqueue-and-dequeue/m-p/1929329#M385198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A lot of times there is a delay in the lock being released and how fast the program is running.  This is what I typically do for the second enqeue.  Put a do loop around it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do x times.&lt;/P&gt;&lt;P&gt;  enqueue pernr.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;   exit.&lt;/P&gt;&lt;P&gt;  endif&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can experiment with the number of times.  Just set this so you don't end up in an endless loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris H.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 15:36:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-enqueue-and-dequeue/m-p/1929329#M385198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T15:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: commit work and enqueue and dequeue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-enqueue-and-dequeue/m-p/1929330#M385199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At (5) set _WAIT = 'X' for the ENQUEUE function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 15:43:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-and-enqueue-and-dequeue/m-p/1929330#M385199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T15:43:58Z</dc:date>
    </item>
  </channel>
</rss>

