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