cancel
Showing results for 
Search instead for 
Did you mean: 

changing some field

Former Member
0 Kudos

How to restrict users for not changing some fields in T-code va02?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI

U HAVE TO USE A USER EXIT ASK U R ABAPER

use the Exit Include program MV45AFZZ

REGARDS

Answers (4)

Answers (4)

Former Member
0 Kudos

Make a transaction variant thru 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.

Regards,

Natasha

Former Member
0 Kudos

Charles,

It purely depends on the complexity of your requirement.

Whether you want all the users not to be able to modify in VA02 or only some specific ? and does the fields that should not be modified depends on particular user group ..

Here are the various options available..

--> If you want the fields to be only in display mode, you can do it using Transaction Variants and assigning them to the sales doc type. The limitation is this will be applicable to all the sales areas.

--> You can have more control to restrict the fields to be editable by using user Exit coding.

use user exit " FORM USEREXIT_FIELD_MODIFICATION " in the include program MV45AFZZ.

--> If you want to restrict the fields only for a particular group of users, then the best thing is to create an role and check the authorizations for the user in the user exit coding before making the fields non editable.

Below is the sample code

IF SCREEN-NAME = 'VBKD-ABSSC'.

AUTHORITY-CHECK OBJECT 'ZMV45AFZZ' ID 'SCRFNAME' FIELD SCREEN-NAME.

IF sy-subrc = 0.

SCREEN-INPUT = 1.

else.

SCREEN-INPUT = 0.

ENDIF.

endif.

I have copied this code from some other forum,. Refer to the below link for some more information.

.

Regards,

Ajai.

Don't forget to reward points if helpful.

Former Member
0 Kudos

Dear Charles,

You can use transaction variant to protect / hide any fields in Tcode VA02. In that variant, you can set any field as visible, hidden, read only, required etc. It is easy to do.

Regards,

Noufel P

Former Member
0 Kudos

Hi Charles..

U can use the MV45AFZZ user exit and use the include Document _ Modify " and tell to the ABAPER about the Requirement and what fields are u need to be not changed. and give the requiremnt to abaper..

Regards..

Praveen Kumar.D