on 07-11-2014 3:00 PM
Hello Friends,
I have added the following validation in Cost Account (OKC7) and have activated it as well, however validation is not triggering and it is allowing user to enter any GL-Cost center combination without restrictions while entering a purchase requisition. I had this working earlier in Sandbox but unfortunately it was refreshed with production data and I am unable to get this validation working.
NOTE: Also I have validation for FI Accounting and it is working fine when invalid combination of GL-Cost center is entered in a set of TCODES.
Here is what I have in my Cost Accounting validation:
Prerequisite:
COBL-SAKNR IN ZGL_5
Check:
COBL-KOSTL in ZCOSTCTR_5 OR COBL-KOSTL IN ZCOSTCTR_4
Message:
Invalid combination of GL <COBL-HKONT> and Cost Center <COBL-KOSTL>.
Also I tried changing the Pre-Requisite to "COBL-VORGN = 'RMBA' AND COBL-HKONT IN ZGL_5
I tried searching the blogs but couldn't find a clue that I could use to fix this issue. Since I had this working in the past in Sandbox, I am still trying to see if this can be achieved without using any user-exits or BADI's (I saw suggestions in some blogs) since I am not familiar with using user-exits.
Thank you,
Devi
Hi Devi
Use HKONT instead of SAKNR and see if it works
Br, Ajay M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ajay,
Thanks for your time!
I did create additional steps with the following validations in Prerequisite but still none of them are triggering (I activated trace).
SYST-TCODE = 'ME51N' AND COBL-SAKNR IN ZGL-5
COBL-VORGN = 'RMBA' AND COBL-HKONT IN ZGL-5
Also please note that Commitment Management active, which means just the validation should suffice and I don't need to work with BADI or user exits.
Thank you,
Devi
Hi Srinu,
Thanks for your suggestion!
Though steps work as expected in simulation, validation doesn't at all when I create a PR using ME51N. It is the same with the pre-requisite and the check you suggested (added as a new step).
I have defined it as Line Item validation (Call up Point 1) and it is activated as well.
COAr Event Validation Active
2000 1 ZSBNA Validations in Controlling 1
Devi.
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.