BAPI_PO_CHANGE for account assignment tab

Hi sdn,
I am trying to chnage the Account Assgnment tab details with the BAPI BAPI_PO_CHANGE and getting below error message.
E     MEPO     000     Purchase order still contains faulty items
I     06     684     Releases already effected are liable to be reset
E     06     436     In case of account assignment, please enter acc. assignment data for item
I am trying to the chnage the line item details for Acount assignment type - Cost center. Item catagory - Limit.
Th evalue i am changing - Gl account and Cost center.
Below is the sample code.
APPEND wa_poitem TO it_poitem.
      wa_poitemx-po_item = wa_poitem-po_item.
      wa_poitemx-po_itemx = c_x.
      APPEND wa_poitemx TO it_poitemx.
        wa_poaccount-costcenter        = wa_po_tmp_c-kostl.
        wa_poaccountx-costcenter       = c_x.
        wa_poaccount-gl_account    = wa_po_tmp_c-sakto.
        wa_poaccountx-gl_account     = c_x.
        wa_poaccount-gr_rcpt       = wa_po_tmp_c-wempf.
        wa_poaccountx-gr_rcpt     = c_x.
      wa_poaccountx-po_item      = wa_po_tmp_c-ebelp.
      wa_poaccountx-serial_no    = wa_poaccount-serial_no.
      wa_poaccountx-po_itemx     = c_x.
      wa_poaccountx-serial_nox   = c_x.
      APPEND wa_poaccount TO it_poaccount.
      APPEND wa_poaccountx TO it_poaccountx.
CALL FUNCTION 'BAPI_PO_CHANGE'
    EXPORTING
      purchaseorder  = wa_po_c-ebeln
      testrun        = v_testrun
      no_messaging   = c_x
      no_message_req = c_x
    IMPORTING
      expheader      = wa_expheader
    TABLES
      return         = it_return
      poitem         = it_poitem
      poitemx        = it_poitemx
      poaccount      = it_poaccount
      poaccountx     = it_poaccountx

Hi I had fixed this problem by creating Enhancement point in the Method .
IF_PURCHASE_ORDER_MM~SET_DATA
at the end of the method.
if sy-tcode = 'ZPO_ACCT_CHANGE'.
free my_recheck_queue[].
refresh my_recheck_queue[].
endif.
Edited by: Naresh Nelapatla on May 13, 2011 5:17 PM

