<?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: Regarding Function module BAPI_SALESORDER_CHANGE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-bapi-salesorder-change/m-p/7825395#M1589401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you read the documentation? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to fill at minimum Sales order number in SALESDOCUMENT and You must always specify the update indicator in ORDER_HEADER_INX. In your case it is 'U'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you need fill the required info in the following structures. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCHEDULE_LINES - Actual data for example date and so on. &lt;/P&gt;&lt;P&gt;SCHEDULE_LINESX  = You need specify 'X' for the same field that you mentioned in the above structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_shd type BAPISCHDL &lt;/P&gt;&lt;P&gt;it_shd type table of BAPISCHDL &lt;/P&gt;&lt;P&gt;wa_shdx type BAPISCHDLX &lt;/P&gt;&lt;P&gt;it_shdx type table of BAPISCHDLX. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wa_shd-itm_number = vbep-posnr&lt;/P&gt;&lt;P&gt;wa_shd-sched_line = vbep-etenr &lt;/P&gt;&lt;P&gt;wa_shd-DLV_DATE = vbep-edatu (whatever date you want to change to ) &lt;/P&gt;&lt;P&gt;Append wa_shd to it_shd &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_shdx-updateflag = 'U'. &lt;/P&gt;&lt;P&gt;wa_shdx-dlv_date = 'X' &lt;/P&gt;&lt;P&gt;append wa_shdx to it_shdx. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of this, you can see the error in return table parameter and change according. if you cannot solve, you better post your code first and then ask users for a solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Apr 2011 15:03:39 GMT</pubDate>
    <dc:creator>former_member191735</dc:creator>
    <dc:date>2011-04-22T15:03:39Z</dc:date>
    <item>
      <title>Regarding Function module BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-bapi-salesorder-change/m-p/7825392#M1589398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am looking change Schedule Line Date at Item List in Sales Order using BAPI_SALESORDER_CHANGE function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to find the fields where I need to give.  could you please any one help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-purna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2011 13:49:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-bapi-salesorder-change/m-p/7825392#M1589398</guid>
      <dc:creator>purnachander_nagula</dc:creator>
      <dc:date>2011-04-22T13:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Function module BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-bapi-salesorder-change/m-p/7825393#M1589399</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;You need to populate SCHEDULE_LINES and SCHEDULE_LINESX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G_SCH_LINE_IN-ITM_NUMBER  = X_file_struc-posnr.&lt;/P&gt;&lt;P&gt;  G_SCH_LINE_IN-SCHED_LINE  = '0001'.&lt;/P&gt;&lt;P&gt;  G_SCH_LINE_IN-REQ_DATE    = SY-DATUM.&lt;/P&gt;&lt;P&gt;  G_SCH_LINE_IN-REQ_QTY     = X_file_struc-qty.&lt;/P&gt;&lt;P&gt; APPEND G_SCH_LINE_IN TO T_SCH_LINE_IN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G_SCH_LINE_INX-ITM_NUMBER = X_file_struc-posnr.&lt;/P&gt;&lt;P&gt;  G_SCH_LINE_INX-UPDATEFLAG = C_I. " I&lt;/P&gt;&lt;P&gt;  G_SCH_LINE_INX-SCHED_LINE  = '0001'.&lt;/P&gt;&lt;P&gt;  G_SCH_LINE_INX-REQ_DATE    = C_X. "X&lt;/P&gt;&lt;P&gt;  G_SCH_LINE_INX-REQ_QTY     = C_X. "X&lt;/P&gt;&lt;P&gt;  APPEND G_SCH_LINE_INX TO T_SCH_LINE_INX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;Raghav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2011 14:14:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-bapi-salesorder-change/m-p/7825393#M1589399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-22T14:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Function module BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-bapi-salesorder-change/m-p/7825394#M1589400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghav&lt;/P&gt;&lt;P&gt;thanks for your reply. &lt;/P&gt;&lt;P&gt;I have no luck with this code. I am looking to change the date VBEP-EDATU. can you please help me regarding this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2011 14:50:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-bapi-salesorder-change/m-p/7825394#M1589400</guid>
      <dc:creator>purnachander_nagula</dc:creator>
      <dc:date>2011-04-22T14:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Function module BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-bapi-salesorder-change/m-p/7825395#M1589401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you read the documentation? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to fill at minimum Sales order number in SALESDOCUMENT and You must always specify the update indicator in ORDER_HEADER_INX. In your case it is 'U'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you need fill the required info in the following structures. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCHEDULE_LINES - Actual data for example date and so on. &lt;/P&gt;&lt;P&gt;SCHEDULE_LINESX  = You need specify 'X' for the same field that you mentioned in the above structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_shd type BAPISCHDL &lt;/P&gt;&lt;P&gt;it_shd type table of BAPISCHDL &lt;/P&gt;&lt;P&gt;wa_shdx type BAPISCHDLX &lt;/P&gt;&lt;P&gt;it_shdx type table of BAPISCHDLX. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wa_shd-itm_number = vbep-posnr&lt;/P&gt;&lt;P&gt;wa_shd-sched_line = vbep-etenr &lt;/P&gt;&lt;P&gt;wa_shd-DLV_DATE = vbep-edatu (whatever date you want to change to ) &lt;/P&gt;&lt;P&gt;Append wa_shd to it_shd &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_shdx-updateflag = 'U'. &lt;/P&gt;&lt;P&gt;wa_shdx-dlv_date = 'X' &lt;/P&gt;&lt;P&gt;append wa_shdx to it_shdx. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of this, you can see the error in return table parameter and change according. if you cannot solve, you better post your code first and then ask users for a solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2011 15:03:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-bapi-salesorder-change/m-p/7825395#M1589401</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2011-04-22T15:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Function module BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-bapi-salesorder-change/m-p/7825396#M1589402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I was still not able to change the sales order schedule line date here is my input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALESDOCUMENT =     2517085&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCHEDULE_LINES:&lt;/P&gt;&lt;P&gt;ITM_NUMBER                     000010&lt;/P&gt;&lt;P&gt;SCHED_LINE                     0001&lt;/P&gt;&lt;P&gt;REQ_DATE                       05/12/2011&lt;/P&gt;&lt;P&gt;DATE_TYPE&lt;/P&gt;&lt;P&gt;REQ_TIME                       00:00:00&lt;/P&gt;&lt;P&gt;REQ_QTY                                   0.000&lt;/P&gt;&lt;P&gt;REQ_DLV_BL&lt;/P&gt;&lt;P&gt;SCHED_TYPE&lt;/P&gt;&lt;P&gt;TP_DATE&lt;/P&gt;&lt;P&gt;MS_DATE&lt;/P&gt;&lt;P&gt;LOAD_DATE&lt;/P&gt;&lt;P&gt;GI_DATE&lt;/P&gt;&lt;P&gt;TP_TIME                        00:00:00&lt;/P&gt;&lt;P&gt;MS_TIME                        00:00:00&lt;/P&gt;&lt;P&gt;LOAD_TIME                      00:00:00&lt;/P&gt;&lt;P&gt;GI_TIME                        00:00:00&lt;/P&gt;&lt;P&gt;REFOBJTYPE&lt;/P&gt;&lt;P&gt;REFOBJKEY&lt;/P&gt;&lt;P&gt;REFLOGSYS&lt;/P&gt;&lt;P&gt;DLV_DATE&lt;/P&gt;&lt;P&gt;DLV_TIME                       00:00:00&lt;/P&gt;&lt;P&gt;REL_TYPE&lt;/P&gt;&lt;P&gt;PLAN_SCHED_TYPE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCHEDULE_LINESX:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           ITM_NUMBER                     000010&lt;/P&gt;&lt;P&gt;           SCHED_LINE                     0001&lt;/P&gt;&lt;P&gt;           UPDATEFLAG                     U&lt;/P&gt;&lt;P&gt;           REQ_DATE                       X&lt;/P&gt;&lt;P&gt;           DATE_TYPE&lt;/P&gt;&lt;P&gt;           REQ_TIME&lt;/P&gt;&lt;P&gt;           REQ_QTY&lt;/P&gt;&lt;P&gt;           REQ_DLV_BL&lt;/P&gt;&lt;P&gt;           SCHED_TYPE&lt;/P&gt;&lt;P&gt;           TP_DATE&lt;/P&gt;&lt;P&gt;           MS_DATE&lt;/P&gt;&lt;P&gt;           LOAD_DATE&lt;/P&gt;&lt;P&gt;           GI_DATE&lt;/P&gt;&lt;P&gt;           TP_TIME&lt;/P&gt;&lt;P&gt;           MS_TIME&lt;/P&gt;&lt;P&gt;           LOAD_TIME&lt;/P&gt;&lt;P&gt;           GI_TIME&lt;/P&gt;&lt;P&gt;           REFOBJTYPE&lt;/P&gt;&lt;P&gt;           REFOBJKEY&lt;/P&gt;&lt;P&gt;           DLV_DATE&lt;/P&gt;&lt;P&gt;           DLV_TIME&lt;/P&gt;&lt;P&gt;           REL_TYPE&lt;/P&gt;&lt;P&gt;           PLAN_SCHED_TYPE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When run this code, it returns successfully but sales order date is not changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2011 18:30:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-bapi-salesorder-change/m-p/7825396#M1589402</guid>
      <dc:creator>purnachander_nagula</dc:creator>
      <dc:date>2011-04-25T18:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Function module BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-bapi-salesorder-change/m-p/7825397#M1589403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alright.... You have to troubleshoot the problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't receive any error in return table parameter - Are you using commit work after the BAPI call? if no, please commit the changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if yes, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add the following in your BAPI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; move: u to wa_hdrx-updateflag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;order_header_inx  = wa_hdrx  (this is the import parameter for bapi) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, I see, you have mentioned the req'd date but have tried with DLV_Date ? if not, try that first. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't work, then go to the table (Schedule line table) - Check the values and try to use the values and make sure to update the date in each and everyline. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't work, Give us more information like what is your requirement i mean, do you want to change the Schedule line date or are you confirming the quantity? or any other ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try all of the above before returning back....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sampath Kumar on Apr 25, 2011 1:00 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2011 18:59:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-bapi-salesorder-change/m-p/7825397#M1589403</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2011-04-25T18:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Function module BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-bapi-salesorder-change/m-p/7825398#M1589404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alongwith schedule line details, you have to pass item details also (fields ORDER_ITEM_IN-ITM_NUMBER, ORDER_ITEM_INX-ITM_NUMBER , ORDER_ITEM_INX-UPDATEFLAG (U)).  In addition to this you should pass 'U' in the structure field ORDER_HEADER_INX-UPDATEFLAG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 04:32:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module-bapi-salesorder-change/m-p/7825398#M1589404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-26T04:32:53Z</dc:date>
    </item>
  </channel>
</rss>

