cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Validation of profit center in FBCJ

Former Member
0 Kudos
1,016

Hi,

Plz help me with this scenario

The business has defined Plant = Profit Center and for each Plant there is Cash Journal

Now the requirement is such that , there is a restriction required that in each cash journal only the respective profit center should be used.

For.Ex.

PlantProfit Center Cash Journal
111111111111
222222222222
333333333333

At the time of FBCJ posting for Cash Journal-1111 ,system should only allow profit center 1111 .

                                              Cash Journal-2222, system should only allow profit center 2222 . and so on.

We Cannot work with the authorization check as  these cash journals are being centrally posted to for all plants.

I'm unable to find a suitable user exit, or how can this be addressed through validation.

Please help

Regards,

Charmaine Martin

Accepted Solutions (1)

Accepted Solutions (1)

former_member211635
Contributor
0 Kudos

Hello,

The best way is validation and substitution

You have to check following:-

1.BKPF-TCODE = 'FBCJ'

2. BKPF-AWKEY = 'XXXXXX' (It is a combination cash journal and company code)

3. BSEG-PRCTR = 'XXXXXXXX' (Profit center where you want to allow for the above mentioned cash journal

Below it the link which shows how to create substitution, however you can apply the same logic for validation (use tcode ob28 and you will get the similar screen)

Hope this helps

Thank You

Nishu

Former Member
0 Kudos

Hi Nishu,

Please attach the link, also can please guide on how to use the user-exits in validation as i will have  get only the four digits of the cash journal from the AWKEY.

Regards,

Charmaine

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks Ajay n Nishu , This worked successfully.

Regards,

Charmaine Martin

Ramabhadran
Explorer
0 Kudos
Hello Charmaine Martin, How did you manage to do this? I am facing a similar requirement. Could you please guide me step by step? Would be of massive help. Thank you. Appreciate your help!
ajaycwa1981
Active Contributor
0 Kudos

Hi Charmi

You can use subst instead of validation.. I believe you will have to use user exit in substitution, direct subst wont work.. You need to COPY exit RGGBS000 to a Z and then code it as you need

When you write subst, you will choose Field PRCTR and the method as user exit...

Just specify the prerequisite as BUKRS = XXXX, Doc Type = YY

And specify the user exit form name. Forms are inside the user exit like U01, U02, etc.. Whereever you are writing the code, specify the same form name in your user exit... This will execute only that specific portion of the program instead of the whole program

Br, Ajay M