Skip to Content
Former Member
May 25, 2016 at 06:38 AM

Validation for Correct Profit Center against Company code in Cash Journal.


Hi Gurus,

In cash journal my end user is able to post line item against profit center of other company code e.g. I have A and B company codes and A has 1 and 2 profit centers and B has 3 profit center while I am posting in Cash journal of A against balance sheet G/L I am still able to post against profit center 3 which is of B company code.

Now I am trying to write Validation rule in GGB0 like this

Prerequisite- Company Code = 'A' AND Transaction Code = 'FBCJ'

Check- Profit Center = '1' OR Profit Center = '2'

Message- Message Type 'Error' (Enter Correct Profit Center)

When I try it in 'FBCJ' it is still letting me post against wrong profit center.

Is there anything wrong in the validation I have written. Your suggestions appreciated.