<?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 Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997305#M1163868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_vbeln is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the msg details are as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE		E&lt;/P&gt;&lt;P&gt;ID		V1&lt;/P&gt;&lt;P&gt;NUMBER		045&lt;/P&gt;&lt;P&gt;MESSAGE		Enter the document number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Jinson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jan 2009 10:35:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-16T10:35:56Z</dc:date>
    <item>
      <title>BAPI_SALESORDER_CHANGE Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997299#M1163862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to change the Scheduling dates for a Sales Order using BAPI_SALESORDER_CHANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After executing the BAPI, the retrn code is 0 but the return table has error as "Enter the document number"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pasting the code for you ref.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
              wa_orderx-updateflag = 'U'.
              wa_orderx-sales_org = 'X'.
              wa_orderx-distr_chan = 'X'.
              wa_orderx-division = 'X'.
              wa_order-sales_org = lv_vkorg.
              wa_order-distr_chan = lv_vtweg.
              wa_order-division = lv_spart.

              wa_bapisditm-itm_number  = wa_xvbep-posnr.
              APPEND wa_bapisditm TO it_bapisditm.

              wa_bapisditmx-itm_number = wa_xvbep-posnr.
              wa_bapisditmx-updateflag = 'U'.
              APPEND wa_bapisditmx TO it_bapisditmx.

              wa_bapischdl-itm_number = wa_xvbep-posnr.
              wa_bapischdl-sched_line = wa_xvbep-etenr.
              wa_bapischdl-ms_date    = wa_xvbep-mbdat.
              wa_bapischdl-load_date  = wa_xvbep-lddat.
              wa_bapischdl-gi_date    = wa_xvbep-wadat.
              wa_bapischdl-req_date   = wa_xvbep-edatu.
              APPEND wa_bapischdl TO it_bapischdl.

              wa_bapischdlx-itm_number = wa_xvbep-posnr.
              wa_bapischdlx-sched_line = wa_xvbep-etenr.
              wa_bapischdlx-ms_date    = 'X'.
              wa_bapischdlx-load_date  = 'X'.
              wa_bapischdlx-gi_date    = 'X'.
              wa_bapischdlx-req_date   = 'X'.
              wa_bapischdlx-updateflag = 'U'.
              APPEND wa_bapischdlx TO it_bapischdlx.

     CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          salesdocument    = lv_vbeln
          order_header_in  = wa_order
          order_header_inx = wa_orderx
        TABLES
          return           = it_bapiret2
          order_item_in    = it_bapisditm
          order_item_inx   = it_bapisditmx
          schedule_lines   = it_bapischdl
          schedule_linesx  = it_bapischdlx.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the work areas and variables have values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me find a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Jinson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 10:25:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997299#M1163862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T10:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997300#M1163863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check while debugging lv_vbeln is not initial.&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    = lv_vbeln    """"  Check not initial&lt;/P&gt;&lt;P&gt;          order_header_in  = wa_order&lt;/P&gt;&lt;P&gt;          order_header_inx = wa_orderx&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          return           = it_bapiret2&lt;/P&gt;&lt;P&gt;          order_item_in    = it_bapisditm&lt;/P&gt;&lt;P&gt;          order_item_inx   = it_bapisditmx&lt;/P&gt;&lt;P&gt;          schedule_lines   = it_bapischdl&lt;/P&gt;&lt;P&gt;          schedule_linesx  = it_bapischdlx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 10:29:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997300#M1163863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T10:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997301#M1163864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pl. check whether the variable lv_vbeln contains the sales order no. or not. Also pl. post the message id and message no that u r getting in the return table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 10:30:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997301#M1163864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T10:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997302#M1163865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jinso,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think u need pass the order number to evry table then i hope it will not through an error for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 10:33:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997302#M1163865</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2009-01-16T10:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997303#M1163866</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;Hope this will help &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1271283"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Pravin S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 10:33:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997303#M1163866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T10:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997304#M1163867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try populating the quantity field in the schedule line structure of the BAPISCHDL-REQ_QTY as well along with the date fields. That may remove the error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 10:35:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997304#M1163867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T10:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997305#M1163868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_vbeln is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the msg details are as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE		E&lt;/P&gt;&lt;P&gt;ID		V1&lt;/P&gt;&lt;P&gt;NUMBER		045&lt;/P&gt;&lt;P&gt;MESSAGE		Enter the document number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Jinson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 10:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997305#M1163868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T10:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997306#M1163869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Try populating the quantity field in the schedule line structure of the BAPISCHDL-REQ_QTY as well along with the date fields. That may remove the error.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear Bhaskar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried populating the BAPISCHDL-REQ_QTY field.But still the error is coming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Jinson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 10:46:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997306#M1163869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T10:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997307#M1163870</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 can only suspect one thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are using this inside a loop endloop. and may be using a control break statement did you check if all values are well in debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 10:55:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997307#M1163870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T10:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997308#M1163871</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;Fill the reference document number field REF_DOC in bapi importing structure BAPISDH1.&lt;/P&gt;&lt;P&gt;I think this will resolve your problem as the sales order change requires this field, if the order created with reference document number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Dwarakanath.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 10:56:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997308#M1163871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T10:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997309#M1163872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi,&lt;/P&gt;&lt;P&gt;&amp;gt; I can only suspect one thing.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; You are using this inside a loop endloop. and may be using a control break statement did you check if all values are well in debugging.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; santhosh&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No Santosh, I am not using it in a Loop or using any control break statement with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Jinson.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 10:58:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997309#M1163872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T10:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997310#M1163873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dwarakanath,&lt;/P&gt;&lt;P&gt;I have checked the order again, it was not created with ref doc no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Jinson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 11:03:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change-error/m-p/4997310#M1163873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T11:03:00Z</dc:date>
    </item>
  </channel>
</rss>

