on 11-21-2007 12:31 PM
Dear All:
We need to set up authorization for a user based on 'delivering plant' in Sales Order registration (VA01). It appears there is no standard available for this.
Can you kindly help by giving hints to achieve this?
Regards,
K. Dwarakanath
Hi,
1. You can create a custom authorization object (via SU21 or equivalent); add field 'ACTVT' with permissible values '01', '02', '03'.
2. In form USEREXIT_CHECK_VBAP of include MV45AFZB, you can call the function module AUTHORITY_CHECK, to check the authorization and throw an error.
This user exit is triggered everytime a user makes any change to item level, i.e. applicable for change of plant too. The call for authority check can be based on whether plant is changed or not. I guess *VBAP and VBAP can be compared to check whether plant is changed. If *VBAP-WERKS is not equal to VBAP-WERKS, then call authority check FM by passing username, custom object name, FIELD1 = 'ACTVT', VALUE1 = 01 or 02. If exception returned by FM is USER_NOT_AUTHORIZED, you can throw an error message.
Cheers,
KC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Using SHD0 transaction also it can be handled.
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear KC:
Thanks a lot for the help. I shall try this.
With best regards,
K. Dwarakanath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
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.