on 01-19-2010 6:17 AM
Hi,
The requirement is the user should be able to post in FBCJ with all the GLs in FBCJ using a particular Profit center which is dedicated for each location.
I have created sets for the following :
1) user name, 2) GLs and 3) Profit centers
1) When i try to create a validation by mentioning the transaction code - FBCJ, the users were not able to post in other normal posting transactions like FB01, F-02 and FB50.
2) I created a set for transaction codes and mentioned all these tcodes in my validation. The users could post to FBCJ and other tcodes properly. However, in other tcodes, they were given access only to these Profit centers mentioned in the set.
My issue is, the users should be restricted with the GLs and PCs only in FBCJ. And other transactions they should be able to post in the normal manner.
Is there any solution for this?
Can authorisation objects in basis, used for the same. If yes, Please let me know the process for the same.
Regards,
Nechur
Hi Nechur,
Why you went for validation I could not understand first of all. You can create different cash journals for different profit centers/areas. Later You can create Business transactions and assign specific GL Accounts/ GL accounts can also be given for input. Naturally through Basis you can give authorisation to a specific individual for that particular profit center or area. Only when you want to have limit check of above Rs.20,000/- you can go for validation I think.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nechur,
I hope this works:
Prerequisite:
SYST-Tcode = 'FBCJ' AND SYST-UNAME in Set Users will ensure that the check is only performed for that transaction and
the set of users. If another user calls FBCJ the check won't be done
If one of the users in the set does eg FB02 the check won't be done
Check: bseg-hkont in Set GL accounts and
bseg-prctr in Set Prctr if GL account is not in set, an error will occur
if profit center is not in set, an error will occur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Must both conditions be true? My suggestion requires that the user posts to GL accounts in the set AND to profit centers in the set. If only one of the two conditions is required, change the check to
bseg-hkont in Set 1 or bseg-prctr in Set 2
If this expression is not true, then you should get an error message.
Ingrid
Now let's get this clear:
User A is allowed to post FBCJ with account 12345 and profit center xyz. He is also allowed to post FB01 with any account.
But he should not use FBCJ with account 54321, regardless of the profit center. Also he should not post to 12345 with profit center zxy. Is that what you want?
Then I think you need this:
syst-tcode = 'FBCJ' and syst-uname in set of users
check
( bseg-hkont in set of accounts and bseg-prctr in set of profit centers ) or
( ( not bseg-hkont in set of accounts ) and ( not bseg-prctr in set of profit centers ) )
Scenarios Tested:
1) Included my name in the user set and tested with your validation. Couldnt post in FBCJ. Used the PC which is given in the set. However, i could post in FB01 with the same PC.
2) Used a different PC which is not in the set. Couldnt post in FBCJ and FB01.
Is there any way out?
Please copy the prerequisite and the check you coded into your next answer. If you have syst-tcode = FBCJ in the prerequisite, this validation step will NOT be performed for FB01 or whatever other transaction you use.
The validation itself must be one on line item level (call point of validation in OB28).
0001 Document Header
0002 Line Item
0003 Complete Document
If you don't want anyone posting to a specific profit center at all, regardless of transaction used (that's what you imply ), then you should validate that in a separate step.
As this validation works perfectly in my system, the only fault now could be with the data.
Can you try the logic with single values rather than with sets? Just put your userid in the prerequisite and use one account / one profit center.
Prerequisite:
SYST-TCODE = 'FBCJ' AND
SYST-UNAME I= 'ABCD'
Check:
( BSEG-HKONT = '0123456789' AND
BSEG-PRCTR = 'ABCDE' ) OR ( ( NOT BSEG-HKONT = '0123456789' )
AND ( NOT BSEG-PRCTR = 'ABCDE' ) )
Is it really the G/L account (BSEG-HKONT) that you test, or is it a bank account/vendor etc?
Have a look at a posted document and check the field name with F4 / technical information.
And what also makes me wonder is that your validation seems to have impact on the use of other transactions. This can only happen if you do NOT validate on line item level.
User | Count |
---|---|
91 | |
10 | |
10 | |
6 | |
5 | |
5 | |
5 | |
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.