BAPI_PO_CHANGE problems with Account Assignment in Services

Hi,
I´m facing a problem using BAPI_PO_CHANGE, this is the scenario, every time a PO is changed in ME22N for Company Code X, I need to change a "mirror" PO in Company Code Y which has the same information, this PO contains Services, to achieve this I implemented the Badi ME_PURCHDOC_POSTED and used the BAPI_PO_CHANGE.
It works fine when I change the Service price or Delete an Item, the problem is when I need to remove the delete mark of the deleted item, in both Company the deletion mark is removed but the Account Assignment for the service on Company Code Y is lost even when I'm sending the accounts in the moment I call the BAPI_PO_CHANGE.
Do you have any idea/solution for this?.
Thanks and Regards,
Fabian Fonseca

hi,
see this thread
Re: Using BAPI_PO_CHANGE to change header text of PO
thanks

Similar Messages

  • Problem with " Account assignment category"- Services

    Hello expert,
    I have a problem with the order positions type " D" (Services). At the moment that I indicate that value in the field " Item category in purchasing document" , the field " Account assignment category" he becomes gray, preventing that can be modified later. What could do so that this field is modifiable in the future?
    Thank you!!

    hi
    1. Go to Tcode- OMH4,
    Maintain Acct assignment as "Possible" instead of not possible for Item Category "D"
    2.Go to Tcode - OMG0
    Here maintain Various Combinations of Item Category "D" and Account assignment Categories.
    Then, Acct Assignment Category field in PO item overview will be open for Item Category "D".
    Hope it helps,
    Regards,
    Rahul
    Edited by: RahulNsk on Jun 5, 2009 2:03 PM

  • BAPI_PO_CHANGE problem with accounting

    Hello,
    I'm trying to add a new position to an existent purchase order. But I get the "Account 960000 requires an assignment to a CO object" error.
    The line that I add has the same accounting information as the existent line (even the WBS element).
    I have debugged but, in one moment the new line loss the kokrs & wbs_element in the new line, but I have not able to see why. For this reason I get the error
    Has anybody been in this situation before? My structure call is the next.
    thanks.
    BR
    Parámetros: PURCHASEORDER 7000000452
    Parámetros: POITEM
    PO_ITEM                        = 00020
    SHORT_TEXT                     = ANM.003
    PLANT                          = 1000
    MATL_GROUP                     = 03.1
    QUANTITY                       = 1.000
    PO_UNIT                        = LE
    NET_PRICE                      = 78.690000000
    ITEM_CAT                       = 0
    ACCTASSCAT                     = Z
    GR_IND                         = X
    IR_IND                         = X
    GR_BASEDIV                     = X
    PRICE_DATE                     = 20060619
    Parámetros: POITEMX
    PO_ITEM                        = 00020
    PO_ITEMX                       = X
    SHORT_TEXT                     = X
    PLANT                          = X
    MATL_GROUP                     = X
    QUANTITY                       = X
    PO_UNIT                        = X
    NET_PRICE                      = X
    ITEM_CAT                       = X
    ACCTASSCAT                     = X
    GR_IND                         = X
    IR_IND                         = X
    GR_BASEDIV                     = X
    Parámetros: POACCOUNT
    PO_ITEM                        = 00020
    SERIAL_NO                      = 02
    CREAT_DATE                     = 20060619
    QUANTITY                       = 1.000
    NET_VALUE                      = 78.690000000
    CO_AREA                        = 1000
    WBS_ELEMENT                    = SA1102-06
    Parámetros: POACCOUNTX
    PO_ITEM                        = 00020
    SERIAL_NO                      = 02
    PO_ITEMX                       = X
    SERIAL_NOX                     = X
    CREAT_DATE                     = X
    QUANTITY                       = X
    NET_VALUE                      = X
    CO_AREA                        = X
    WBS_ELEMENT                    = X

    Hi,
    Thanks for your response. but
    -I can do the update online without problems (via ME22N)
    - I just created the purchase order when I tried to do the change.
    I don't know why tha information about wbs_element and kokrs disappear in the execution.
    Any other Idea
    Thanks again
    BR

  • BAPI_PO_CHANGE "No account assignment for service 0000010" SE 518 Error

    Hi  Friends,
    I am using BAPI_PO_CHANGE to add new line item with service data to purchase order.
    For one scenario BAPI give me above error is "No account assignment for service 0000010" SE 518 .
    basically when i pass outline aggrement and contract item to bapi i am getting this error.....according to my observation in outline agrement account assignment is maintain as 'U' but i want to pass outline agrement as 'K' or 'N' so i am passing this into BAPI parameters ,however i feel somewhere it is getting conflict  so it giving above error...
    Please guide,
    Thanks & Regards,
    Bhaskar

    Hi Seini,
    Thanks for reply ..
    I have pass contract number to BAPI ....and i also pass cost center and GL account to account assignment but still bapi giving same error.....I am totally stuck into this i tried a lot with different options..for other scenario BAPI works fine but when I pass contract number with account assignment 'U' and I want to change this 'U' to 'K' or 'N'  for this I pass account assignment to PO line item but BAPI fails in this perticular scenario.

  • Exchange rate problem between GR&IR for PO with account assignment category

    ear SAP experts.
    We have used expense puchase order through account assignment category.
    the cost object include cost center,sale order,order.because we don’t use Fixed assets module in SAP,when purchase fixed assets,we also use account assignment category but no need to fill assets number(Not use account assignment category A).
    the processing in current system when there is exchange rate difference between GR&IR  as follows.
    purchase order Currency :USD  company code currency:HKD
    example 1-- when something purchased into expense account,
    Good receipt  (1USD=7.75HKD)
    Dr :expense account  100USD    775HKD
      Cr: GR/IR        100USD    775HKD
    Invoice receipt
    Dr : GR/IR         100USD    775HKD
        Expense account            25HKD
    CR: Vendor        100USD    800HKD
    Example 2-- when something purchased into Fixed assets account,
    purchase order :USD  company code currency:HKD
    Good receipt on Oct .01. 2007  (1USD=7.75HKD)
    Dr :Fixed assets account  100USD    775HKD
      Cr: GR/IR           100USD    775HKD
    Invoice receipt on Dec.01.2007  (1USD= 8HKD)
    Dr: GR/IR              100USD     775HKD
       Fixed assets account                25HKD
      Cr: Vendor            100USD     780HKD     
    The fixed assets is depreciated from Nov,2007.
    There is one problem that after the fixed assets is depreciated, the value for the fixed assets is added , the finance clerk have to adjust the added value from fixed assets account to Exchange Difference-Gain/Loss account by manual.
    Our problem is
    How to configure in order to make  the exchage rate difference into Exchange Difference-Gain/Loss account for purchase order with account assignment category,not the original assigned account in purchase order item.
    Many thanks
    Fanny

    Hi Fanny
    Even though the question is bit unclear, I guess you are looking for the T-Code OBYC. Use transaction key KDM for configuring the exchange gain/loss
    S Jayaram

  • Purchase order of a service with account assignment to fixed asset

    We entry a service PO with asset accounting. When we select  PO in Ml81n, does not working.
    Anybody nows if there is something to configure to use in that way.?
    Thanks

    hi
    check with account assignment network and settle to WBS and then from WBS to AUC and create final asset and post the value to fixed asset

  • Account assignment for service item not copied from PR in PO

    Hi,
    We have a PR created for a service item from SRM. When we run ME59 it automatically creates the PO without issues by copying the account assignment details from the PR. The problem is as follows:
    1. If we try to manually create a PO using ME21N from this PR, the account assignment is not getting copied from the PR but it throws the account assignment pop up screen where we manually have to enter the account assignment.
    2. The client is using a Z transaction of ME59 which is copy of Me59 but with a few validations (nothing to do with Account assignment). This Z Tcode also fails to create the PO with the error 'no account assignment'. Indicating that the PR account assignment details are not getting copied.
    Note: This is happening for all PR's irrespective of whether its created in SRM or created using ME51N.
    Please let me know if someone has faced a similar issue
    Thanks,
    Lakshmi

    Hi,
    Please check first if notes 1085214 and 1102653   
    could solve the issue. 
    Regards,
    Edit

  • PR with account assignment

    Dear all,
    When we create PR with account assignment (without material master and service no) system gives importance to material group to get GL code.
    If wrong material group is used then also PR is saving without GL code in account assignment tab.
    How we can stop this?
    Manoj

    Hi Manoj
    Unfortunately allowing the use of free text is always going have the downside of making the user responsible for selecting the correct material group. 
    The way I have got round this problem before was to create Generic materials and Generic services.  The generic materials should be expensed directly to a cost object and not be stock items. 
    An example of a generic material would be;
    Material Type     =      GENC copy of NLAG
    Number range     =      9000000000
    Material Description      =      Centrifugal Pump
    Material Group      =      XXXXXX
    Valuation Class     =     XXXX
    This allows the user to select the material master record based on the commodity they want to procure i.e. u201CCentrifugal Pumpu201D and add the addition text at the time of creating the requisition or purchase order i.e. u201CEnd Suction Pump 3M 2900 rpmu201D.
    Since the material master has already been created the material group defaults into the purchasing document and the correct GL Account is assigned based on the valuation class.
    Hope this helps.
    Zimboy

  • PO with account assignment category F

    Hi Gurus,
    For PO with account assignment category F, the system is creating aaccounting documents during GRN for some POs & for some pOs it is not . What could be the reason.
    Regards,
    Kumar

    Hi SAPMM6,
    Check details of account category refernce 'F' whether tick is there for GR Valuated.
    Also when you are creating PO with multi-account assignment then also GR is non-valuated as per SAP standerds.
    Also check the both POs for material code and there valuation classes.
    Hope your problem gets resoled.
    Regards,
    Gitesh

  • Print of GR without material no and with Account assignement K / Q

    Dear Freinds,
    I want make Print out of Material Document with Material text (without  Material code with account assignement K or Q Project). I made out put setting for WE03, Transaction event type WE Print version 3 and Print Item 1, Material document.
    But i am not able to print in after MIGO. In MIGO Disply, it is showing error as "The system could not create any outputs"
    But I can able to make print out for Material document with material no. i am facing this problem only for text without material no with account assignement like K and Project refernce.
    Please guide me.
    Rgds
    Madhavan

    Hi Madhavan
    Go to MN22 , put WE03 , prsee enter , if u r alrady created any condition record , that will be diplayed , now select one line item , and clik communication . then after going in second screen , u will find box as " LOGICAL DESTINATION " ,  put the logical destination ( LP01 ) and check the tick box " print immediately , and save the condition record ...
    after donig these things ur problem will be solved , as i was also facing same problem , after doing this i got solution

  • Is Verizon unwilling or unable to fix problem with Account Owner(s)

    A forum or Google search reveals several customers unhappy with how Verizon treats the account owners... count me as one.  I'm sure there are many more customers who were equally unhappy but just accept Verizon's incompetence and complete the unnecessary gymnastics of un-registering accounts and then re-registering with a new username.
    PROBLEM:
    There are numerous scenarios that can cause a My Verizon account to have the Account Owner be listed with an incorrect telephone number.  In my case, I had an account with AT&T and 3 additional numbers associated.  As each account expired, I transferred the numbers to Verizon.  The first account transferred was my 14yr old son.  I registered a My Verizon account for management (my name & my userid) and eventually added the additional numbers, however, the Account Owner's phone number is listed as my son's cell.
    Over the past 2 years (since I migrated to Verizon), I've had small problems with account notifications and other information being text to my son's cell.  I've called numerous times and customer service says it's corrected, but eventually the problems return.  Recently, I upgraded my phone and started using some new services like Backup Assistant and the fact that the Account Owner is associated with an incorrect number has caused even more trouble.
    I simply want to keep my existing username for My Verizon and correct the cell phone number associated as the Account Owner.  This should be extremely simple.
    VERIZON'S SOLUTION:
    "We can't do it".  "Our systems don't allow us to make this change".
    The Customer Service Department (or Lack of Customer Service Department) tells me that since they can't or are unwilling to do the necessary changes, their only solution is to force their customer to do their work.  They will un-register the account and I can register again.  There is no concern for the preferences of an existing customer (almost 3 years); there is no concern for the inconvenience caused to an existing customer who spends hundreds of dollars each month and thousands of dollars each year (I currently have 2 separate accounts with Verizon, 4 phones on my problem account and 4 phones on another for a total of 8 phones with data plans... do the math); there is no concern that I will now have to use a completely different username one that is no longer uniform with my other accounts; there is no concern that I will have to change any and all services that reference My Verizon.  Quite simply... Verizon Wireless shows their Account Owners that they have no concern for us.
    PROPER SOLUTION:
    I have almost 25 years of Information Technology experience and over 3 years working with Call Centers (similar to Verizon's Customer Service), which explains in part why I find this so frustrating...  the fix for this is SIMPLE!!!  The real problem is that Verizon simply doesn't care enough to fix it because we are existing customers and not new customers.
    Without going into specifics (nor could I since I don't have access to their systems), data for the My Verizon portal is contained within modifiable databases.  These relational databases will be tied to other systems and other databases, but a modification of this type would just require that the portal be allowed to make the update to the appropriate field(s) within the appropriate database(s).  If direct access is not attainable because of their design, it is still not too difficult to write an additional process to accommodate this change.  These types of things are done everyday.
    More importantly, even if Verizon was unable or unwilling to make these programming changes...  I have no doubt that if Customer Service has an escalation process to their I.T. Department that a programmer with access to the application(s) and/or database(s) could easily make the change directly and almost immediately.
    CONCLUSION:
    Until now, my experience with Verizon has been mostly positive even to the point of recommending the carrier to friends and family.  I've found their coverage area to meet my needs and the data speeds to be more than satisfactory.  However, Verizon needs to remember that cellular service has essentially become a commodity and that customer retention is often based on other things than simply providing dial tone.  With a monthly cell phone expense that rivals a car payment, I would think that Verizon would be more than willing to accommodate such a simple request to maintain a satisfied customer.
    If you too are one of the many customers having issue with modifying the Account Owner, just resolve yourself that it appears Verizon is unwilling to make the simple correction to the My Verizon portal to satisfy our request.

    I'm not 100% sure that I follow your reasoning, so please correct me if I misstate your opinions.  I've numbered them so it will be easier to identify any mistakes I make.
    1.  Not allowing a user, customer service representative, or any Verizon representative to change the cell phone number associated with the Account Owner to another cell phone number on the same account is a security risk.
    I'm not suggesting that I be allowed to change the name, social security number, or any other pertinent details related to establishing the original account.  All the information pertaining to who is responsible for the bill remains the same with the single exception that the current associated cell phone number be changed to another number already listed on the account.  In what possible manner is this a security risk?  Frankly if the ability was enabled and someone either by mistake or incompetence made such a change the impact would simply be what I'm currently experiencing (inconvenience).  Since in this hypothetical situation the ability to change this value is enabled, the "inconvenience" would easily be re-mediated by returning the value to its original state.
    Furthermore, if there is some "security risk" that I'm over looking then an organization that is concerned about providing quality customer service would create procedures to accommodate customer requests and meet security requirements.  Let's use a bank (with an obvious security vulnerability) and debit cards as an example.  If I lose my debit card, I cannot go to my computer and print out a temporary debit card (very user friendly, but not secure).  Some banks will allow you to go online and cancel the lost debit card while requesting a new one to be mailed to the address you have on file (user friendly and mostly secure).  To solve this same problem at other banks might require you to go into the office and sign a form cancelling the lost debit card and confirming the address to mail you a new one (less user friendly, but highly secure).  The Verizon equivalent, is me requesting that I add an existing bank account to my online banking and being told "We can't do it".  However, because the bank cares so much about keeping me as a customer... they will delete my account, allow me to create another, possibly losing my historical data, have me change my username that I've been using for years, spend time adding all my online bill payments... all for the pleasure of staying their customer and getting to use their services as they should have been designed.
    2.  Making a software change that would allow users or CSR's to associate a different cell phone number on the account to the current Account Owner would be difficult and require downtime.
    You give some time expounding this thought and I'm unaware of your web, application, and/or database experience... but I will try to address your concerns later.  However, let's assume that you are correct and these changes will be difficult ("taking weeks to months").  The purpose of my post was whether Verizon was unwilling or unable to accommodate this customer request.  You seem to be agreeing that Verizon is unwilling to make these changes, or at the very least, feel that Verizon has decided that the time and expense involved is of more importance than correcting an issue impacting their customers.  I personally find the later equally disheartening as this has been an issue for many customers (you yourself mention experiencing the problem) and has been well documented through previous forum and Internet posts.  Even by your estimations, if they had taken previous customer complaints seriously... this would have been fixed by now.  Once again it seems the obvious answer is that Verizon may not consider customer service as an important factor as I do.
    As far as your technology issues, I agree that more than a web page change would be required.  I do take issue with comparing the change of a distributed application (operating system) that must be designed to support enumerable hardware components to the work required to makes changes to a web portal with a back-end in-house database.  You could write an entire book detailing the differences between these two scenarios as they have very little in common, but I'll try to keep it focused to your points.
    Coding
    Coding an Operating System that must run on literally a multitude of hardware configurations and support an unending diversity of applications is an incredible endeavor and really never a finished product.  Changes to an OS are constantly being made and the developers must consider hardware and software that they are not intimately familiar and occasionally even deal with 3rd parties to facilitate changes.
    The change I'm advocating has a web component which would be replicated throughout their web server topology, however, these are items that Verizon's developers deal with routinely (if not daily).  There are a very limited number of 3rd party concerns (a few different browsers, IE, Chrome, Mozilla & a disparate platforms such as PC, tablet, phone).  A little research in the benefits of web portals (and cloud computing) verses distributed applications will clearly outline the drastic differences.  A simple illustrative question (though maybe not a completely fair analogy) is how many people do you know who can code an operating system and how many people get on GoDaddy and create their own web pages.  I'm not trying to insinuate that anyone who knows a little HTML can make the web portal changes, however, this isn't a difficult project for an experienced developer.
    The bigger issues and ones that I alluded to in my original post are the changes that would be required to Verizon's back-end databases.  The changes that would need to be made mostly likely involve multiple databases and assuming they are using a typical relational database design might require changes to key fields, adding new databases/tables, and exhaustive integrity checks.  This isn't something that an average user could sit down and accomplish in an hour, however, these are simply the routine day-to-day duties of any professional database developer.
    Again I reiterate... this change simply involves allowing someone (either a user, CSR, or other Verizon agent) to readily change an index record or records that correlates Account Owner to cell phone number.  In terms of database management this should be simple.
    Debugging & Deployment
    The debugging/testing of changes made to an Operating System are amazingly complex for all the aforementioned reasons.  The deployment of such changes is even more complex in that you've got to develop the mechanism to push these changes out to the entirety of the user community.  I'll address deployment (or as you said dispersal) of this change because it's the easiest... quite simply there isn't one.  The benefit of having a centralized web portal like My Verizon is that users come to you, not the other way around, and any change made will immediately be accessible by the user community.  There is a deployment aspect in that My Verizon doesn't exist on a single web server, but again this is just the typical topology for a portal of this size and not relevant to our discussion.  Debugging/Testing is an important aspect of any change and certainly Verizon has this methodology in place, however, I'll reiterate that this change should not be complex and shouldn't require extensive testing.  We've also already discussed the fact that any debugging/testing only has to take place on a limited number of platforms.
    Downtime
    If adding the ability to change the relationship of the Account Owner to an associated cell phone number requires any downtime... the person responsible for Verizon's Development, Beta, and Production environments should be fired.  There is simply no way this is even a possible concern.  I've dealt with many companies with far less resources than Verizon and I assure you that changes of this nature would never require down time.  I'm sure they have staff in place whose sole responsibility is to work on their continuity plan.  This is a non issue.
    Other Carriers
    You can't possibly know how all carriers operate, though you may have some past experience with other companies.  I would contend (and maybe I'm too optimistic) that a company with a focus on customer satisfaction when made aware of complaints and/or limitations in their service would seek to rectify the issue.  It's quite possible that whatever other company you are referencing has fixed this issue if indeed it was similar... especially since I've hopefully bolstered my opinion that the resolution is not overly complicated.
    Would you mind telling me if you deleted your 2 original comments to my post before I had an opportunity to answer?  The reason I ask is that last night another user (jimfitzgerald) had posted a comment and I replied.  He later posted a 2nd comment and while writing my response... all the posts were removed (his 2 posts, my reply, and your 2 posts).  I'm curious if this was just a user withdrawal (though I really wish my response had remained in the thread), if there was some sort of technical issue with these forums last night, or if my response was deleted for cause by Verizon or other admin.   Thanks!

  • Import PO with Account Assignment A - Assets

    Hi,
    i am facing a unique problem in scenario of Import Purchase of material with account assignment "A".
    We have assigned freight, Insurance, & Custom condition in PO item level. and also different vendor at condition level.
    Excise detail Viz. Material & Chapter ID condition, Cenvat determination maintained in J1iD.
    While Posting the Custom MIRO, system has posted the entire duty (Custom and CVD) in Asstes. whereas CVD is an input condition and it should go to CVD clearing account.
    GR is showing Non-valuated (no accounting Entry)
    Excise Posting - is showing message that BED amount is 0.
    another Problem is with freight invoice, System is simulating entry in Freight clearing account, whereas there is no corresponding antry exist in freight clearing account for this PO.
    Please guide me if i m doing somting wrong in transaction or any configuration is missing.
    Import cycle is running smoothly for PO without account assignment A (for Inventory Item.)
    Early reply will be highly appreciated.
    Regards,
    Ranjan

    Hi,
    Check under "Delivery" Tab in PO, whether "GR non-valuated" is active if yes then deactivate this indicator and then perform further transactions. to resolve this issue permanently, go to OME9 and for Acct Assmt Cat "A", deactivate "GR non-valuated" indicator.

  • Item category S can only be used with account assignment category

    Hello Gurus,
    When i tried to create a PO then error "Item category S can only be used with account assignment category" is coming
    for my plant and material.
    Could you please tell me where i have to maintain the setting of account assignement for a plant or material.
    In TA:-OMG0 item catergory S is maintained for a account assignement F but still this issue is coming.
    I think there is a problem in plant or a material.
    Please help me.
    BR

    Hi,
    How you are creating PO  ,so that you have error "Item category S can only be used with account assignment category"
    Check what t.code used for your PO creation and what document type used for your PO creation- which result defaulting item category S which in turn asking for  with account assignment category.
    Cross check transaction variant or screen variant used for your PO creation!
    Regards,
    Biju K

  • Subcontract GI with account assignment Q

    hi guys,
    I have a problem in subcon GI to vendor with account assignment Q (project specific).if i am raising a PO with item category L and with out any account assignment, i this case i am able to do GI in ME2O.
    But, with account assignment Q, It is not appearing In ME2O.
    thanks in advance
    vikram

    You cannot do hat because subcontacting itself is a special stock(when you do GI), hence you can have two specila stock indicator for the same stock( Q and subcontracting)
    If you want to send it to vendor then you need to release the stock from Q stock to unresticted then go GI-541(o),, then if you Do GI then system will transfer from UN stock to specila stock i.e. subcontactor stock)
    please come back if you need furthur information

  • Problems with accounting integration cProjects

    Dear Sirs,
    I have some problems with accounting integration between my cProjects 3.10 and my ECC 5.0 system. I have followed the steps in the configuration guide as good I as can. However when I create a project, and go the accounting tab I get the following error:
    The project is unknown in Accounting
    Message no.
    DPR_FIN_GECCO006
    Diagnosis
    Etc..
    In the Cockpit for Controlling Integration I can see the following error at the time the project is created, and a new similar error is created when the status is set to released – replicated.
    No company code could be determined. Message No IAOM_CPROJECTS001. 
    In this message there is a reference to the fact that the company code can be set in the assigned model order for CPR1. I have created such a model order with a reference to company code 0100 for CPR1. However this does not seem to do the job.
    I seem to be stuck, as I have tried every possible and unpossible lead to get any further. Any input for someone with the knowhow is highly appreciated.
    Best regards,
    Jørgen Ruud

    Hello Jørgen,
    It sounds strange, normally after create a model order and assigned to the scenario CPR1, then the determination of company code should work.
    logic: CPR1 -> model order -> company code
    Would you please try the note 875275, if it can help.
    In case that it does not help, you can eithter use the Badi method  to set it hardly, or create a customer message to let SAP check it.
    name of Badi DPR_FIN_GECCO_ATTR
    code like following:
          ls_attribute-data_element     = space.
          ls_attribute-value            = '1000'. 
          ls_attribute-field_name_orext = 'BUKRS'.
          ls_attribute-fldname_receiver = space.
          ls_attribute-struc_name_copa  = space.
          ls_attribute-field_name_copa  = space.
          ls_attribute-ext_attr_name    = space.
          ls_attribute-ext_attr_value   = space.
          INSERT ls_attribute INTO TABLE ct_attributes.
    regards!
    Zhenbo

Maybe you are looking for