on 01-16-2013 2:44 AM
I would like to know if I can limit access of a user wherein he/she can add/edit an Item based on item group and bp based on BP group. He/she can only add/Edit vendors that belongs to non-trade BP group and item master data that belongs to non-trade item group.
Hi John,
You can achieve by stored procedure:
Try this:
If @object_type='4' and @transaction_type IN ('A','U')
BEGIN
If Exists (Select T0.ItemCode from OITM T0
Where T0.ItmsGrpCod='10' and T0.UserSign='1'
And T0.ItemCode = @list_of_cols_val_tab_del)
BEGIN
Select @error = -1,
@error_message = 'Not allowed to Create Item'
End
End
Note: Change item group code and user sign as per your requirement.
Hope helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should use Usersign2 instead of usersign in this code. The last updating user's identification is stored in this field:
If @object_type='4' and @transaction_type IN ('A','U')
BEGIN
If Exists (Select T0.ItemCode from OITM T0
Where T0.ItmsGrpCod='10' and T0.UserSign2='1'
And T0.ItemCode = @list_of_cols_val_tab_del)
Select @error = -1,
@error_message = 'Not allowed to Create Item'
END
Hi John,
For Business partner,
Try this:
If @object_type='2' and @transaction_type IN ('A','U')
BEGIN
If Exists (Select T0.[CardCode] from OCRD T0
Where T0.[GroupCode]='10' and T0.UserSign2='1'
And T0.[CardCode]= @list_of_cols_val_tab_del)
BEGIN
Select @error = -1,
@error_message = 'Not allowed to Create BP'
End
End
Hope helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi John...
Yes, Possible it is Possible by using Transaction notification
Regards
Kennedy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
11 | |
10 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.