<?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 in BAPI_PO_CHANGE Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315848#M1636859</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
06    436   In case of Account Assignment, please enter acc. assignment data for item
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There seems to this functional error and BAPI parameter seems to be correct.&lt;/P&gt;&lt;P&gt;Just try changing this order (FINAL_INV field value) online with ME22n and check if you encounter the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, consult a functional consultant for the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Nov 2011 04:03:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-11-01T04:03:35Z</dc:date>
    <item>
      <title>Error in BAPI_PO_CHANGE Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315843#M1636854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two purchase orders in my ALV internal table. One is received from MIGO and the other is received from ML81 transactions. I want to check the FINAL INVOICE INDICATOR box using FM BAPI_PO_CHANGE for these PO's. PO which is received thru MIGO is working fine. But the PO which is received thru ML81 is giving me error in my BAPIRET2 table.&lt;/P&gt;&lt;P&gt;Below is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    MOVE:  WA_EKPO-EBELP  TO  I_BAPIMEPOITEM-PO_ITEM,
           WA_EKPO-WERKS  TO  I_BAPIMEPOITEM-PLANT,
           'X'            TO  I_BAPIMEPOITEM-FINAL_INV.
    APPEND I_BAPIMEPOITEM.

    MOVE:  WA_EKPO-EBELP  TO  I_BAPIMEPOITEMX-PO_ITEM,
           'X'            TO  I_BAPIMEPOITEMX-PO_ITEMX,
           'X'            TO  I_BAPIMEPOITEMX-PLANT,
           'X'            TO  I_BAPIMEPOITEMX-FINAL_INV.
    APPEND I_BAPIMEPOITEMX.

 CALL FUNCTION 'BAPI_PO_CHANGE'
        EXPORTING
          PURCHASEORDER = L_PO            "Here I am passing PO Number(10020633)
        TABLES
          RETURN        = I_BAPIRET2      "Errors
          POITEM        = I_BAPIMEPOITEM
          POITEMX       = I_BAPIMEPOITEMX.

IF SY_SUBRC = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            WAIT = 'X'.
ELSE.
 CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
ENDIF.

