Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

USEREXIT_CHECK_XVBEP_FOR_DELET USING US_EXIT

Former Member
0 Kudos
299

Can anyone tell me under what conditions this user exit in MV45AFZB gets hit? I would expect it to get hit when a line is being deleted from VBEP, but it does not seem to be hitting it.

My requirement is to find a place to update a user field in vbap after a change to the order triggers a return to credit hold. SAVE DOCUMENT PREPARE gets hit before the credit check so I cannot do it there and SAVE DOCUMENT is too late since the tables have already been updated.

When we have a single entry in VBEP that has a confirmed quantity, a return to credit causes it to hit USEREXIT_CHECK_VBEP, but if we have two lines in VBEP where the confirmed quantity is on the second line and the it is getting deleted, there is no change to the first line and it is not hitting this exit or the subject exit.

Any assist is greatly appreciated.

KJB

1 ACCEPTED SOLUTION

Former Member
0 Kudos
99

As I said, VBEP_CHECK only gets hit after the credit check if there is one schedule line.

DOCUMENT_DELETE does not help because I am not deleting the document.

Thanks anyway.

KJB

3 REPLIES 3

Former Member
0 Kudos
99

I found out how to hit this exit, it is hit when you press the delete schedule line button in the order. This does not work for my needs. Does anybody have any other ideas?

Regards,

KJB

Former Member
0 Kudos
99

Did you check with - MV45AFZB

FORM USEREXIT_CHECK_VBEP USING US_DIALOG.

ENDFORM.

*eject

----


And also check with MV45AFZZ

FORM USEREXIT_DELETE_DOCUMENT.

ENDFORM.

Former Member
0 Kudos
100

As I said, VBEP_CHECK only gets hit after the credit check if there is one schedule line.

DOCUMENT_DELETE does not help because I am not deleting the document.

Thanks anyway.

KJB