Validation Restricting Entry to One Cost Object

I am trying to create a validation in GGBO to restrict postings of Vendor Invoices (KR doc type) and journal entries (SA doc type) to only one cost object (cost center, internal order or WBS element) on expense account lines.  I understand standard functionality limits posting to only one "real" object; however, getting the business to understand has proven difficult so I need a validation.
I have the following in the Prerequisite:
BKPF-BLART = 'KR' OR BKPF-BLART = 'SA' AND
BSEG-HKONT >= '700000' AND
BSEG-HKONT <= '799999'
For the check I have tried numerous ways, but below is one attempt:
BSEG-AUFNR <> ' ' AND BSEG-KOSTL = ' ' AND BSEG-PROJK = ' ' OR
BSEG-KOSTL <> ' ' AND BSEG-AUFNR = ' ' AND BSEG-PROJK = ' ' OR
BSEG-PROJK <> ' ' AND BSEG-AUFNR = ' ' AND BSEG-KOSTL = ' '
Nothing is working and I am getting frustrated.  Any ideas?
Thank you in advance!

You should write it as below:-
Pre-requisites:-
( BKPF-BLART = 'KR' OR BKPF-BLART = 'SA' ) AND
( BSEG-HKONT >= '0000700000' AND BSEG-HKONT <= '0000799999' )
Check:-
( BSEG-AUFNR NE ' ' AND BSEG-KOSTL EQ ' ' AND BSEG-PROJK EQ ' ' ) OR
( BSEG-AUFNR EQ ' ' AND BSEG-KOSTL NE ' ' AND BSEG-PROJK EQ ' ' ) OR
( BSEG-AUFNR EQ ' ' AND BSEG-KOSTL EQ ' ' AND BSEG-PROJK NE ' ' )
Message:-
As you need.
Regards,
Gaurav

