Skip to Content
0
Former Member
Nov 09, 2007 at 09:24 AM

Deleting items in VA01

77 Views

Hi Gurus,

I have a requirement from customer service that I need your help with.

When sales clerk are typing in order items some checks are made to see if the customer are actually allowed to order the specified material to the requested date. The checks are made towards the customer delivering plant and the logistic status MARC-MMSTA. That is no problem actually.

My problem arises with the fact that I suggested to put a rejection code in VBAP-AUGRU for items not deliverable but the CS manager wants the items automatically deleted after a notification message to the sales clerk.

The checks for validity are made in USEREXIT_CHECK_VBAP in MV45AFZB.

How do I delete the items? I can put reason for rejection flag and then use that flag to delete items when I save the order if neccesary, but I rather would like the items to disappear without needing to save the order.

I found USEREXIT_DELETE_DOCUMENT in MV45AFZZ but I guess it is not sufficent to just remove the XVBAP-entries. I assume there are more tables and workareas to clear for those deleted items, for example VBEP and VBUP.

Any advice??

regards,

Glenn Karlsson