Skip to Content
0
Dec 28, 2010 at 05:58 AM

Validation rule in CO-CAT9/COFC

129 Views

Hi All,

We have written a validation rule to check the Intercompany (I/C) transactions for CO Internal Postings and if the sender co. code is not equal to receiver co. code, then the validation will throw an error. We process PM order confirmations using CATS and we use CAT9 and subsequently COFC (if required) to post the confirmation and the CO document.

The issue arises when coming to CAT9, i.e., if there are two records, one for the employee assigned to the co. code/plant in the order and another for I/C employee in another co. code/plant and who have worked in the same order, the validation rule is triggering error for both the employees when run in CAT9 and also COFC.

Details of the validation rule is as below:

The validation rule is written under application area Cost accounting u2013 Internal CO posting: Sen/rec val and the rule is as below:

Prerequisites

COBL_SENDER_BUKRS in Allcompany* and

COBL_SENDER_KSTAR in COELEMENT1* and

COBL_RECEIVER_KSTAR in COELEMENTR* and

COBL_GENERAL_GJAHR >= 2010

Then check if

COBL_SENDER_BUKRS = COBL_RECEIVER_BUKRS

Note: COBL_SENDER, COBL_RECEIVER, etc. are all structures and * - sets

The problem is the validation rule is correctly throwing an error if we process an I/C employeeu2019s timesheet separately in CAT9 and no error is thrown if a normal employeeu2019s timesheet is processed

If both records are processed together in CAT9, then the error is triggered even for the correct record. Can we restrict the validation rule only for the wrong entry and allow postings to the correct entry?

Thanks & Regards

Anupama