07-08-2008 12:10 PM
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
07-08-2008 12:13 PM
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
07-08-2008 12:14 PM
use the userexit:
VA5A0003
INTHIS EXIT_SAPMV45A_003
REWARD POINTS IF USEFUL..
07-08-2008 12:18 PM
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.