<?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 question on lock in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock/m-p/6565784#M1432014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiii &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an enhancement that have been implement at the end of a creation of an inbound deliveries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is as follow &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the creation of the inbound deliveries after the commit of the delviery, I call a FM BAPI_BATCH_CREATE to create batch etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue i am having is that suppose i am creating 2 delivery &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the first delivery the FM fail BAPI_BATCH_CREATE and this is cause by an collision in enqueue EMMARCS.  I saw that in ST05&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the second delivery this work fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to correct the error by &lt;/P&gt;&lt;P&gt;by checking before the calling of the FM BAPI_BATCH_CREATE if enqueue EMMARCS fail i dequeue it.  But i think there may be regressing since the program may be updating something in MARCS and i am throwing it out because of My dequeue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jan 2010 07:11:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-27T07:11:20Z</dc:date>
    <item>
      <title>question on lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock/m-p/6565784#M1432014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiii &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an enhancement that have been implement at the end of a creation of an inbound deliveries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is as follow &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the creation of the inbound deliveries after the commit of the delviery, I call a FM BAPI_BATCH_CREATE to create batch etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue i am having is that suppose i am creating 2 delivery &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the first delivery the FM fail BAPI_BATCH_CREATE and this is cause by an collision in enqueue EMMARCS.  I saw that in ST05&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the second delivery this work fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to correct the error by &lt;/P&gt;&lt;P&gt;by checking before the calling of the FM BAPI_BATCH_CREATE if enqueue EMMARCS fail i dequeue it.  But i think there may be regressing since the program may be updating something in MARCS and i am throwing it out because of My dequeue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 07:11:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock/m-p/6565784#M1432014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T07:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: question on lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock/m-p/6565785#M1432015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use BAPI_TRANSACTION_COMMIT after BAPI_BATCH_CREATE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 15:35:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock/m-p/6565785#M1432015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T15:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: question on lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock/m-p/6565786#M1432016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   When there are situations where parallel updates are happening, i usually do a wait to allow significant time for the first process to complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do 5 times.&lt;/P&gt;&lt;P&gt;  CALL &amp;lt;ENQUEUE&amp;gt;&lt;/P&gt;&lt;P&gt;  IF locked&lt;/P&gt;&lt;P&gt;    if cnt eq 5&lt;/P&gt;&lt;P&gt;      call &amp;lt;Dequeue&amp;gt;&lt;/P&gt;&lt;P&gt;      exit.&lt;/P&gt;&lt;P&gt;    else. &lt;/P&gt;&lt;P&gt;       cnt = cnt + 1.&lt;/P&gt;&lt;P&gt;       Continue.&lt;/P&gt;&lt;P&gt;    endif&lt;/P&gt;&lt;P&gt;  ELSE.&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;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;San&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 18:01:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock/m-p/6565786#M1432016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T18:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: question on lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock/m-p/6565787#M1432017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone plesae advise what it the purpose of WAIT in the ENQUEUE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am told that it wait until it's possible to enqueue the example a material it is true?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 13:31:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-lock/m-p/6565787#M1432017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-29T13:31:02Z</dc:date>
    </item>
  </channel>
</rss>