Similar Messages

  • Validation rule on Cost Object for Manual Journal Entry

    Hi Experts,
    We have an issue regarding General Ledger Account to be posted manually (FB01,FB50...).
    For this posting the busines required only one Cost object (WBS or IO or cost center) is needed.
    The problem is that I can not define a Field status group who require only one assignement, either WBS or IO or COPA.
    Thus all General Ledger Account is alraedy created as Cost Element.
    How can I create this validation rule ?
    Thanks for help

    Hi Shoeb
    SAP allow only one cost object to be filled at one time in order to avoid conflicts. example- CC, WBS, IO etc. you can enter only any one of these in one particular document. how ever balancesheet items are not needed to be filled this.
    Hence I guess your validation issue may be already taken care by SAP standard solution. You may keep all cost objects as optional in you Field status group so that it allow any values.
    Cost elemets categoroes (primary, secondary)are different than cost object (CC, orders, wbs etc).
    if you still need a validation please specify the purpose of validation. hope this helps.
    best regards
    Jomon

  • Cost assignment-Multiple cost objects being selected by default from the EP

    Hi,
    I have created an expense report from the Portal and entered the cost object - a WBS element and saved the report. Now, when I check in table: PTRV_SCOS, it shows me the cost object assigned are - both - the WBS Element as well as the Cost center. This is incorrect as there should be only one cost object - either the cost center or the WBS element. However, when I book the expenses from the backend, it works fine. Only the WBS or cost center is displayed in the table mentioned above. Anyone has any idea as to why this is happening?
    Many thanks in advance for your efforts.
    Cheers guys.
    Hope to hear from you soon
    Best regards,
    Tanmay Dhingra
    Edited by: Tanmay Dhingra on May 17, 2011 10:05 AM

    Hi All,
    First of all, thanks for your responses..
    Right, about the issue, what I explained here was that I am indeed assigning only one cost object: the WBS element. The issue was that even though I am assigning only the WBS element, it was also assigning the cost to the cost center by default. I did some R&D and found the solution to the issue (I was also asked to look for OSS notes but was not satisfied that this issue needs an OSS note to be applied so tried my solution). The issue was in table: T788M (allocate costs to variable account assignment). Here, I created an entry and called it USERGROUP_2 (just a random name) and assigned the variable cost objects (only the WBS and the Cost center) to be displayed. In the next step, I assigned this usergroup to the country in quesion feature (TRVCO). By doing this, I tell the system that only these cost objects are to be considered when an employee wants to assign the cost object. If the system sees that there is no value from the drop down to choose from, it picks up the default cost object (cost center). This was a simple issue that I had to rattle my brains on... but the solution I mention above worked like a hot knife going through butter...
    If you guys face this issue, please try this else feel free to get in touch with me on my number below.
    Once again, thanks for your responses.
    Best regards,
    Tanmay Dhingra
    +91 880 6666 606

  • Create confirmation for multiple cost objects PO in SUS

    Hi,
    Is it possible to create confirmation for multiple cost objects PO ( order type 'MA') in SUS ?
    We are going to implement SRM 7.
    Thanks & regards,
    Afandi-

    Hi All,
    First of all, thanks for your responses..
    Right, about the issue, what I explained here was that I am indeed assigning only one cost object: the WBS element. The issue was that even though I am assigning only the WBS element, it was also assigning the cost to the cost center by default. I did some R&D and found the solution to the issue (I was also asked to look for OSS notes but was not satisfied that this issue needs an OSS note to be applied so tried my solution). The issue was in table: T788M (allocate costs to variable account assignment). Here, I created an entry and called it USERGROUP_2 (just a random name) and assigned the variable cost objects (only the WBS and the Cost center) to be displayed. In the next step, I assigned this usergroup to the country in quesion feature (TRVCO). By doing this, I tell the system that only these cost objects are to be considered when an employee wants to assign the cost object. If the system sees that there is no value from the drop down to choose from, it picks up the default cost object (cost center). This was a simple issue that I had to rattle my brains on... but the solution I mention above worked like a hot knife going through butter...
    If you guys face this issue, please try this else feel free to get in touch with me on my number below.
    Once again, thanks for your responses.
    Best regards,
    Tanmay Dhingra
    +91 880 6666 606

  • FX Revaluation with default Cost Object Assignment

    Hello,
    When we run the FX revaluation program FAGL_FC_Val, SAP books one side to
    the balance sheet account and the other side to the P&L account for
    unrealized FX Loss/Gain. Since this account is also created as a cost
    element, it requires a cost object. However, FX revaluation program posts
    the entry without a cost object. We have tcode OKB9 - Default Cost Center
    Assignment but SAP does not take values from it.
    We are on ECC 6.0
    Any assistance is sincerely appreciated.
    sumit

    Hi,
    if the P&L account for unrealized FX Loss/gain is created as cost element a posting can only take place if there is a cost object assigned.
    You wrote "However, FX revaluation program posts the entry without a cost object" but thats not possible. There must be a cost object, maybe not the one you are expecting...
    Maybe the OKB9 entry is maintained for comp. code A the FX valuation is done for comp. code B? Maybe there is a substituion rule created that changes the OKB9 default cost object?
    Please check, and come back.
    best regards, Christian

  • Can we post to two real cost objects?

    how many cost objects can we use at the time of posting? and how many real objects can we use at the time of posting? as far as my knowledge we can use one real object. but in one interview , the interviewer said that we could use two real objects? if he is correct, please give clarification on this.
    Thank you for your valuablt time and valuable answer  in advance
    AAR

    Hi,
    You can always do manual reposting like you pass Journals in FI. Or for that matter when you do allocation of expenses using Distribution.
    Basic idea is you cannot debit 2 cost objects for the same expenses at the same time. as long as you follow the accounting principle of debiting one cost object & crediting another, that is allowed.
    Regards

  • Please put a cost object with valid JV data for GL accoutnt (line 001)

    Dear All,
    When the user is trying to post ASKBN, They are getting an error saying "Please put a cost object with valid JV data for GL accoutnt (line 001)"
    So we tried to look up the error, and the WBS, Cost center, profit center and JVA details are all available in place. Still cant understand why this error comes. And why the system is asking to put JV details when they are available.
    On checking, WBS has an AUC and AUC has the cost center which has the JV details and PC details. So I think everything is in place.
    Can someone help please and let us know if we are missing anything else that needs to be checked ?
    Thanks,
    Hari Dharen

    Dear Hari Dharen,
    if something else in missung you'll get a error message if you run ASKBN in testmodus.
    regards Bernhard
    Edited by: Bernhard Kirchner on Oct 5, 2010 8:55 AM

  • GL Account : Cannot be posted to cost object, please check your entry

    Dear All,
    I've problem in general posting or in FBCJ (cash journal) ....
    When I try to make journal  : Debit Expense  and Credit Cash in F-02 or in FBCJ then I chose Post an error appear " Cannot be posted to cost object, please check your entry " ..
    Because GL account "Expense" assigned to cost element, I need to fill cost object ... when I filled it with Internal order or WBS, the error appeared , but there was no error when I filled with Cost center ....
    For your info there was no problem with Field Status Group ( I thought ) cause I ticked with Optional entry for WBS and IO ...
    Beside it, I've assigned the company code in Controlling Area and Operating Concern ...
    Network in WBS was in optional
    Please give me solutions
    BR,
    David Sindhu
    Edited by: david_sindhu on Jan 26, 2011 12:06 PM

    Hi Alex,
    The posting key was 40 and there was no problem as I choose Optional ..
    My WBS was not statistical ...
    Any idea ?
    Edited by: david_sindhu on Jan 27, 2011 3:18 AM

  • Validation, which prevents  internal cost allocation between cost objects..

    Dear Experts,
    Can anyone assist me in how to create a validation, which doesn't let internal cost allocation to occur between the cost objects of different company codes. What steps to take?
    Thanks,
    Erne

    Dear Ajay,
    Thanks you for your answer, although I'm still in doubt about, which way to go with this. 
    I would like to do this the simplest way possible, but since I'm new to CO it's hard to figure out the right way.  For the same reason I don't know much about the cycles either, but I'm on it to figure out how they work.
    Are you sure there is no way to do this using validations? 
    Erne

  • Error while doing MR11 as enter Profitability segmet as Cost object

    Hi All,
    While doing MR11, we noticed a error message (ZC - 001) as "Enter Profitability segment as Cost object for Revenue and COGS posting".
    The specified Material account is created as Cost element (CE Category 11) and in OKB9 configuration this cost element is choosed (ticked) with the option "profitability segment". Also there is no substitution rule to derive profitability segment in OBBH substitutions.
    However there is a validation (GGB0), where the above specified Material account is included in the range of accounts in the Prerequisite, and Check as "Profitability segment is > (greater than) 0000000001 and with the message maintained as "Enter Profitability segment as Cost object for Revenue and COGS posting".
    Can any please help why this error has come at the earliest.
    Thanks & Regards
    Karun

    Hi Eli,
    Thank you very much for reply.
    I hope the note 184987 is not applicable in our case as the Field status of specified Material account does not have required entry for Profitability segment.
    Can you please let me know if we have entry in OKB9 and existance of entry in Validation creates the problem and throws the above error message?
    With regard to other note 134484 which you have specified on "error in Account assignment check in MM transactions" says "A detailed default account assignment (for example profitability segment) was defined in Transaction OKB9. However, the profitability segment is not set up correctly for goods movements: the characteristics material, plant, business area are missing. A later check of the profitability segments against material, plant and business area then generates an error message since the profitability segment is inconsistent".
    Is there any way to confirm whether this situation is leading to our error before implementing this note.
    Thanks & Regards
    Karun

  • Error in Distribution of Actual cost in Cost Object Hierarchy

    Hi,
    I am getting an error while doing the Distribution of Actual cost from Cost Object Node to the assigned Order.
    Cost element/origin 630000 could not be distributed
    Message no. KZ468
    Diagnosis
    The cost element/ origin 630000 could not be distributed because there are no target costs for this cost element/origin or for cost element group CO-PC-TOT.
    Procedure
    Check the calculated target costs and cost element group CO-PC-TOT assigned to the target cost version.
    Procedure for System Administration
    Proceed
    Although the Cost element is Present in cost element group CO-PC-TOT.
    One more information, the order  that is assigned in Cost Object Hierarchy is of CO-Product orders.
    I have searched in the forum but I havent got any solution.
    Kindly help.
    regards
    Kami

    Hi,
    Concerning error message KZ 468, it has the following origin: In the  customizing of the cost object category (transaction okz5), check if the 'single object selection' is set to 'Control through variance key'. If you consider the F1-Help for this option you will find the following  explanation:
    if the indicator Control through variance key is turned on, the production order, process order, or product cost collector can only be assigned to the cost object hierarchy if:
    -> The material is assigned to the lowest node of the hierarchy
    -> No variance key is specified in the order
    The important point is, that orders that have a variance key are excluded from the cost distribution.
    In transaction KKF8 you will find that all these orders do indeed have  a variance key. Hence, all of these orders are included, there are no target costs from the orders and the costs cannot be distributed. Thus the error message kz 468.
    Please consider that and check the customizing again.
    Not having target costs in the distribution indicates either a wrong set up of the hierarchy or, more likely, no valid cost estimate for a certain material of a production order or product cost collector could be found.
    Did you check whether for this cost element/origin target costs exist, and also for the cost element group? If not the message KZ468 is correct and probably the cost element group has to be maintained properly.
    The distribution of actual costs calculates target costs on-the-fly and the variance calculation does not have to be carried out before. Quite the opposite than the variance calculation requires the distribution as a preceding step. Furthermore it is not sufficient that one cost element is in a cost element group but the interval where the cost element has been assigned to has to have some target costs. Otherwise this won't work and message KZ468 is issued.
    regards
    Waman

  • " Automatic creation of Cost object owners"

    Hello Experts,
    I am working on a rollout project, for "Inter Company Service Invoicing (ICSI)"
    Presently my client requirement is " Automatic creation of Cost object owners"
    First of all i will explain the process
    In ICSI there are two parties one is Service Requestor(SREQ) and other one is Service Provider(SPROV)
    Depending on SREQ requirement SPROV will create a SO and send it to SPROV
    It will reach SREQ contact person, he will updates Cost objects, and send it to SREQ reviewer person, he will check the cost objects and send it to Cost object owner of the SREQ.
    He will approve the SO, once all approvals hasbeen done, then system automatically converts SO to IV, and post entries on both sides automatically ata the same time.
    Here my requirement is on SREQ side the Cost Object Owner should find automatically.
    And we done this proces in Portal itself.
    Your suggestions will be great help to me, and are appreciated.
    Thanks in advance
    Any inputs please...............
    Regards,
    Satya.

    Hello Ajay,
    Thank you for the response.
    But my requirement is not to populate cost objest.
    It is the approval flow. The reviewer person will check and add the cost objects to the service order and send that Service Order for the final approval i.e.. Cost Object Owner.
    So here my requirement is the System has to create that Cost Object Owners Automaticlly
    How can i achieve this?
    Regards,
    Satya

  • In VFX3,error is for GL requires an assignment to a cost object eventhough

    In VFX3, while releasing billing docu for Accounting  error is for GL40000000 requires an assignment to a cost object
    The below are Checked points :
    1.In OKB9 for this cost element  40000000 cost center assignments are there with Business area wise.
    2.Cost center Valid period is from 1.4.2007 to 31.12.9999
    in the begining  while releasing in VFX3, system throwed  error as that cost center  blocked for revenue postings,
    We deselected that check box(Actual Revenues in KS02)
    now the error is GL 4000000 requires  an assignment to a cost object
    Even though cost center assignments are there but why system is asking cost object  not able to understand.
    Please any one help me to solve this issue.
    Thanks

    Nope, no other ways.
    The cost center in question will receive a statistical posting - revenues aren't costs, and can't be carried in CCA as primary postings.  If they could, they'd be able to be included in rate calculation, allocations, etc, which is nonsensical.
    You'll have to have another receiver in CO that can receieve a real posting.  That's pretty much an internal order, WBS element, or profitability segment.  Profit center doesn't count; all postings to PCA are statisticial (PCA is a special-purpose special-purpose-ledger, if you get my meaning.)
    Two questions:
    1) Do you have costing-based CO-PA active in your system?
    2) Have you verified the business scenario?  Why do you want to record revenues in CCA in the first place?

  • Movement type 412 E - cost object

    Dear Gurus
    When i was  doing reservation  of Raw material  stock to  Sales order, by using movement type  412 E, while system showing the cost object error message   Why this error is happen? because as my understanding point of view sales order is one of the cost object  another one thing morning the same entry happened with out cost object error , but now system showing error
    suppose if we assign the default cost center also what will happen , where can i get the  effect
    This kind of urgent , can anyone give me your suggesstions
    Thanks & Regards
    Venkatesan

    Hi
    Your requirement class settings must have had sales order as a cost object
    1. Go to sale order, procurement tab
    2. Check whats the req type
    3. Go to OVZH and check whats the req class assigned to this req type
    4. Go to OVZG and check whats the acount assignment cateory in req class.. I think it is E
    You should use a proper req class/type to avoid this error
    br, Ajay M

  • Assign Cost Object to Bal. Sheet Account???

    Hi experts;
         I found at my customer site that they set the fields of WBS element, Cost Center, Profit Center and Network are applicable with Bal. Sheet accounts at the time of Document entry like F-02.
         When I discussed with them that the B/S accounts should not be linked to any cost object and cost objects are only for the P/L accounts they said yes that is right in general, but they do that with some certain accounts like the Accrued Revenue to know exactly how much is expected to be collected from each project.
         But also as far I know that through the Document Split function on system I can get such result because if we assigned a Cost Obj. to a P/L account the system assign it to the other line of the document entry if it is B/L account, but I did not practice the Doc. Split before.
         So can someone kindly advice wither such process is correct or not? and if not, does it has any wrong impact if they insisted to do it? And does the Doc. Split can really help in such matter?
    Many thanks in advance;
    Best regards;
    Ahmad Mahmud;

    Hi Ahmad Mahmud,
    The below is taken from SAP Note 75978 - Cost element type 90
    "Cost elements of category 90 were introduced with 3.0 to enable an availability control on an internal order assigned to a fixed asset even with directly activated asset acquisitions. This functionality is guaranteed by SAP and will be enhanced by the planning of these cost elements in Release 4.0.
    The check, however, that cost elements of category 90 can only be created for asset reconciliation accounts, has only been made since Release 3.0F. Before, it was possible to create any balance sheet accounts as cost element of category 90. Since cost elements created this way were not covered by functionality provided by SAP, various errors may occur when you post to these cost elements."
    As you can see SAP does not support cost element type 90.
    However I used them on e few projects and never have any problems.
    Just to give you an example of the reasons they are sometimes needed:
    - you need to record production quantity in CO-PA. You will create cost element type 90 for your inventory account. Every GR from production order will update quantity in CO-PA.
    The question about splitting is quite ineteresting.
    Maybe one of the NewGL experts can help you here.
    Regards,
    Szymon

Maybe you are looking for