cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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.

View Entire Topic
former_member198650
Active Contributor
0 Kudos

Hi Jawad,

Instead of defining validation, go to KE52 and remove the check box co.code A for the PC 3. Then it wont allow you to post to other co.codes.

Regards,

Mukthar

Former Member
0 Kudos

Hi Mukhtar,

Thanks for precious input but it could effect other cross company code transactions and my system is mature, I don't want to change master data at this stage. I only want to restrict on specific cash journal tcode.

Regards,

Jawad

former_member198650
Active Contributor
0 Kudos

Hi Jawad,

Then create a validation as shown below:

Prerequisite : BSEG-PRCTR = A OR BSEG-PRCTR= B AND SYST-TCODE=FBCJ

Check : BSEG-BUKRS = A

Message: Defined error message

After that, activate it co.code in OB28.

Regards,

Mukthar