cancel
Showing results for 
Search instead for 
Did you mean: 

VA02 : Prevent user from deleting or adding line items

sivaprasad_ml
Participant
0 Kudos

Dear All,

can any one plz sugest me how to block line item deletion or line item addition through VA02 ?

Plz suggest if any enhancement is available for the same or any other alternative...

Regards

Sivaprasad

Accepted Solutions (1)

Accepted Solutions (1)

former_member217082
Active Contributor
0 Kudos

Hi Sivaprasad

For your requirement You need to go with USEREXIT_SAVE_DOCUMENT_PREPARE.

Regards

Srinath

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Unfortunately it's not possible to prevent the item deletion with authorization objects for each user profile. The system assumes that a user can delete items when he has the right to access VA02.

The right userexits to prevent the deleting of an item is USEREXIT_CHECK_XVBAP_FOR_DELET in program MV45AFZB where you can define which user can delete the item.

Best regards,

Joerg

Lakshmipathi
Active Contributor
0 Kudos

If the user id is different and you want to restrict only to specific user ids, then your basis people can very well control this.

On the other hand, irrespective of user ids, in VA02, if you want no changes to be made, then you can try with sale order user exit User exits in the program MV45AFZZ - USEREXIT_SAVE_DOCUMENT

thanks

G. Lakshmipathi