Skip to Content
author's profile photo Former Member
Former Member

Account requires an assignment to Cost Object

Hello Gurus,

This seems to be a common error that I need to assign a cost object to the GL account in question but I wanted to explain my scenario and see if indeed I should be getting this error.

I am trying to create a PO with an expense account which gets derived throug OBYC - GBB - VAX combination.

This account is also a Cost element with category 1 (this should not go to COPA).

The material being used for the PO has a profit center attached to it. in OKB9, account assignment detail is 3, profit center mandatory with cost center and profit center fields blank. under 'Detail per profit Center' we have a bunch of profit center- cost center combination each being one to one.

with this setting I am still getting the error. If i default a Cost center on the OKB9 screen, the error goes away, but we want the cost center be based on the material - profit center combination being used.

I would really appreciate if anyone else has come across such issue and how to resolve the situation.

PS. I also tried OBYC -GBB-VAY combination but then PO will also ask for the GL account - which defeats the purpose.

Thanks in advance!


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jan 02, 2014 at 03:13 PM

    Hi Sagar,

    Use Substitutions for your needs from okc9 as the snote

    173071 - OKB9:A/c assignmt to profit.segment and cost center

    as mentioned at below

    Other Terms

    OKB9; automatic account assignment; Profitability Analysis; Substitution; PAOBJNR;

    Reason and Prerequisites

    The cost center defined during document entry is an actual account assignment in CO. The relevant account is only determined via the account determination and not specified together with the cost center when entering a document. The automatic account assignment determination is not taken into account since an actual account assignment already exists.


    The following solutions are possible:

    • You additionally define a cost center in OKB9. You then post the cost center as statistical and the profitability segment as actual. This solution always presents itself if the same cost center is always posted together with the account. When you enter a document you then no longer enter the cost center since it is determined together with the profitability segment in the automatic account assignment.
    • The account defined in the automatic account assignment help is specified together with the cost center when you enter a document. The automatic account assignment is taken into account in this case.

    Should the above solution not be applicable since the cost center must be specified when you enter a document, you can use the substitution exit (Transaction OKC9) to determine the profitability segment. Use Note 39635 as a guideline even if it is only valid until Release 3.1I. When you create the user-exit replace the FORM routines specified in Note 39635 by the ones mentioned below, so that the note is also valid for higher releases.

    Add a comment
    10|10000 characters needed characters exceeded

    • hi sagar,

      as you sad it is about copa, but as the note said only for account base you can use okb9 to auto determine your account assignments, other from that as you sad, you want to use it with material-profit center combination, you should use okc9 whis is refer to substitutions,

      Beest regards,

  • author's profile photo Former Member
    Former Member
    Posted on Jan 02, 2014 at 05:15 PM

    Hi Sagar,

    Did you make the Profit Center assignment in each Cost Center? I believe if you do this, then material profit center assignment picks up the cost center associated with it.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Amir,

      yes that has been done as well under OKB9 but somehow the cost center is not being picked up. I tried the substituion mentioned in the note but that doesn't help either.



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.