<?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>Question Re: How to update record using BAPI_SALESORDER_CHANGE? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-to-update-record-using-bapi-salesorder-change/qaa-p/12349254#M4624716</link>
    <description>&lt;SPAN class="mention-scrubbed"&gt;robert.forster3&lt;/SPAN&gt;
Thank you for response !I have added it, still no changes. &lt;PRE&gt;&lt;CODE&gt;w_order_sch_in-sched_line = wa_vbep-etenr.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 09 Mar 2021 07:25:46 GMT</pubDate>
    <dc:creator>vinayad</dc:creator>
    <dc:date>2021-03-09T07:25:46Z</dc:date>
    <item>
      <title>How to update record using BAPI_SALESORDER_CHANGE?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-update-record-using-bapi-salesorder-change/qaq-p/12349252</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
  &lt;P&gt;I am trying update VBEP table record using BAPI_SALESORDER_CHANGE but it is duplicating the record instead of updating to the old record.&lt;/P&gt;
  &lt;P&gt;What would be the issue ?&lt;/P&gt;
  &lt;P&gt;Any help would be appreciated!&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;      w_order_sch_in-itm_number = i_item.
      w_order_sch_in-ms_date = i_matl_avail_date.
      append w_order_sch_in to i_order_sch_in.
      CLEAR: w_order_sch_in.

      w_order_sch_inx-itm_number = i_item.
      w_order_sch_inx-ms_date = 'X'.
      w_order_sch_inx-updateflag = 'U'. 
      append w_order_sch_inx to i_order_sch_inx.
      CLEAR: w_order_sch_inx.

     CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          SALESDOCUMENT               = I_SALES_DOCUMENT     
          ORDER_HEADER_INX            = order_headerx
        TABLES
          RETURN                      = t_return
          SCHEDULE_LINES              = i_order_sch_in
          SCHEDULE_LINESX             = i_order_sch_inx.

      CLEAR w_return.
      READ TABLE t_return INTO w_return WITH KEY type = 'E'.

      IF w_return IS NOT INITIAL.   " error found
        MESSAGE w_return-message TYPE 'I'.
        RETURN.
      ENDIF.

      CLEAR w_return.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
       EXPORTING
         WAIT          = 'X'
       IMPORTING
         RETURN        = w_return .

      IF w_return-type = 'E'.   " error found
        MESSAGE w_return-message TYPE 'I'.
        RETURN.
      Endif.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Mar 2021 16:36:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-update-record-using-bapi-salesorder-change/qaq-p/12349252</guid>
      <dc:creator>vinayad</dc:creator>
      <dc:date>2021-03-08T16:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to update record using BAPI_SALESORDER_CHANGE?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-update-record-using-bapi-salesorder-change/qaa-p/12349253#M4624715</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you need to enter an existing etenr to complete the key&lt;/P&gt;&lt;P&gt;KR&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 06:15:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-update-record-using-bapi-salesorder-change/qaa-p/12349253#M4624715</guid>
      <dc:creator>RobertVit</dc:creator>
      <dc:date>2021-03-09T06:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to update record using BAPI_SALESORDER_CHANGE?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-update-record-using-bapi-salesorder-change/qaa-p/12349254#M4624716</link>
      <description>&lt;SPAN class="mention-scrubbed"&gt;robert.forster3&lt;/SPAN&gt;
Thank you for response !I have added it, still no changes. &lt;PRE&gt;&lt;CODE&gt;w_order_sch_in-sched_line = wa_vbep-etenr.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Mar 2021 07:25:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-update-record-using-bapi-salesorder-change/qaa-p/12349254#M4624716</guid>
      <dc:creator>vinayad</dc:creator>
      <dc:date>2021-03-09T07:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to update record using BAPI_SALESORDER_CHANGE?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-update-record-using-bapi-salesorder-change/qaa-p/12349255#M4624717</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;vinayad&lt;/SPAN&gt; don't forget that other line:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;w_order_sch_inx-sched_line = wa_vbep-etenr.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Mar 2021 12:36:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-update-record-using-bapi-salesorder-change/qaa-p/12349255#M4624717</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-03-09T12:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to update record using BAPI_SALESORDER_CHANGE?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-update-record-using-bapi-salesorder-change/qaa-p/12349256#M4624718</link>
      <description>&lt;A href="https://answers.sap.com/users/1091/sandra.rossi.html"&gt;Sandra Rossi&lt;/A&gt;&lt;P&gt;Thank you for your response! &lt;/P&gt;&lt;P&gt;Instead of moving the value, I made mistake here.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;w_order_sch_inx-sched_line = 'X'.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It's working now thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 14:42:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-update-record-using-bapi-salesorder-change/qaa-p/12349256#M4624718</guid>
      <dc:creator>vinayad</dc:creator>
      <dc:date>2021-03-09T14:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to update record using BAPI_SALESORDER_CHANGE?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-update-record-using-bapi-salesorder-change/qaa-p/12349257#M4624719</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;robert.forster3&lt;/SPAN&gt; and &lt;A href="https://answers.sap.com/users/1091/sandra.rossi.html"&gt;Sandra Rossi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It is working for present and future date but user also requires for past date.&lt;/P&gt;&lt;P&gt;How to achieve it ? It is showing information message on screen&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 16:15:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-update-record-using-bapi-salesorder-change/qaa-p/12349257#M4624719</guid>
      <dc:creator>vinayad</dc:creator>
      <dc:date>2021-03-09T16:15:56Z</dc:date>
    </item>
  </channel>
</rss>

