<?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 for SO change in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-so-change/m-p/4669789#M1098421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello every body,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Sales Order Update , I am using BAPI&lt;/P&gt;&lt;P&gt; " BAPI_SALESORDER_CHANGE ".&lt;/P&gt;&lt;P&gt; I could delete So line item and insert line item, successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for Updating SO line item,&lt;/P&gt;&lt;P&gt;Im also Updating Schedule lines,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is : while updating my line item with new quantity , it is adding the new quantity with existing quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reason behind this is ,  this BAPI is creating a new schedule line rather than updating a existing schedule line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Udate Flag for schedule line is "U",  i am passing schd_line number also for update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example :&lt;/P&gt;&lt;P&gt;If existing SO item Qty is 20.&lt;/P&gt;&lt;P&gt;i want to update it to 30, by passing quantity 30 to BAPI.&lt;/P&gt;&lt;P&gt;After  executing BAPI.&lt;/P&gt;&lt;P&gt;Present Qty is 50. But i am expecting 30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Oct 2008 12:37:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-20T12:37:03Z</dc:date>
    <item>
      <title>Bapi for SO change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-so-change/m-p/4669789#M1098421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello every body,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Sales Order Update , I am using BAPI&lt;/P&gt;&lt;P&gt; " BAPI_SALESORDER_CHANGE ".&lt;/P&gt;&lt;P&gt; I could delete So line item and insert line item, successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for Updating SO line item,&lt;/P&gt;&lt;P&gt;Im also Updating Schedule lines,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is : while updating my line item with new quantity , it is adding the new quantity with existing quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reason behind this is ,  this BAPI is creating a new schedule line rather than updating a existing schedule line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Udate Flag for schedule line is "U",  i am passing schd_line number also for update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example :&lt;/P&gt;&lt;P&gt;If existing SO item Qty is 20.&lt;/P&gt;&lt;P&gt;i want to update it to 30, by passing quantity 30 to BAPI.&lt;/P&gt;&lt;P&gt;After  executing BAPI.&lt;/P&gt;&lt;P&gt;Present Qty is 50. But i am expecting 30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 12:37:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-so-change/m-p/4669789#M1098421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T12:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi for SO change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-so-change/m-p/4669790#M1098422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you using ORDER_ITEM_INX segment correctly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 12:47:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-so-change/m-p/4669790#M1098422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T12:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi for SO change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-so-change/m-p/4669791#M1098423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I guess you need to pass the difference of the new and the old quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See in debug mode by putting a break point in the function &lt;/P&gt;&lt;P&gt;SD_SALES_DOCU_MAINTAIN&lt;/P&gt;&lt;P&gt;on line 870. its adding to the schedule line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I unable to test at the moment with schedule lines thus not sure what happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 13:09:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-so-change/m-p/4669791#M1098423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T13:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi for SO change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-so-change/m-p/4669792#M1098424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HAVE U GOT ANY SOLUATION?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Oct 2008 09:03:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-so-change/m-p/4669792#M1098424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-25T09:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi for SO change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-so-change/m-p/4669793#M1098425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i didn't got any solution. Do u have any solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had tried to delete the schedule line and insert a new schedule line for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesn't worked as , my Payment Requisition number will be changed. which is important for PO creation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u have any solution for the same, please help me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Nov 2008 06:07:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-so-change/m-p/4669793#M1098425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-01T06:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi for SO change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-so-change/m-p/4669794#M1098426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did you try to pass the difference between the existing scheulde quantity and the new schedule quantity ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example if the existing quantity is 20 and you want to update it to 30, pass 30-20 = 10 to the BAPI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 08:11:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-so-change/m-p/4669794#M1098426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-03T08:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi for SO change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-so-change/m-p/4669795#M1098427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 12:28:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-so-change/m-p/4669795#M1098427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T12:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi for SO change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-so-change/m-p/4669796#M1098428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i face same problem but now i solve .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can pass schedule line  (vbep-etenr) with  order item (vbap-posnr) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then append it and then pass into bapi like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_SALESORDER_CHANGE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;salesdocument = p_vbeln&lt;/P&gt;&lt;P&gt;order_header_in = i_hdr&lt;/P&gt;&lt;P&gt;order_header_inx = i_hdrx&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;return = i_ret&lt;/P&gt;&lt;P&gt;schedule_lines = i_sched&lt;/P&gt;&lt;P&gt;schedule_linesx = i_schedx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 05:19:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-so-change/m-p/4669796#M1098428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T05:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi for SO change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-so-change/m-p/4669797#M1098429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for all your help and support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had solved this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem was :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while passing schedulelinesx to bapi, i was passing 'X' in the schedule line item, but we are supposd to pass line item munber, as we are passin item_number as posnr in item -X table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 06:44:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-so-change/m-p/4669797#M1098429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T06:44:48Z</dc:date>
    </item>
  </channel>
</rss>

