<?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: Problem with BAPI_SALESORDER_CHANGE function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change-function-module/m-p/4717862#M1107832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its a standard SAP error message so I dont see how it will help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Oct 2008 22:28:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-30T22:28:46Z</dc:date>
    <item>
      <title>Problem with BAPI_SALESORDER_CHANGE function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change-function-module/m-p/4717860#M1107830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know lot of posts have been done about problems with this function module. However I was not able to find the answer to my problem. Hence posting a new thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following code which changes the reason rejection (if required to 'ZF') and also updates the sales order quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code works absolutely fine as long as the PGI date of the order item is either today or in the future. However if the PGI date of the order item is in the past. I get an error in the t_return table with error type 'E' saying 'PGI date is in the past hence could not update the item'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try to update the same order quantity in VA02 for the item with PGI date in the past it does so without any problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please suggest what the problem might be. Or if there is some other way I can update the quantity. (I dont want to use BDC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM change_sales_order_item USING value(r_rtb_posnrs) TYPE zpsd_ztsdrtb_ro_track&lt;/P&gt;&lt;P&gt;                             CHANGING r_return TYPE type_t_bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: v_order_header_in TYPE bapisdh1,&lt;/P&gt;&lt;P&gt;  v_order_header_inx TYPE bapisdh1x,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  t_schedule_lines TYPE bapischdl OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;  t_schedule_linesx TYPE bapischdlx OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;  v_temp_rtb_vbeln TYPE vbeln,&lt;/P&gt;&lt;P&gt;  v_temp_rtb_posnr TYPE posnr,&lt;/P&gt;&lt;P&gt;  wa_old_rtb_posnrs TYPE ztsdrtb_ro_track,&lt;/P&gt;&lt;P&gt;  t_item_in TYPE bapisditm OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;  t_item_inx TYPE bapisditmx OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;  v_rtb_old_vbeln TYPE zrtbvbeln,&lt;/P&gt;&lt;P&gt;  v_rtb_old_posnr TYPE zrtbposnr,&lt;/P&gt;&lt;P&gt;  v_ro_old_vbeln TYPE zrovbeln,&lt;/P&gt;&lt;P&gt;  v_ro_old_posnr TYPE zroposnr,&lt;/P&gt;&lt;P&gt;  v_rtb_count TYPE i,&lt;/P&gt;&lt;P&gt;  v_next_row_index TYPE i,&lt;/P&gt;&lt;P&gt;  v_update_order_flg TYPE char1, "Update the sales order flag&lt;/P&gt;&lt;P&gt;  v_rtb_record_counter TYPE i,&lt;/P&gt;&lt;P&gt;  v_original_vbeln TYPE vbeln,&lt;/P&gt;&lt;P&gt;  t_bapiret TYPE STANDARD TABLE OF bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;wa_r_rtb_posnrs&amp;gt; TYPE ztsdrtb_ro_track,&lt;/P&gt;&lt;P&gt;                 &amp;lt;wa_r_rtb_posnr_next&amp;gt; TYPE ztsdrtb_ro_track.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONSTANTS: c_updateflag TYPE bapisditmx-updateflag VALUE 'U'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  v_order_header_inx-updateflag = 'U'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get rid of the duplicate records for the same RTB order. Just use&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;the last record quantity in the internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT r_rtb_posnrs ASSIGNING &amp;lt;wa_r_rtb_posnrs&amp;gt;.&lt;/P&gt;&lt;P&gt;    v_rtb_record_counter = v_rtb_record_counter + 1.&lt;/P&gt;&lt;P&gt;    &amp;lt;wa_r_rtb_posnrs&amp;gt;-seqnr = v_rtb_record_counter.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  SORT r_rtb_posnrs DESCENDING BY zrtbvbeln zrtbposnr seqnr zrtbconsumedflg.&lt;/P&gt;&lt;P&gt;  DELETE ADJACENT DUPLICATES FROM r_rtb_posnrs COMPARING zrtbvbeln zrtbposnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE r_rtb_posnrs LINES v_rtb_count.&lt;/P&gt;&lt;P&gt;  v_rtb_record_counter = 0.&lt;/P&gt;&lt;P&gt;  v_update_order_flg = space.&lt;/P&gt;&lt;P&gt;  LOOP AT r_rtb_posnrs ASSIGNING &amp;lt;wa_r_rtb_posnrs&amp;gt;.&lt;/P&gt;&lt;P&gt;    v_rtb_record_counter = v_rtb_record_counter + 1.&lt;/P&gt;&lt;P&gt;    v_update_order_flg = space.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Popluate the item quantity update flags for schedule lines&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    t_schedule_linesx-itm_number = &amp;lt;wa_r_rtb_posnrs&amp;gt;-zrtbposnr.&lt;/P&gt;&lt;P&gt;    t_schedule_linesx-sched_line = '0001'.&lt;/P&gt;&lt;P&gt;    t_schedule_linesx-updateflag = c_updateflag.&lt;/P&gt;&lt;P&gt;    t_schedule_linesx-req_qty = 'X'.&lt;/P&gt;&lt;P&gt;    APPEND t_schedule_linesx.&lt;/P&gt;&lt;P&gt;    CLEAR t_schedule_linesx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Item (Order QQuantity Field to be changed "KWMENG")&lt;/P&gt;&lt;P&gt;    t_schedule_lines-itm_number = &amp;lt;wa_r_rtb_posnrs&amp;gt;-zrtbposnr.&lt;/P&gt;&lt;P&gt;    t_schedule_lines-sched_line = '0001'.&lt;/P&gt;&lt;P&gt;    t_schedule_lines-req_qty = &amp;lt;wa_r_rtb_posnrs&amp;gt;-zrtbchgqty.&lt;/P&gt;&lt;P&gt;    APPEND t_schedule_lines.&lt;/P&gt;&lt;P&gt;    CLEAR t_schedule_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If fully consumed then set the rejection flag&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IF &amp;lt;wa_r_rtb_posnrs&amp;gt;-zrtbconsumedflg = 'X'.&lt;/P&gt;&lt;P&gt;      t_item_inx-itm_number = &amp;lt;wa_r_rtb_posnrs&amp;gt;-zrtbposnr.&lt;/P&gt;&lt;P&gt;      t_item_inx-updateflag = 'X'.&lt;/P&gt;&lt;P&gt;      t_item_inx-reason_rej = 'X'.&lt;/P&gt;&lt;P&gt;      APPEND t_item_inx.&lt;/P&gt;&lt;P&gt;      CLEAR t_item_inx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      t_item_in-itm_number = &amp;lt;wa_r_rtb_posnrs&amp;gt;-zrtbposnr.&lt;/P&gt;&lt;P&gt;      t_item_in-reason_rej = 'ZF'.&lt;/P&gt;&lt;P&gt;      APPEND t_item_in.&lt;/P&gt;&lt;P&gt;      CLEAR t_item_in.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      t_item_inx-itm_number = &amp;lt;wa_r_rtb_posnrs&amp;gt;-zrtbposnr.&lt;/P&gt;&lt;P&gt;      t_item_inx-updateflag = 'X'.&lt;/P&gt;&lt;P&gt;      t_item_inx-reason_rej = 'X'.&lt;/P&gt;&lt;P&gt;      APPEND t_item_inx.&lt;/P&gt;&lt;P&gt;      CLEAR t_item_inx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      t_item_in-itm_number = &amp;lt;wa_r_rtb_posnrs&amp;gt;-zrtbposnr.&lt;/P&gt;&lt;P&gt;      t_item_in-reason_rej = ' '.&lt;/P&gt;&lt;P&gt;      APPEND t_item_in.&lt;/P&gt;&lt;P&gt;      CLEAR t_item_in.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If you have reached the last line of the RTB intern table update the sales order&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Index pointing to the next row&lt;/P&gt;&lt;P&gt;    v_next_row_index = v_rtb_record_counter + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF v_rtb_record_counter = v_rtb_count.&lt;/P&gt;&lt;P&gt;      v_update_order_flg = 'X'.&lt;/P&gt;&lt;P&gt;    ELSEIF v_rtb_record_counter &amp;lt; v_rtb_count.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the next row data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      READ TABLE r_rtb_posnrs INDEX v_next_row_index ASSIGNING &amp;lt;wa_r_rtb_posnr_next&amp;gt;.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        IF &amp;lt;wa_r_rtb_posnrs&amp;gt;-zrtbvbeln &amp;lt;&amp;gt; &amp;lt;wa_r_rtb_posnr_next&amp;gt;-zrtbvbeln.&lt;/P&gt;&lt;P&gt;          v_update_order_flg = 'X'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      v_update_order_flg = space.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;update the rtb orders with quantities and the rejection flag (if required)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IF v_update_order_flg = 'X'.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_SALESORDER_CHANGE' STARTING NEW TASK 'SOUPDATE'&lt;/P&gt;&lt;P&gt;        PERFORMING callbk_bapi_salesorder_change ON END OF TASK&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          salesdocument    = &amp;lt;wa_r_rtb_posnrs&amp;gt;-zrtbvbeln&lt;/P&gt;&lt;P&gt;          order_header_in  = v_order_header_in&lt;/P&gt;&lt;P&gt;          order_header_inx = v_order_header_inx&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          return           = t_return&lt;/P&gt;&lt;P&gt;          schedule_lines   = t_schedule_lines&lt;/P&gt;&lt;P&gt;          schedule_linesx  = t_schedule_linesx&lt;/P&gt;&lt;P&gt;          order_item_in    = t_item_in&lt;/P&gt;&lt;P&gt;          order_item_inx   = t_item_inx.&lt;/P&gt;&lt;P&gt;      WAIT UNTIL t_return[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      READ TABLE t_return INTO wa_return WITH KEY type = 'E'.&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        r_return[] = t_return[].&lt;/P&gt;&lt;P&gt;        MESSAGE ID 'ZSD' TYPE 'E' NUMBER 613.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       RAISE errorinorderupdate.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      REFRESH t_schedule_linesx.&lt;/P&gt;&lt;P&gt;      REFRESH t_schedule_lines.&lt;/P&gt;&lt;P&gt;      REFRESH t_item_in.&lt;/P&gt;&lt;P&gt;      REFRESH t_item_inx.&lt;/P&gt;&lt;P&gt;      REFRESH t_return.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     return = t_bapiret.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDFORM.                    "Change_Sales_Order&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 22:15:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change-function-module/m-p/4717860#M1107830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T22:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_SALESORDER_CHANGE function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change-function-module/m-p/4717861#M1107831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you try debugging and see where and how the message is getting triggered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 22:26:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change-function-module/m-p/4717861#M1107831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T22:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_SALESORDER_CHANGE function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change-function-module/m-p/4717862#M1107832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its a standard SAP error message so I dont see how it will help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 22:28:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change-function-module/m-p/4717862#M1107832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T22:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_SALESORDER_CHANGE function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change-function-module/m-p/4717863#M1107833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why? you need to find why that message is getting triggered first. there is no issue which you cant solve  using debugging if you know how to debug in SAP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 22:30:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change-function-module/m-p/4717863#M1107833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T22:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_SALESORDER_CHANGE function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change-function-module/m-p/4717864#M1107834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I mentioned if I change the order quantity manually from VA02 it lets me do so without any issues. So the problem must be in the way I m calling the function module. So I want to focus on that part instead of spending hours together on finding where the error is coming from and then finally realizing there isnt much I can do about it. I do know very well how to debug in SAP but I think it should be done only if other simpler options fail.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 22:43:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change-function-module/m-p/4717864#M1107834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T22:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_SALESORDER_CHANGE function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change-function-module/m-p/4717865#M1107835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Srikrishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to change the order quantity without setting up the rejection flag for an item with PGI date in past. If it works you can handle the rejection separately. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gajendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 02:06:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change-function-module/m-p/4717865#M1107835</guid>
      <dc:creator>former_member723628</dc:creator>
      <dc:date>2008-10-31T02:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_SALESORDER_CHANGE function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change-function-module/m-p/4717866#M1107836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see the following example and try to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_hdrx-updateflag = 'U'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------" /&gt;&lt;P&gt;*" Fill required SCHEDULE_LINES data.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_sched-itm_number = p_posnr.&lt;/P&gt;&lt;P&gt;i_sched-sched_line = p_etenr.&lt;/P&gt;&lt;P&gt;i_sched-req_qty = p_reqqty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_schedx-updateflag = 'U'.&lt;/P&gt;&lt;P&gt;i_schedx-itm_number = p_posnr.&lt;/P&gt;&lt;P&gt;i_schedx-sched_line = p_etenr.&lt;/P&gt;&lt;P&gt;i_schedx-req_qty = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND i_sched.&lt;/P&gt;&lt;P&gt;APPEND i_schedx.&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:01:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change-function-module/m-p/4717866#M1107836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T05:01:38Z</dc:date>
    </item>
  </channel>
</rss>

