LinkedIn
RSS

Avoid Deletion of Sales Order and Delivery (VA02 and VL02N )

If you want to block these document deletion option by user exit the is a solution.

You can simply get to MV45AFZZ (sales order) and MV50AFZ1 (delivery) and place the following code in the FORM userexit_delete_document:

 MESSAGE ‘Document delete not allowed’ TYPE ‘I’.

CALL TRANSACTION ‘Va01′ AND SKIP FIRST SCREEN.

Change the transaction to what you want system do redirect to!

Any questions just comment!


Leave a Reply