on 2013 Oct 12 5:52 AM
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.
Plant | Profit Center | Cash Journal |
1111 | 1111 | 1111 |
2222 | 2222 | 2222 |
3333 | 3333 | 3333 |
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Charmaine,
Please find link below
http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=226299663
Substiution with user exit example
http://saphelps.blogspot.in/2012/08/how-to-use-substitution-method-in-sap-fi.html
Hope this helps
Thank You
Nishu
Thanks Ajay n Nishu , This worked successfully.
Regards,
Charmaine Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
6 | |
5 | |
4 | |
4 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.