<?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_PO_CHANGE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change/m-p/2945294#M694328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is some sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; sort infile by ebeln ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at infile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Remove any commas&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    translate infile-onetpr using ', '.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Condense after removing the commas&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    condense infile-onetpr no-gaps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    i_poitem-po_item = infile-ebelp.&lt;/P&gt;&lt;P&gt;    i_poitemx-po_item = infile-ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update price only if the old value is diff. from new value.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if infile-nnetpr ne infile-onetpr.&lt;/P&gt;&lt;P&gt;      i_poitem-net_price = infile-onetpr.&lt;/P&gt;&lt;P&gt;      i_poitemx-net_price = 'X'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update currency if the old value is diff. from new value.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if infile-owaers ne infile-nwaers.&lt;/P&gt;&lt;P&gt;      v_header-currency = infile-owaers.&lt;/P&gt;&lt;P&gt;      v_headerx-currency = 'X'.&lt;/P&gt;&lt;P&gt;      v_flag = 'X'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update price unit if the old value is diff. from new val.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if infile-opeinh ne infile-npeinh.&lt;/P&gt;&lt;P&gt;      i_poitem-price_unit = infile-opeinh.&lt;/P&gt;&lt;P&gt;      i_poitemx-price_unit = 'X'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    append i_poitem.&lt;/P&gt;&lt;P&gt;    append i_poitemx.&lt;/P&gt;&lt;P&gt;    clear: i_poitem, i_poitemx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    at end of ebeln.&lt;/P&gt;&lt;P&gt;      refresh i_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if v_flag = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If the currency change is needed&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        call function 'BAPI_PO_CHANGE'&lt;/P&gt;&lt;P&gt;             exporting&lt;/P&gt;&lt;P&gt;                  purchaseorder    = infile-ebeln&lt;/P&gt;&lt;P&gt;                  poheader         = v_header&lt;/P&gt;&lt;P&gt;                  poheaderx        = v_headerx&lt;/P&gt;&lt;P&gt;                  testrun          = p_test&lt;/P&gt;&lt;P&gt;                  no_messaging     = 'X'&lt;/P&gt;&lt;P&gt;                  no_price_from_po = 'X'&lt;/P&gt;&lt;P&gt;             importing&lt;/P&gt;&lt;P&gt;                  expheader        = v_headerout&lt;/P&gt;&lt;P&gt;             tables&lt;/P&gt;&lt;P&gt;                  poitem           = i_poitem&lt;/P&gt;&lt;P&gt;                  poitemx          = i_poitemx&lt;/P&gt;&lt;P&gt;                  return           = i_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If currency change is not neeeded.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        call function 'BAPI_PO_CHANGE'&lt;/P&gt;&lt;P&gt;             exporting&lt;/P&gt;&lt;P&gt;                  purchaseorder    = infile-ebeln&lt;/P&gt;&lt;P&gt;                  testrun          = p_test&lt;/P&gt;&lt;P&gt;                  no_messaging     = 'X'&lt;/P&gt;&lt;P&gt;                  no_price_from_po = 'X'&lt;/P&gt;&lt;P&gt;             importing&lt;/P&gt;&lt;P&gt;                  expheader        = v_headerout&lt;/P&gt;&lt;P&gt;             tables&lt;/P&gt;&lt;P&gt;                  poitem           = i_poitem&lt;/P&gt;&lt;P&gt;                  poitemx          = i_poitemx&lt;/P&gt;&lt;P&gt;                  return           = i_return.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      clear: v_flag, v_header, v_headerx.&lt;/P&gt;&lt;P&gt;      clear v_first.&lt;/P&gt;&lt;P&gt;      sort i_return by type id number.&lt;/P&gt;&lt;P&gt;      delete adjacent duplicates from i_return.&lt;/P&gt;&lt;P&gt;      loop at i_return where type = 'E' or&lt;/P&gt;&lt;P&gt;               ( type = 'S' and id = '06' and number = '022' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if v_first is initial.&lt;/P&gt;&lt;P&gt;          write: / 'Unable to update', infile-ebeln.&lt;/P&gt;&lt;P&gt;          v_first = 'X'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        i_err-ebeln = infile-ebeln.&lt;/P&gt;&lt;P&gt;        i_err-message = i_return-message.&lt;/P&gt;&lt;P&gt;        append i_err.&lt;/P&gt;&lt;P&gt;        write:  /5 i_return-message.&lt;/P&gt;&lt;P&gt;        delete i_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        refresh i_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 = i_return.&lt;/P&gt;&lt;P&gt;        loop at i_return where type = 'E'.&lt;/P&gt;&lt;P&gt;          write: / i_return-message.&lt;/P&gt;&lt;P&gt;        endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;          write: / 'Successfully updated the PO',  infile-ebeln.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      refresh i_poitem.&lt;/P&gt;&lt;P&gt;      refresh i_poitemx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2007 16:26:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-19T16:26:14Z</dc:date>
    <item>
      <title>BAPI_PO_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change/m-p/2945290#M694324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on an interface where I need to change the price of the PO's, and for this I will be getting an input file which will have the material no's and the price associated to those. I need to select PO's based on the following conditions:&lt;/P&gt;&lt;P&gt;document type = 'NB' and purchasing group = '111' and DCI = ' '. name of the requistner = 'ABC' and item_delivery date = 06/12/2007&lt;/P&gt;&lt;P&gt;and then once the PO is selected I need to update the price of the PO's for a specific material from the input file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this so far I have written the following code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select ebeln into table it_ekko&lt;/P&gt;&lt;P&gt;    from ekko&lt;/P&gt;&lt;P&gt;     where bsart = 'NB' and&lt;/P&gt;&lt;P&gt;     ekgrp       = 111.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select ebeln ebelp matnr netpr into table it_ekpo&lt;/P&gt;&lt;P&gt;    from ekpo&lt;/P&gt;&lt;P&gt;      for all entries in it_ekko&lt;/P&gt;&lt;P&gt;    where elikz = ' ' and&lt;/P&gt;&lt;P&gt;     afnam = 'ABC' &lt;/P&gt;&lt;P&gt;     ebeln = it_ekko-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select ebeln eindt into table it_eket&lt;/P&gt;&lt;P&gt;	from ekrt &lt;/P&gt;&lt;P&gt;	 for all entries in it_ekpo &lt;/P&gt;&lt;P&gt; 	where eindt = '6/12/2007' and&lt;/P&gt;&lt;P&gt;	ebeln = it_ekpo-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please tell me is this is right and if this is right can you also tell me how to proceed further, I mean now I just need to change the netpr with the price that I have in my input table as per the matnr. &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;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 17:37:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change/m-p/2945290#M694324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T17:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change/m-p/2945291#M694325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing to check when you use for all entries is to make sure the internal table you are referring to has values. Otherwise it will get the all entries from the second table.  look at the code below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ebeln into table it_ekko&lt;/P&gt;&lt;P&gt;from ekko&lt;/P&gt;&lt;P&gt;where bsart = 'NB' and&lt;/P&gt;&lt;P&gt;ekgrp = 111.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not it_ekko[] is initial.         " This is crucial when you use for all entries&lt;/P&gt;&lt;P&gt;   select ebeln ebelp matnr netpr into table it_ekpo&lt;/P&gt;&lt;P&gt;   from ekpo&lt;/P&gt;&lt;P&gt;  for all entries in it_ekko&lt;/P&gt;&lt;P&gt;  where elikz = ' ' and&lt;/P&gt;&lt;P&gt;   afnam = 'ABC' &lt;/P&gt;&lt;P&gt;  ebeln = it_ekko-ebeln.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not it_ekpo[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select ebeln eindt into table it_eket&lt;/P&gt;&lt;P&gt;    from eket &lt;/P&gt;&lt;P&gt;   for all entries in it_ekpo &lt;/P&gt;&lt;P&gt;   where eindt = '6/12/2007' and&lt;/P&gt;&lt;P&gt;   ebeln = it_ekpo-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 23:14:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change/m-p/2945291#M694325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T23:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change/m-p/2945292#M694326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much for the reply Krishna....can you please tell how to proceed further...I mean can you please help me in changing the price of the PO's. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 16:00:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change/m-p/2945292#M694326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T16:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change/m-p/2945293#M694327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this sample code for BAPI_PO_CHANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should help you in your coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm" target="test_blank"&gt;http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 16:04:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change/m-p/2945293#M694327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T16:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change/m-p/2945294#M694328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is some sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; sort infile by ebeln ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at infile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Remove any commas&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    translate infile-onetpr using ', '.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Condense after removing the commas&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    condense infile-onetpr no-gaps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    i_poitem-po_item = infile-ebelp.&lt;/P&gt;&lt;P&gt;    i_poitemx-po_item = infile-ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update price only if the old value is diff. from new value.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if infile-nnetpr ne infile-onetpr.&lt;/P&gt;&lt;P&gt;      i_poitem-net_price = infile-onetpr.&lt;/P&gt;&lt;P&gt;      i_poitemx-net_price = 'X'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update currency if the old value is diff. from new value.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if infile-owaers ne infile-nwaers.&lt;/P&gt;&lt;P&gt;      v_header-currency = infile-owaers.&lt;/P&gt;&lt;P&gt;      v_headerx-currency = 'X'.&lt;/P&gt;&lt;P&gt;      v_flag = 'X'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update price unit if the old value is diff. from new val.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if infile-opeinh ne infile-npeinh.&lt;/P&gt;&lt;P&gt;      i_poitem-price_unit = infile-opeinh.&lt;/P&gt;&lt;P&gt;      i_poitemx-price_unit = 'X'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    append i_poitem.&lt;/P&gt;&lt;P&gt;    append i_poitemx.&lt;/P&gt;&lt;P&gt;    clear: i_poitem, i_poitemx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    at end of ebeln.&lt;/P&gt;&lt;P&gt;      refresh i_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if v_flag = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If the currency change is needed&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        call function 'BAPI_PO_CHANGE'&lt;/P&gt;&lt;P&gt;             exporting&lt;/P&gt;&lt;P&gt;                  purchaseorder    = infile-ebeln&lt;/P&gt;&lt;P&gt;                  poheader         = v_header&lt;/P&gt;&lt;P&gt;                  poheaderx        = v_headerx&lt;/P&gt;&lt;P&gt;                  testrun          = p_test&lt;/P&gt;&lt;P&gt;                  no_messaging     = 'X'&lt;/P&gt;&lt;P&gt;                  no_price_from_po = 'X'&lt;/P&gt;&lt;P&gt;             importing&lt;/P&gt;&lt;P&gt;                  expheader        = v_headerout&lt;/P&gt;&lt;P&gt;             tables&lt;/P&gt;&lt;P&gt;                  poitem           = i_poitem&lt;/P&gt;&lt;P&gt;                  poitemx          = i_poitemx&lt;/P&gt;&lt;P&gt;                  return           = i_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If currency change is not neeeded.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        call function 'BAPI_PO_CHANGE'&lt;/P&gt;&lt;P&gt;             exporting&lt;/P&gt;&lt;P&gt;                  purchaseorder    = infile-ebeln&lt;/P&gt;&lt;P&gt;                  testrun          = p_test&lt;/P&gt;&lt;P&gt;                  no_messaging     = 'X'&lt;/P&gt;&lt;P&gt;                  no_price_from_po = 'X'&lt;/P&gt;&lt;P&gt;             importing&lt;/P&gt;&lt;P&gt;                  expheader        = v_headerout&lt;/P&gt;&lt;P&gt;             tables&lt;/P&gt;&lt;P&gt;                  poitem           = i_poitem&lt;/P&gt;&lt;P&gt;                  poitemx          = i_poitemx&lt;/P&gt;&lt;P&gt;                  return           = i_return.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      clear: v_flag, v_header, v_headerx.&lt;/P&gt;&lt;P&gt;      clear v_first.&lt;/P&gt;&lt;P&gt;      sort i_return by type id number.&lt;/P&gt;&lt;P&gt;      delete adjacent duplicates from i_return.&lt;/P&gt;&lt;P&gt;      loop at i_return where type = 'E' or&lt;/P&gt;&lt;P&gt;               ( type = 'S' and id = '06' and number = '022' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if v_first is initial.&lt;/P&gt;&lt;P&gt;          write: / 'Unable to update', infile-ebeln.&lt;/P&gt;&lt;P&gt;          v_first = 'X'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        i_err-ebeln = infile-ebeln.&lt;/P&gt;&lt;P&gt;        i_err-message = i_return-message.&lt;/P&gt;&lt;P&gt;        append i_err.&lt;/P&gt;&lt;P&gt;        write:  /5 i_return-message.&lt;/P&gt;&lt;P&gt;        delete i_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        refresh i_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 = i_return.&lt;/P&gt;&lt;P&gt;        loop at i_return where type = 'E'.&lt;/P&gt;&lt;P&gt;          write: / i_return-message.&lt;/P&gt;&lt;P&gt;        endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;          write: / 'Successfully updated the PO',  infile-ebeln.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      refresh i_poitem.&lt;/P&gt;&lt;P&gt;      refresh i_poitemx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 16:26:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change/m-p/2945294#M694328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T16:26:14Z</dc:date>
    </item>
  </channel>
</rss>

