<?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: Error when using CHANGE_SALESORDER_BAPI to update delivery date in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-using-change-salesorder-bapi-to-update-delivery-date/m-p/3497746#M841303</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can answer this to some extent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"What am I missing? The schedule line is not changed. "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, You schedule line is not changed becoz you are getting error even before BAPI_COMMIT is processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Records are actually saved only after the BAPI_COMMIT is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can say the error occured during the data is passed to Change_bapi. Either not all data is passed  or ....please check the structure of that table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also please check the BAPi return structure and see the ID of that message. Probably you might get some catch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alchemi on Mar 6, 2008 11:24 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Mar 2008 17:23:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-06T17:23:34Z</dc:date>
    <item>
      <title>Error when using CHANGE_SALESORDER_BAPI to update delivery date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-using-change-salesorder-bapi-to-update-delivery-date/m-p/3497744#M841301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm recieving an error when using change_salesorder_bapi.  My intent is to change the delivery date on a schedule line where the delco input from the user is larger than what is currently on the schedule line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following are the specifics of the message:&lt;/P&gt;&lt;P&gt;Type: E&lt;/P&gt;&lt;P&gt;ID: V1&lt;/P&gt;&lt;P&gt;Number: 322&lt;/P&gt;&lt;P&gt;Message: Incorrect index structure for table IVBEP1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 2 prior messages in the return table. The first says that ORDER_HEADER_IN has posted successfully.  The second says that the ITEM_IN has posted successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A snippet of my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT line_item INTO wa_line_item.&lt;/P&gt;&lt;P&gt;        IF wa_line_item-delco &amp;lt; p$delco.&lt;/P&gt;&lt;P&gt;          wa_order_item_in-itm_number = wa_line_item-posnr.&lt;/P&gt;&lt;P&gt;          wa_order_item_in-dlv_time = p$delco.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          wa_order_item_inx-itm_number = wa_line_item-posnr.&lt;/P&gt;&lt;P&gt;          wa_order_item_inx-updateflag = 'U'.&lt;/P&gt;&lt;P&gt;          wa_order_item_inx-dlv_time = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          APPEND wa_order_item_in to i_order_item_in.&lt;/P&gt;&lt;P&gt;          APPEND wa_order_item_inx to i_order_item_inx.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&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 = wa_order_header_in&lt;/P&gt;&lt;P&gt;      order_header_inx = wa_order_header_inx&lt;/P&gt;&lt;P&gt;      tables&lt;/P&gt;&lt;P&gt;      return = i_return&lt;/P&gt;&lt;P&gt;      ORDER_ITEM_IN = i_order_item_in&lt;/P&gt;&lt;P&gt;      ORDER_ITEM_INX = i_order_item_inx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the Bapi call I also call BAPI_TRANSACTION_COMMIT.  The messages I have listed come before the commit bapi is called.  What am I missing?  The schedule line is not changed.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 17:05:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-using-change-salesorder-bapi-to-update-delivery-date/m-p/3497744#M841301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T17:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using CHANGE_SALESORDER_BAPI to update delivery date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-using-change-salesorder-bapi-to-update-delivery-date/m-p/3497745#M841302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome to SDN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please check SAP note 693551 ( May it will be helpful)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 17:22:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-using-change-salesorder-bapi-to-update-delivery-date/m-p/3497745#M841302</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-03-06T17:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using CHANGE_SALESORDER_BAPI to update delivery date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-using-change-salesorder-bapi-to-update-delivery-date/m-p/3497746#M841303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can answer this to some extent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"What am I missing? The schedule line is not changed. "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, You schedule line is not changed becoz you are getting error even before BAPI_COMMIT is processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Records are actually saved only after the BAPI_COMMIT is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can say the error occured during the data is passed to Change_bapi. Either not all data is passed  or ....please check the structure of that table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also please check the BAPi return structure and see the ID of that message. Probably you might get some catch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alchemi on Mar 6, 2008 11:24 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 17:23:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-using-change-salesorder-bapi-to-update-delivery-date/m-p/3497746#M841303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T17:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using CHANGE_SALESORDER_BAPI to update delivery date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-using-change-salesorder-bapi-to-update-delivery-date/m-p/3497747#M841304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The note mentioned has already been applied to our system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the error is occuring before the commit.  Where can I find documentation on what is needed to be passed to the bapi?  I've looked at the documentation in the Bapi Explorer for this particular bapi and I'm not finding anything else that needs to be passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I go to VA02 and change the field on the line item manually everything works fine.  However writing a program that calls the bapi to do the same thing fails.  My guess is that SAP is doing something in the background that the bapi isn't... I just can't figure out what it is or what I'm missing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 19:11:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-using-change-salesorder-bapi-to-update-delivery-date/m-p/3497747#M841304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T19:11:08Z</dc:date>
    </item>
  </channel>
</rss>

