<?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 BAPI_SALESORDER_CHANGE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change/m-p/2152133#M454390</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;Can I do an update and insert at same time using BAPI_SALESORDER_CHANGE. Becoz when I update a qty on a line item it is getting updated properly, when I try to insert a new line item it is updated properly.&lt;/P&gt;&lt;P&gt;But When do both insert and update at a time it goes to upadate termination saying SQL_ARRAY_DUPEC_REC_INSERTED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2007 21:39:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-04T21:39:19Z</dc:date>
    <item>
      <title>BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change/m-p/2152133#M454390</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;Can I do an update and insert at same time using BAPI_SALESORDER_CHANGE. Becoz when I update a qty on a line item it is getting updated properly, when I try to insert a new line item it is updated properly.&lt;/P&gt;&lt;P&gt;But When do both insert and update at a time it goes to upadate termination saying SQL_ARRAY_DUPEC_REC_INSERTED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 21:39:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change/m-p/2152133#M454390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T21:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change/m-p/2152134#M454391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you inserting a new line that is not there currently on the sales order? I think you are not setting the line number of this new line correctly. You have to get the next available line number and use that for your new insert line. System is using existing line number and when it is trying to insert a line that already exists, you are getting this dump.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 21:44:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change/m-p/2152134#M454391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T21:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change/m-p/2152135#M454392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I know you should be using another BAPI: BAPI_SALESORDER_CREATEFROMDAT2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally these rules apply:&lt;/P&gt;&lt;P&gt;1. BAPI_SALESORDER_CREATEFROMDAT2 is used to create new orders or add line items to existing orders.&lt;/P&gt;&lt;P&gt;2. BAPI_SALESORDER_CHANGE is used to make amendments to existing orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 06:52:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change/m-p/2152135#M454392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T06:52:23Z</dc:date>
    </item>
  </channel>
</rss>