The Errors are:
MEPO  000   Purchase order still contains faulty items
BAPI  003   Instance 10020633 of object type PurchaseOrder could not be changed
06    436   In case of Account Assignment, please enter acc. assignment data for item
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am totally stuck over here. Am I missing any parameters to pass in the BAPI. Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 18:52:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315843#M1636854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-28T18:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_PO_CHANGE Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315844#M1636855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems is all ok in code. Try to change a po using bapi from se37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Oct 2011 02:45:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315844#M1636855</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2011-10-29T02:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_PO_CHANGE Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315845#M1636856</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;As far as i know, The BAPI has two structures, one will take all its respective values to which the PO should be changed and other will take all its change indicators.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it is something like. If you want to change a field you will pass that field in first structure of BAPI and in the second structure you will send the indicator. So to which ever field you pass the indicator that field will change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here in your below code, the first strucuture would be I_BAPIMEPOITEM and the second one would be I_BAPIMEPOITEMX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you pass plant to the first one and do not pass the change indicator to second, then it will not change the plant. Simillarly you have to do for others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for all this to hapen, you need to know according to configuration in your system for a PO, what values should be mandatorily passed to the first strucure so that a particular field in a PO can be changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please consult your functional consultant for all those details to help you figure out any other values which you also need to pass as extra so that the PO can be changed.&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;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Oct 2011 07:30:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315845#M1636856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-29T07:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_PO_CHANGE Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315846#M1636857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi use this to get your values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     CALL FUNCTION 'BAPI_PO_GETDETAIL1'&lt;/P&gt;&lt;P&gt;                   EXPORTING&lt;/P&gt;&lt;P&gt;                     PURCHASEORDER            = P_EBELN&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   ACCOUNT_ASSIGNMENT       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   ITEM_TEXT                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   HEADER_TEXT              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   DELIVERY_ADDRESS         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   VERSION                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   SERVICES                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   SERIALNUMBERS            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   INVOICEPLAN              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                  IMPORTING&lt;/P&gt;&lt;P&gt;                    POHEADER                 = POHEADER&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   POEXPIMPHEADER           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                  TABLES&lt;/P&gt;&lt;P&gt;                    RETURN                   = RETURN3&lt;/P&gt;&lt;P&gt;                    POITEM                   = I_BAPIMEPOITEM&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   POADDRDELIVERY           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   POSCHEDULE               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   POACCOUNT                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   POCONDHEADER             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   POCOND                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   POLIMITS                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   POCONTRACTLIMITS         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   POSERVICES               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   POSRVACCESSVALUES        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   POTEXTHEADER             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   POTEXTITEM               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   POEXPIMPITEM             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   POCOMPONENTS             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   POSHIPPINGEXP            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   POHISTORY                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   POHISTORY_TOTALS         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   POCONFIRMATION           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   ALLVERSIONS              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   POPARTNER                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   EXTENSIONOUT             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   SERIALNUMBER             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   INVPLANHEADER            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   INVPLANITEM              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                   POHISTORY_MA             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                           .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Oct 2011 07:56:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315846#M1636857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-29T07:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_PO_CHANGE Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315847#M1636858</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;Use the FM BAPI_PO_GETDETAIL to get the corresponding details of the PO and then pass these details to BAPI_PO_CHANGE. Also it seems that the PO number you are using does not have the correct information,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using another PO number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 13:36:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315847#M1636858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-31T13:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_PO_CHANGE Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315848#M1636859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
06    436   In case of Account Assignment, please enter acc. assignment data for item
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There seems to this functional error and BAPI parameter seems to be correct.&lt;/P&gt;&lt;P&gt;Just try changing this order (FINAL_INV field value) online with ME22n and check if you encounter the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, consult a functional consultant for the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 04:03:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315848#M1636859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-01T04:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_PO_CHANGE Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315849#M1636860</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;Account assignment are basically used for direct charge of material or material without a material number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K = Cost Center,&lt;/P&gt;&lt;P&gt;P = Project&lt;/P&gt;&lt;P&gt;A = Asset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You specify which account assignment object is to be charged via the account assignment category such as (cost center, sales order, and so on) Which accounts are to be charged when the incoming invoice or goods receipt is posted &amp;amp; which account assignment data you must provide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see this at ME21N/ ME22N  under item overview. &lt;/P&gt;&lt;P&gt;If the posting is directly to a cost center(K) or Asset(A) we need this Account assigment category .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass the account assginment category in : BAPI_PO_CHANGE-POACCOUNT , it depends upon each line item .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps ....!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Swapnil Kamble&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: swapnil kamble on Nov 1, 2011 8:31 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 07:31:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315849#M1636860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-01T07:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_PO_CHANGE Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315850#M1636861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for the responses. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Madhurao and Diwakar:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;I tried to test this BAPI in SE37. If the PO is received thru MIGO, it has only account assignmnet category as F(Order) and if the PO is received thru ML81 then it has both account assignmnet category F(Order) and Item Category D(Service). These account assignments and item categories are seen in Item Overview of transaction ME22N.&lt;/P&gt;&lt;P&gt;Both PO's received thru MIGO and ML81 is working correctly even if I test thru SE37 or directly thru ME22N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Swapnil:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Account assignment category is not available in BAPI_PO_CHANGE-POACCOUNT. It is available in structure BAPIMEPOITEM-ACCTASSCAT. &lt;/P&gt;&lt;P&gt;For a PO which is received thru ML81, I have passed the account assignment category in structures BAPIMEPOITEM and BAPIMEPOITEMX. I am getting same errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Prafull:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The PO type is CALL or RP it is created with 8 digits/charaters(Ex: 10012852). &lt;/P&gt;&lt;P&gt;If a PO type is NB it is created with 6 digits/characters(Ex: 118288).  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Zahid and Venkatesh:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I think I am passing all the fields required in my BAPI parameters. But still I am getting the same error. I am just stuck here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still don't understand, what parameters am I missing. Does any one have any idea why is this happening? Please Advice/Suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 14:33:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315850#M1636861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-01T14:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_PO_CHANGE Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315851#M1636862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though you pass the same details that you are passing in program to the BAPI in SE37 transaction- You are not getting any errors? Is it correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means you are not getting any values in that return internal table from SE37-correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if above is true, then can you check if these messages are of type E or I or W.. I think instead of checking the SY-SUBRC from BAPI.. Try to check this internal table with messages type 'E' as this is the internal table with any error messages if occurs.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkatesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 15:06:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315851#M1636862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-01T15:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_PO_CHANGE Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315852#M1636863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The account assignment category is not available in POACCOUNT, but the GL and cost center are. I think you should be entering them there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 15:34:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315852#M1636863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-01T15:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_PO_CHANGE Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315853#M1636864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkatesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Even though you pass the same details that you are passing in program to the BAPI in 
SE37 transaction- You are not getting any errors? Is it correct?&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the PO is received from MIGO then YES, I am not getting any messages of type "E". But, if the PO is received thru ML81 then I am getting errors as said in my thread above. All these errors are of type "E".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 18:37:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315853#M1636864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-01T18:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_PO_CHANGE Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315854#M1636865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried testing the BAPI in SE37 giving the details as below. But, I am still getting errors. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Import Parameters
PURCHASEORDER = 10013215

Tables
POITEM
PO_ITEM = 00010
PLANT = 0010
FINAL_INV = X
ITEM_CAT = D
ACCTASSCAT = F

POITEMX
PO_ITEM = 00010
PO_ITEMX = X
PLANT = X
FINAL_INV = X
ITEM_CAT = X
ACCTASSCAT = X

POACCOUNT
PO_ITEM = 00010
GL_ACCOUNT = 650080    "I didn't give Cost Center because it is BLANK in my case.

POACCOUNTX
PO_ITEM = 00010
PO_ITEMX = X
GL_ACCOUNT = X

When I execute the BAPI, I am getting errors in my RETURN table.
E  MEPO  000   Purchase order still contains faulty items
E  BAPI  003   Instance 10020633 of object type PurchaseOrder could not be changed
E  06    436   In case of Account Assignment, please enter acc. assignment data for item
E  BS    007  "Material purchase order" is not allowed (ORD 5037567)
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if I have done anything wrong here. Is there any other way I can achieve this? Anybody please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 18:40:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315854#M1636865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-01T18:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_PO_CHANGE Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315855#M1636866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case, check to make sure the leading zeroes are in the line item number.&amp;nbsp; Must be 00010 instead of 10.&amp;nbsp; These odd messages appear when the leading zeroes are missing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 17:14:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315855#M1636866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-21T17:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_PO_CHANGE Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315856#M1636867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nani&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share the solution for this issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 12:14:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-po-change-function-module/m-p/8315856#M1636867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-23T12:14:57Z</dc:date>
    </item>
  </channel>
</rss>

