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.

Accepted Solutions (1)

Accepted Solutions (1)

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

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In the validation prerequisite, Are you using the BKPF- BUKRS and BKPF-SYST CODE?

If not, please try this. also check weather validation is in active status or not?

Regards,

Ravi

Former Member
0 Kudos

Hi Ravi,

In the validation prerequisite,  BKPF-BUKRS = 'A' AND BKPF-TCODE = 'FBCJ'.

So I am using BKPF-TCODE instead of BKPF-SYST CODE.

Secondly the status of validation is green on both prerequisite and check.

ajaycwa1981
Active Contributor
0 Kudos

Why you need a Validation for this

Mukhtar is right, you must dis-allow Other Company Codes in KE52

For Mass Maintenance, use KE56

Ajay M