Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

restrict some user roles for tocde VA02

Former Member
0 Kudos

Hi All,

Please can any one help on this?

i have to restrict some user roles while rejecting the item in va02 tcode. how to do this.

Thanks,

Ramu

3 REPLIES 3

former_member705122
Active Contributor
0 Kudos

Hi,

There are two ways to do this:

- Make a transaction variant through SHD0 and assign it to your sales doc. While creating the variant you can place non-changeability ticks on specific fields. Next allow those users only to work with your transaction variant but not with the original transaction.

- You could make use of user-exit FORM USEREXIT_FIELD_MODIFICATION in include MV45AFZZ (via authorization objects, which you can assign in role customizing).

Check this link:

http://www.sap-img.com/sap-sd/short-sap-sd-questions-3.htm

Regards

Adil

Former Member
0 Kudos

use the userexit:

VA5A0003

INTHIS EXIT_SAPMV45A_003

REWARD POINTS IF USEFUL..

former_member188685
Active Contributor
0 Kudos

You can do this ...

This inculde is to check or validate the Item and header

MV45AFZB

the corresponding form is

FORM USEREXIT_CHECK_VBAP USING US_DIALOG.

in this routine when ever user Trying to Reject the item check the value , next accordingly check the Authorization object

if the sy-subrc ne 0 then raise the error message.