<?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: BAPI_SALESORDER_CHANGE returns the error message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-returns-the-error-message/m-p/7393355#M1545789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sales Order change and create updates &lt;STRONG&gt;MANY&lt;/STRONG&gt; database tables.  The update process is therefore understandably a bit lengthy.  When I worked with SD, it was not uncommon to create a sales order and have it show locked for 2-3 minutes immediately after SAVE press.  I would suggest that you either build in some delay before you attempt a change or (better yet) do your changes to sales orders created (should be able to capture the doc number in the return) in a later, subsequent process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Oct 2010 11:59:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-18T11:59:20Z</dc:date>
    <item>
      <title>BAPI_SALESORDER_CHANGE returns the error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-returns-the-error-message/m-p/7393354#M1545788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have got some strange problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my program there is IDOC_INPUT_ORDERS which create SO. After that I  have sales order number and it is OK.&lt;/P&gt;&lt;P&gt;In same program I want to change created SO so I wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET UPDATE TASK LOCAL.&lt;/P&gt;&lt;P&gt;BAPI_SALESORDER_CHANGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the BAPI return error message that SO number is now processed by WF-BATCH user ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the SO created by IDOC is not set as IN UPDATE TASK so what is wrong ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really thanks.&lt;/P&gt;&lt;P&gt;Daniel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 11:52:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-returns-the-error-message/m-p/7393354#M1545788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-18T11:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE returns the error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-returns-the-error-message/m-p/7393355#M1545789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sales Order change and create updates &lt;STRONG&gt;MANY&lt;/STRONG&gt; database tables.  The update process is therefore understandably a bit lengthy.  When I worked with SD, it was not uncommon to create a sales order and have it show locked for 2-3 minutes immediately after SAVE press.  I would suggest that you either build in some delay before you attempt a change or (better yet) do your changes to sales orders created (should be able to capture the doc number in the return) in a later, subsequent process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 11:59:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-returns-the-error-message/m-p/7393355#M1545789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-18T11:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE returns the error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-returns-the-error-message/m-p/7393356#M1545790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, the SO which is created from IDOC is processed in dialog. I am waiting for him like you said ~ 2 minutes. It is not a asynchronous process I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthemore when I put some breakpoint in BAPI_SALESORDER_CHANGE I can see created SO in VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whether my thinking is correct that it could be a reason of COMMIT WORK (asynchronous commit) command in IDOC_INPUT_ORDERS fm ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe BAPI_TRANSACTION_COMMIT will help after IDOC 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>Mon, 18 Oct 2010 12:10:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-returns-the-error-message/m-p/7393356#M1545790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-18T12:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE returns the error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-returns-the-error-message/m-p/7393357#M1545791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WF-BATCH is a workflow system user which isprocessing it. Do you have any workflow getting triggered in SAP as soon as a SO is created. If yes try to change the sales order via tcode look at what it says.  Second option aspointed out earlier make lopp wait step of 3-4mins if that is the case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 12:13:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-returns-the-error-message/m-p/7393357#M1545791</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2010-10-18T12:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE returns the error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-returns-the-error-message/m-p/7393358#M1545792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have made the next tests and it seems to that WF-BATCH user is blocking the SO.&lt;/P&gt;&lt;P&gt;After the 3-4 minutes waiting at breakpoint, WF-BATCH release the SO and everything was fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because during creating SO also workflow is triggered the question is how to make some kind of COMMIT WORK and WAIT after IDOC_INPUT_ORDERS is performed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any chance ? Or check somehow that workflow process is finished/closed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW. Thank you guys for the localisation of my problem ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 13:09:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-returns-the-error-message/m-p/7393358#M1545792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-18T13:09:38Z</dc:date>
    </item>
  </channel>
</rss>

