<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change/m-p/8081581#M1614551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;just check if , this variable is being populated in debug mode.&lt;/P&gt;&lt;P&gt;salesdocument = im_vbak-vbeln&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Aug 2011 07:00:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-01T07:00:34Z</dc:date>
    <item>
      <title>Problem with BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change/m-p/8081577#M1614547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a help in solving the problem with the BAPI 'BAPI_SALESORDER_CHANGE' while tryihg to update the sales order with the reason for rejection it returning a error message with 'Enter Document Number'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this could be avoided by using the STARTING NEW TASK with the bapi. Could anyone please guide to get the problem resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&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;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 13:52:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change/m-p/8081577#M1614547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-29T13:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change/m-p/8081578#M1614548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you passing the document number to the BAPI? the error message looks so&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 13:56:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change/m-p/8081578#M1614548</guid>
      <dc:creator>Shahid</dc:creator>
      <dc:date>2011-07-29T13:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change/m-p/8081579#M1614549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 15:22:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change/m-p/8081579#M1614549</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-07-29T15:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change/m-p/8081580#M1614550</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;Below is the code which has been written in a method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; clear: ex_subrc,&lt;/P&gt;&lt;P&gt;         wa_bapisditm,&lt;/P&gt;&lt;P&gt;         wa_bapisditmx,&lt;/P&gt;&lt;P&gt;         wa_bapisdh1x,&lt;/P&gt;&lt;P&gt;         wa_return,&lt;/P&gt;&lt;P&gt;         it_return,&lt;/P&gt;&lt;P&gt;         it_bapisditm,&lt;/P&gt;&lt;P&gt;         it_bapisditmx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if t_rejvbap is initial.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Prepare data&lt;/P&gt;&lt;P&gt;  loop at t_rejvbap into wa_vbap.&lt;/P&gt;&lt;P&gt;    wa_bapisditm-itm_number  = wa_vbap-posnr.&lt;/P&gt;&lt;P&gt;    wa_bapisditm-material    = wa_vbap-matnr.&lt;/P&gt;&lt;P&gt;    wa_bapisditm-reason_rej  = k_02.&lt;/P&gt;&lt;P&gt;    wa_bapisditmx-itm_number = wa_vbap-posnr.&lt;/P&gt;&lt;P&gt;    wa_bapisditmx-reason_rej = k_x.&lt;/P&gt;&lt;P&gt;    append wa_bapisditm to it_bapisditm.&lt;/P&gt;&lt;P&gt;    append wa_bapisditmx to it_bapisditmx.&lt;/P&gt;&lt;P&gt;    clear: wa_bapisditm,&lt;/P&gt;&lt;P&gt;           wa_bapisditmx.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Update Flag&lt;/P&gt;&lt;P&gt;  move : k_u  to wa_bapisdh1x-updateflag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Change Sales Order&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET UPDATE TASK LOCAL.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    wait up to 5 seconds.&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    = im_vbak-vbeln&lt;/P&gt;&lt;P&gt;      order_header_inx = wa_bapisdh1x&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      return           = it_return&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;&lt;/P&gt;&lt;P&gt;*--Rollback, if errors&lt;/P&gt;&lt;P&gt;  read table it_return into wa_return with key type = k_e.&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    call method zasa_automated_delship=&amp;gt;asa_fill_bapireturn&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        im_message = wa_return-message&lt;/P&gt;&lt;P&gt;        im_vgbel   = im_vbak-vbeln&lt;/P&gt;&lt;P&gt;        im_bstnk   = im_vbak-bstnk&lt;/P&gt;&lt;P&gt;        im_vsbed   = im_vsbed&lt;/P&gt;&lt;P&gt;      changing&lt;/P&gt;&lt;P&gt;        t_error    = t_error.&lt;/P&gt;&lt;P&gt;    ex_subrc = 1.&lt;/P&gt;&lt;P&gt;    call function 'BAPI_TRANSACTION_ROLLBACK'.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Commit Change&lt;/P&gt;&lt;P&gt;  clear: wa_return.&lt;/P&gt;&lt;P&gt;  call function 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      return = wa_return.&lt;/P&gt;&lt;P&gt;  wait up to 5 seconds.&lt;/P&gt;&lt;P&gt;  if wa_return-type = k_e.&lt;/P&gt;&lt;P&gt;    call function 'BAPI_TRANSACTION_ROLLBACK'.&lt;/P&gt;&lt;P&gt;    call method zasa_automated_delship=&amp;gt;asa_fill_bapireturn&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        im_message = wa_return-message&lt;/P&gt;&lt;P&gt;        im_vgbel   = im_vbak-vbeln&lt;/P&gt;&lt;P&gt;        im_bstnk   = im_vbak-bstnk&lt;/P&gt;&lt;P&gt;        im_vsbed   = im_vsbed&lt;/P&gt;&lt;P&gt;      changing&lt;/P&gt;&lt;P&gt;        t_error    = t_error.&lt;/P&gt;&lt;P&gt;    ex_subrc = 1.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly advise on the same as soon as possible. This is urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Karthikeyan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 06:49:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change/m-p/8081580#M1614550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-01T06:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change/m-p/8081581#M1614551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;just check if , this variable is being populated in debug mode.&lt;/P&gt;&lt;P&gt;salesdocument = im_vbak-vbeln&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 07:00:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change/m-p/8081581#M1614551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-01T07:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change/m-p/8081582#M1614552</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;The parameters are passed i have checked in debugging mode. The solution is using parallel processing i believe by using 'STARTING NEW TASK'. Could anyone please suggest on the same.&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;Karthikeyan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 07:11:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change/m-p/8081582#M1614552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-01T07:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change/m-p/8081583#M1614553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[How to post code in SCN, and some things NOT to do...|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1170968"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 10:02:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-change/m-p/8081583#M1614553</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-08-01T10:02:58Z</dc:date>
    </item>
  </channel>
</rss>

