<?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: executing BAPI_ALM_ORDER_MAINTAIN twice in a row in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-bapi-alm-order-maintain-twice-in-a-row/m-p/3243737#M774232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply but unfortunately it is still failing to create the order the second time round!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jan 2008 16:28:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-10T16:28:56Z</dc:date>
    <item>
      <title>executing BAPI_ALM_ORDER_MAINTAIN twice in a row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-bapi-alm-order-maintain-twice-in-a-row/m-p/3243735#M774230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using function module BAPI_ALM_ORDER_MAINTAIN to create an order which all works fine but if i execute the function module twice in the same program it fails to create an order the second time. Something to do with generating the number. I have inserted a 'commit work and wait' after the bapi call as well as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;   exporting&lt;/P&gt;&lt;P&gt;      wait  = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still the second call fails. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If after executing it the first time i leave the program and SE80 then return and submit it again it allows me to create another order but then stops for the second etc etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone got any ideas how i can fix this?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 16:12:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-bapi-alm-order-maintain-twice-in-a-row/m-p/3243735#M774230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T16:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: executing BAPI_ALM_ORDER_MAINTAIN twice in a row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-bapi-alm-order-maintain-twice-in-a-row/m-p/3243736#M774231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After calling 'BAPI_TRANSACTION_COMMIT', &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call one more function module to release lock on that transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION &lt;STRONG&gt;'DEQUEUE_ALL'&lt;/STRONG&gt;. " Releases locked objects&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 16:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-bapi-alm-order-maintain-twice-in-a-row/m-p/3243736#M774231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T16:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: executing BAPI_ALM_ORDER_MAINTAIN twice in a row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-bapi-alm-order-maintain-twice-in-a-row/m-p/3243737#M774232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply but unfortunately it is still failing to create the order the second time round!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 16:28:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-bapi-alm-order-maintain-twice-in-a-row/m-p/3243737#M774232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T16:28:56Z</dc:date>
    </item>
  </channel>
</rss>

