<?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.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change/m-p/3582445#M862441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what about the solution? share your solutions too, not only your problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2012 17:44:49 GMT</pubDate>
    <dc:creator>cristiano_santos</dc:creator>
    <dc:date>2012-06-26T17:44:49Z</dc:date>
    <item>
      <title>BAPI_SALESORDER_CHANGE..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change/m-p/3582443#M862439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is sample coding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :&lt;/P&gt;&lt;P&gt;l1 type /AFS/BAPISDHDX,&lt;/P&gt;&lt;P&gt;lr type standard table of BAPIRET2 with header line,&lt;/P&gt;&lt;P&gt;lc type standard table of /AFS/BAPICOND with header line,&lt;/P&gt;&lt;P&gt;lx type standard table of /AFS/BAPICONDX with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lc-itm_number = 000010.&lt;/P&gt;&lt;P&gt;lc-cond_type = 'ZDHD'.&lt;/P&gt;&lt;P&gt;lc-cond_value = '20'.&lt;/P&gt;&lt;P&gt;APPEND lc.&lt;/P&gt;&lt;P&gt;clear lc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lx-itm_number = 000010.&lt;/P&gt;&lt;P&gt;lx-cond_type = 'ZDHD'.&lt;/P&gt;&lt;P&gt;lx-updateflag = 'U'.&lt;/P&gt;&lt;P&gt;lx-cond_value = 'X'.&lt;/P&gt;&lt;P&gt;APPEND lx.&lt;/P&gt;&lt;P&gt;CLEAR lx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l1-UPDATEFLAG = 'U'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION '/AFS/BAPI_SALESORD_CHANGE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;SALESDOCUMENT = '0100865469'.&lt;/P&gt;&lt;P&gt;ORDER_HEADER_INX = l1&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;RETURN = lr&lt;/P&gt;&lt;P&gt;CONDITIONS_IN = lc&lt;/P&gt;&lt;P&gt;CONDITIONS_INX = lx&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&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;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This /AFS/BAPI_SALESORD_CHANGE' is same as BAPI_SALESORDER_CHANGE..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See above I am giving itm_number = 000010.&lt;/P&gt;&lt;P&gt;Now it is adding a new Condition 'ZDHD' and rate as specified to given sales order..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now If i change the rate to '4.00' and run the above program then the current Condition ZDHD is modified with new rate '4.00' from '10.00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[ But I want to add this ZDHD at header level&lt;/P&gt;&lt;P&gt;go to VA03 &lt;DEL&gt;&amp;gt; sales order no&lt;/DEL&gt;&amp;gt; goto&lt;DEL&gt;&amp;gt; header&lt;/DEL&gt;&amp;gt; conditions&lt;/P&gt;&lt;P&gt;you can see the condition type and rate.]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At header level&lt;/P&gt;&lt;P&gt;i.e&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lc-itm_number = 000000.&lt;/P&gt;&lt;P&gt;lc-cond_type = 'ZDHD'.&lt;/P&gt;&lt;P&gt;lc-cond_value = '20'.&lt;/P&gt;&lt;P&gt;APPEND lc.&lt;/P&gt;&lt;P&gt;clear lc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lx-itm_number = 000000.&lt;/P&gt;&lt;P&gt;lx-cond_type = 'ZDHD'.&lt;/P&gt;&lt;P&gt;lx-updateflag = 'U'.&lt;/P&gt;&lt;P&gt;lx-cond_value = 'X'.&lt;/P&gt;&lt;P&gt;APPEND lx.&lt;/P&gt;&lt;P&gt;CLEAR lx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at this coding change in program itm_number = 000000 instead of 000010.&lt;/P&gt;&lt;P&gt;The value of rate is not modified but a new line is appended when I look into va03 for the sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLease let me know how to modify the RATE value to '4.00' from '10.00' for condition type ZDHD at header level..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards will be for sure for the correct solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nazeeer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: N a z e e r on Jan 15, 2009 3:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 11:49:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change/m-p/3582443#M862439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T11:49:57Z</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/3582444#M862440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;closed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 10:07:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change/m-p/3582444#M862440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T10:07:20Z</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/3582445#M862441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what about the solution? share your solutions too, not only your problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 17:44:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change/m-p/3582445#M862441</guid>
      <dc:creator>cristiano_santos</dc:creator>
      <dc:date>2012-06-26T17:44:49Z</dc:date>
    </item>
  </channel>
</rss>

