Return Order Quantity Check at VA01
I am using user exit USEREXIT_SAVE_DOCUMENT_PREPARE(MV45AFZZ) to check the return order quantity with respect to billing quantity. If the return order is more than invoiced quantity ( Item Level ) ,I am raising an error message. But after the error message the screen becomes totally inactive so that we cannot correct anything in the screen. Please advice.
I have already tried the exits USEREXIT_MOVE_FIELD_TO_VBAP(MV45AFZZ) & USEREXIT_CHECK_VBAP(MV45AFZB),but the problem of these exit are we cann't take multtiple order for the same Invoice.
For the error handling, try to use the following piece of code format.
* Raise a message and stay where you are MESSAGE s899(v1) WITH 'Error Message'. PERFORM folge_gleichsetzen(saplv00f). fcode = 'ENT1'. SET SCREEN syst-dynnr. LEAVE SCREEN.