Similar Messages

  • Field selection for Account Assignment Tab in PR

    I set up my own field selection key where only storage location can be changed after release.
    But when I do the test, I found that not only the storage location field but also all the fields in Account Assignment Tab can be changed!!!  (Like cost center, profit center and GL account etc)
    So, please help me to control the fields in Account Assignment Tab. I can't find related setting.
    Thanks a lot.

    You guys misunderstood.
    Here's my business flow:
    I enter PR with account assignment K, input cost center and then save.
    After PR is released, there's only storage location can be changed.
    So I set up my own field seletion key in which I set storage location as optional, and other fields as display.
    But when I use ME52N to check my released PR, not only storage location but also all the fields in Account Assignment Tab can be changed!
    I can't find the corresbonding setting for cost center or GL account in "Define Screen Layout at Document Level".
    I can't use OME9 either, because once I set cost center as display, I have no change to enter even if I use ME51N.
    Sorry I didn't make myself clear enough. Hope you understand now and please help me to solve it. Thanks a lot.

  • In Milestone billing WBS elet field not visible in Account assignment tab

    Hi Gurus,
    Could you pls let me know how to make WBS element field to display in Account assignment tab (Item details of Sales order).
    During Milestone billing in Billing plan tab WBS element is getting displayed where in for Account assignment tab it is not.
    But for TAD (Service) and TAX(non stock) this WBS element field is viewable in Account assignment tab.
    Pls suggest me if any transaction variants are required for this or not? Or else pls provide solution to sort out this issue.
    Thanks in advance
    regards....Divakaran

    Hi Divakar,
    refer this thread
    wbs field in account assignment

  • Component configurator issue - Account assignment tab for SC in SRM 7.0

    Hello Experts,
      We have to disable some fields from account assignment tab of SC. We have identified the webdynpro application as /SAPSRM/WDC_UI_DO_ACC. We started the component configurator /SAPSRM/WDCC_ACC_DEF_SC and under the view V_DO_ACCOUNTING made the fields "DISTR_INDICATOR" and "COPY_TO_CLIP" as invisible.
      The problem is that these fields are still visible in the account assignment tab of the shopping cart.
      Do we need to do any other follow-up activity to disable the fields? Please guide.
    Thanks & Regards,
    Sarath

    An easier way to hide the two elements for you is to enhance the view "V_DO_ACCOUNTING" and remove the drop down and the button. Save and activate the enhancement.

  • Table Control Variant For ME21N - Item level - account assignment tab.

    Dear All,
    I want to change Table Control Screen that is in Me21n(Service PO)>Item level> Account Assignment  tab -> Table control.
    In that table control i want to add one column Name is OrderNo(AUFNR) ,but system is not changing the table control.
    When i m going to change table control scrren in ---> Condition tab its working fine but not for above case.
    Please guide me to solve this issue.
    Regards,
    Sanket.

    Please provide the solution.
    Regards,
    Sanket.

  • Need a Userexit for ME51N, ME52N to access data in Account Assignment Tab

    Hi,
    I am currently using Enhancement MEREQ001, EXIT_SAPLMEREQ_005 to check line item data and display an error message.   That works fine.   My need now is to access the Order Number entered under the Account Assignment tab.
    The import parameter IM_DATA_NEW does not contain this info.   Can anyone please let me know if there is an exit that can be used to access the order number from the screen?
    Thank-you,
    Priscilla LeMay

    First of All, you have to get the information about item, so yo have to call the next method:
    DATA: lv_acc_list TYPE mmpur_accounting_list.
    CALL METHOD im_req_item->if_acct_container_mm~get_items
          RECEIVING
            re_items = lv_acc_list.
    Secondly you must do loop to this table, and call another method for get the information about Account Assigment:
    data: lv_model TYPE REF TO if_accounting_model_mm,
       LOOP AT lv_acc_list INTO ls_acc.
          lv_model = ls_acc-model.
          CALL METHOD lv_model->get_exkn
            RECEIVING
              re_exkn = lv_exkn.
    In variable lv_exkn you have the values.
    I hope it runs ok.

  • Extension of input fileds in Sales order for account assignment

    Dear Gurus,
    Can anyone tell me how to extend input fields like Statistical order(COBL-AUFNR)  and cost center(COBL-KOSTL) in sales order for accounting assignment and these fields have to be ready for manual entries. The order types are ZHGA and ZHV.
    Which program has to be modified and how it can be modified?
    Thanks a lot for help and advice.
    Cheers,
    Ricky
    Edited by: Ricky.Martin on Apr 23, 2010 10:45 AM

    Dear Rajendra,
    There is a manual change for tax classification for material master in va02 initially it was blank now it is changed to ' 0 ' is any way influencing....?
    Definitely material Tax classification will influence to determine the Tax code.
    -->So Make sure that customer and material master having proper tax classification indicator.
    -->Have you Update the price after changing the tax classification in the sales order.by going to item dat -->condition tab then click on Update push button bottom of the conditions screen.
    -->Once again the check the condition record maintanence also for your MWST access sequence.
    I hope this will help you,
    Regards,
    Murali.

  • PO Account Assignment Tab in ECC - with Split Accounting

    Hello,
    We currently are using Funds and WBS Elements within our SAP system.  When both a fund and a WBS Element are used on one line item within the shopping cart, I am able to see all of the information (fund, wbs element, fund center, cost center, commitment item, etc).  However, after the purchase order is created and transmitted to ECC the "Account Assignment Category" is marked as "X - All aux.acct.assgts." and the account assignment tab only has the following column headers:
    - Sequential Number of Account Assignment
    - Quantity
    - Distribution Percentage in Case of Multiple Account Assgt
    - Cost Center
    - G/L Account Number
    - Order Number
    - Asset Subnumber
    - WBS Element
    - Sales and Distribution Document Number
    - Sales Document Number
    - Delivery Schedule Line Number
    - Unloading Point
    - Goods Recipient/Ship-to Party
    - Deletion Indicator: Purchasing Document Account Assignment
    I can see that the fund is within the EKKN table (Field: BP_GEBER) but for some reason ME23N does not have this field in the Account Assignment tab when the category is "X".  How do I add "Fund" into the Account Assignment tab so that it will be visible within ME23N?
    Thanks,
    Katie

    IMG \ MM \ Purchasing \ Account Assignment \ Maintain Account Assignment Categories
    Select details for AAC 'X' and view field settings below.  Set Funds \ Funds Center to required setting e.g. Display.

  • Sales order no and line item no in account assignment tab of line item no.

    Hi All,
    When we display a sales order and go to line item --> Account assignment tab --> we can see sales order no and line item no in that screen. We want to know from where this existing no. in that field is populating from.
    We want to know this as we want to check feasibility of changing sales order and item no to maintenance contract no and line item no. ( Maintenance contract we have to pick from notification)
    If anybody has any idea about this do let me know as this is urgent requirment.
    Effort will be rewarded.
    Thanks in advance.
    Edited by: Satish Bharambe on Jul 4, 2008 10:38 AM

    Hi Satish,
    You mean Accounting assignment tab-->In Settlement rule details
    If yes the order number which is coming in that field Sales order and for which sale order you are looking that details both are the same numbers(i.e Nothing but sales order number).
    When you create sales order system will give number of the sales order the number will come in this place.
    I hope it will help you,
    Regards,
    Murali.

  • Change the Profit Center in Sales Order line item's Account assignment tab

    Hi Gurus,
    I need to change the Profit Center at Sales order Line item in Account Assignment Tab. Currently  The Profit center is coming from Material Master for the Line Item's Material as default but I have to change / overwrite  that.
    Can any body provide me how can i achive that means
    Any User exits, substitution or any thing ?
    I tried MV45AFZZ but i am not able to find out the right place where I can change COBL-PRCTR.
    Sony

    Hi
    There is perform which moves the values to VBAP field.
    This PRCTR field is stored in VBAP (i.e., SO line item table)
    USEREXIT_MOVE_FIELD_TO_VBAP
    Hope it works.
    VVR

  • How to Grey out cost center column in me22n screen(Account assignment tab)

    Hi All,
    I have tried many ways to do grey  out cost center column in account assignment tab of ME22N.
    i have created implementation for this class and method. 
    Class:CL_TABLE_VIEW_MM_2
    Method:PBO_TC_LINE
    Below is the my code snippet.Kindly let me know any suggestions.
    data:  l_tc type char100.
    data:  l_tabix type i.
         l_tc = '(SAPLMEACCTVI)DYN_1000TC-COLS'.
    FIELD-SYMBOLS:<fs_tcdata> type any TABLE,
                    <fs_wa> type any ,
                    <fs_lwa> type any,
                    <fs_screen> type any,
                    <fs_input> type any,
                    <fs_active> type any,
                    <fs_output> type any.
    *data:fs_wa type SCXTAB_COLUMN_IT.
       ASSIGN (l_tc) TO <fs_tcdata>.
       LOOP AT <fs_tcdata> ASSIGNING <fs_wa>.
          l_tabix = sy-tabix.
        ASSIGN COMPONENT 'INVISIBLE' OF STRUCTURE <fs_wa> TO <fs_lwa>.
           ASSIGN COMPONENT 'SCREEN-NAME' OF STRUCTURE <fs_wa> TO <fs_screen>.
           ASSIGN COMPONENT 'SCREEN-INPUT' OF STRUCTURE <fs_wa> TO <fs_input>.
           ASSIGN COMPONENT 'SCREEN-ACTIVE' OF STRUCTURE <fs_wa> TO <fs_active>.
           ASSIGN COMPONENT 'SCREEN-OUTPUT' OF STRUCTURE <fs_wa> TO <fs_output>.
           IF <fs_lwa> = space.
             CASE <fs_screen>.
                WHEN 'MEACCT1000-KOSTL'.
                 <fs_input>     = 0.
                 ENDCASE.
                 endif.
                 ENDLOOP.
    Regards,
    Hiriyappa

    As I can't see any complicated scenario in your requirement. So I suggest you can achieve this by simple standard configuration.
    Go to OME9, double click on the Account assignment category and make the field as Display.
    Then check in your PO.
    But I doubt, your requirement can not be simple like that.
    So either you didn't know the settings or your requirement is different or you are just trying to learn that can it be possible via coding.
    Let us know the appropriate reason for set it as display.

  • How to keep the WBS & Order in account assignment tab of SD contract item?

    Hi Experts,
    If I remove the plant from the shipping tab in the contract item (the contract type is WV), I will be able to enter the WBS or Order in accounting assignment tab. However, if I enter the plant (in order to determine the tax in pricing), the WBS and Order are disappered and there is one new settlement rule button showed up.
    Do you know any configuration could keep the WBS and order in the accounting assigment tab even the plant is there.
    Thanks in advance!
    Norman

    Hi Chandra,
    Thanks for your answer. However, I even added the plant in the WBS, the tax (we use tax jurisdiction) still could not be determined.
    The problem is that SAP changes the account assignment tab screen (it suppresses the WBS and Order fields, but addes settlement rule) with the plant in the shipping tab. Do you know how to keep the same account assignment tab screen with the plant in the shipping tab?
    Thanks,
    Norman

  • What is the purpose of GL account in the account assignment tab of PO scree

    hi,
    in the purchase order screen, in the account assignment tab, there is a field labelled as GL account. May i know what is the purpose of this gl account because as far as i am concerned we need to specify the vendor gl account (in the vendor master) and the stock account and GR/IR account in BSX and WRX transactions in OBYC respectively.
    In that case what is the purpose of specifyin a GL account in the purchase order account assignment tab?

    Hi,
    The fact is quite simple - When you are buying the material, you can be able to define if this is for inventorization or for consumption.  If it is for inventory replenishment, then the stock account will be debited during GR posting.  Otherwise, P&L account will be debited.  The G/L account you have seen in your PO is always needed in case of direct consumption.  At the time of GR posting, the posting lines will be -
    1)   For stock item:
    Dr     Stock Account (BSX Transaction/Event Key);
    Cr     GR/IR Clearing Account (WRX Transaction/Event Key)
    2)   In case of non-stock item:
    Dr     P&L Account (GBB/xxx Transaction/Event Key where xxx is defined in the 'Account Modifier field of the related account assignment category setting in OME9 transaction - which is seen in the PO);
    Cr    GR/IR Clearing Account (WRX Transaction/Event Key).
    Cheers,
    HT

  • Order field at item level Account Assignment tab in Inquiry

    Dear All,
    What is the purpose of u2018Orderu2019 field in account assignment tab of Inquiry?
    When we are running sales pricing DP81, face the error u2018reference is incompleteu2019. So, I had to give the Order no. If it is intended for Profitability segment, what is the importance to PS?
    We have assigned WBS and system det. Profit centre from WBS. But, getting the error u2018Order xxxxx is a networku2019 while trying to give network no. from dropdown button.
    Is there a possibility, we can suppress the Order field.
    Also, where does (tcode) system pick the values for item category in sales pricing? Cause, the required determination exists in VOV4 and in material master.
    Regards,
    Venkat

    item category  is determine from Item Catergory group in Mat master and Sales Doc Type.

  • Account assignment tab is missing in PR(item details)

    Hi
    When we create PR,we select 'K' in the Account assignment in the item overview details,which will allow us to fill the details for G/L account and cost center in the item details,but to surprise account assignment tab is missing ,even we checked the layout settings also,No clue on this.
    Is something am i missing or any problem.
    Thanks
    Lily

    Hi Seema
    Yes,you are right,after giving Account assignment category also it is not displaying
    that tabb in item details.but for all users it is able to diplay,only one user is having this problem,is there any particular setting for this in the user or some layout settings?
    Thanks
    Lily

Maybe you are looking for

  • Cisco IP Communicator not working in Windows 7

    Hi, We upgraded our windows OS from XP to Windows 7. Since then Cisco IP Communicator is not working through VPN. With in office it works fine. The IP Communicator get registered and we are able to hear the dial tone, but when the call connects no Vo

  • Which is better to use in a corprate enviornment for back up Windows 2008 Vs. Mozy

    Which is better to use in a corprate enviornment for back up Windows 2008 Vs. Mozy

  • Stop waiting for erase

    Hi, I lost my macbook air with sensitive information on it. I logged in into icloud and requested a deletion of the data, when the computer is online the next time. Now i got my macbook back () and it has not been online since. I have a backup of my

  • Fonts get switched between FCPX and Compressor

    I edit my video, make some simple intro and outro titles with specific fonts (Gill Sans, Adobe Garamond Pro) and although the fonts look fine in Final Cut Pro X when I send the video to Compressor 4 FCPX swaps out the fonts. It's driving me nuts. I'v

  • Adding  bp balance in following query

    hello sir,          u given me good solution but we want to add two rows in following query 1.  business parner closing balance 2.    checks on account amount. select DocNum, CardCode, CardName, DocDate, DocDueDate from OINV where datediff(dd, DocDue