<?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: Help with BAPI_SALESORDER_CHANGE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-salesorder-change/m-p/2377491#M527280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you show us all of your code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2007 18:10:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-04T18:10:46Z</dc:date>
    <item>
      <title>Help with BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-salesorder-change/m-p/2377488#M527277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm implementing a button that blocks delivery in sales order, for a Z-Report. For this, I decided to use the 'BAPI_SALESORDER_CHANGE' instead batch input. Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: us_order TYPE vbak-vbeln,&lt;/P&gt;&lt;P&gt;             l_header_inx TYPE bapisdh1x,&lt;/P&gt;&lt;P&gt;             l_header_in  TYPE bapisdh1.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE: 'U'   TO l_header_inx-updateflag,&lt;/P&gt;&lt;P&gt;              'X'   TO l_header_inx-dlv_block,&lt;/P&gt;&lt;P&gt;              'ZL' TO l_header_in-dlv_block.&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    = us_order&lt;/P&gt;&lt;P&gt;      order_header_in   = l_header_in&lt;/P&gt;&lt;P&gt;      order_header_inx = l_header_inx&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      return           = lt_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      wait   = 'X'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      return = l_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the 'lt_return' variable gives the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Purchase order number in document number: 25972 already exists&lt;/P&gt;&lt;P&gt;   Sales document 0000025972 was not changed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then i decided to make the delivery block by myself, with transaction VA02. I was expecting the same message that the bapi returns, but for my surprise the change was made without problems. So, I imagine that a batch input could work too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my question is, why bapi didn't work? I want to finish this requirement with bapi instead a batch input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 15:33:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-salesorder-change/m-p/2377488#M527277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T15:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-salesorder-change/m-p/2377489#M527278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BAPI didnt work because u supplied existing PO number. Provide unique PO number and try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 16:07:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-salesorder-change/m-p/2377489#M527278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T16:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help with BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-salesorder-change/m-p/2377490#M527279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do pass the PO number... you just see the important part of the code. Just check the error message: PO '25972'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Julio Almeida&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 18:04:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-salesorder-change/m-p/2377490#M527279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T18:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help with BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-salesorder-change/m-p/2377491#M527280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you show us all of your code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 18:10:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-salesorder-change/m-p/2377491#M527280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T18:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help with BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-salesorder-change/m-p/2377492#M527281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform f_block using '0000025972'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     Form  f_block                                           *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f_block USING value(us_orden) TYPE vbak-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: l_header_inx TYPE bapisdh1x,&lt;/P&gt;&lt;P&gt;        l_header_in  TYPE bapisdh1,&lt;/P&gt;&lt;P&gt;        lt_return    TYPE STANDARD TABLE OF bapiret2,&lt;/P&gt;&lt;P&gt;        l_return     TYPE bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE: 'U'  TO l_header_inx-updateflag,&lt;/P&gt;&lt;P&gt;        'X'  TO l_header_inx-dlv_block,&lt;/P&gt;&lt;P&gt;        'ZL' TO l_header_in-dlv_block.&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    = us_orden&lt;/P&gt;&lt;P&gt;      order_header_in  = l_header_in&lt;/P&gt;&lt;P&gt;      order_header_inx = l_header_inx&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      return           = lt_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      wait   = 'X'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      return = l_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " f_automatic_schedule_all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 18:21:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-salesorder-change/m-p/2377492#M527281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T18:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help with BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-salesorder-change/m-p/2377493#M527282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi geeks..&lt;/P&gt;&lt;P&gt;     I am a fresher and i have to use this bapi to update quantity and post the BAPI &lt;/P&gt;&lt;P&gt;with error log...&lt;/P&gt;&lt;P&gt;    Can anyone pls let me know ...how to do it....with example structure????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 13:47:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-salesorder-change/m-p/2377493#M527282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T13:47:14Z</dc:date>
    </item>
  </channel>
</rss>

