I have write some code in MV50AFZ1, FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
I want to prevent the delivery saving if the item category type are all 'TANN'.
It work fine when I used t-code:vl01n to creat a delivery.
But when I used t-code:vl10batch to creat delivery,it seem did not work.
Anyone can help me?
Regards,
leric.
Hi Leric,
In the FORM USEREXIT_SAVE_DOCUMENT_PREPARE, u might have handled if sy-tcode = 'VL01N'. validate it against VL10 also.
Hope this works, i used the same way in a similar case in one of my exit
Regards
- Gopi
Add a comment