09-16-2008 6:20 PM
I need to throw an error for an invalid plant when saving a sales order. I wrote condtion in include MV45AFZZ but when i save the sales order it show the error and not returning to the line item to edit insted it sohws popup 00010 item not found and getting saved. how to resolve this issue to avoid saving the sales order if plant does not match.
09-16-2008 7:09 PM
check the Include MV45AFZB
here you can validate the item , since it tiggers for each and every item, and stays in the same screen.
check the below form.
*&---------------------------------------------------------------------*
*& Form USEREXIT_CHECK_VBAP
*&---------------------------------------------------------------------*
* *
* This Userexit can be used to add addtional logic for *
* checking the position for completeness and consistency. *
* *
* US_DIALOG - Indicator, that can be used to suppress *
* dialogs in certain routines, e.g. in *
* copy mode. *
* *
* This form is called from form VBAP_PRUEFEN_ENDE. *
* *
*---------------------------------------------------------------------*
form userexit_check_vbap using us_dialog.
endform.
04-13-2009 4:43 PM