2011 May 24 2:42 PM
Hi Experts here is requirements.
1) when user goes and save the order in va01/va02 then system should and check wether the postal code and region is mentioned for partner , if not then system sud throw error msg and the order sud b in the editable mode only , after entering the values for postal code nad region system sud again revalidate and if entered sud move further or else agin throw error and stillo rder sud be in editable mode..
2) after the postal code and region here the partner is validated from the Z table ,again if the same partner exist sud move further or else it sud throw error and order sud be in editable mode and user sud enter and aagin validation sud takes palce and save the order .
I have used the exit_save_document_prepare and even tried with message ' ' type 'E' display like 'W/S/I' all .
plz tell if i have done some mistake or suggst some other idea or else suggest the message dispalky format if anyways if its possible
I have done the validations but the order is not in a change mode its getting grade out after throwing the error msg plz suggest and thanks in advance.
2011 May 24 3:42 PM
Try Implement the BADI "BADI_SD_SALES" Method "SAVE_DOCUMENT_PREPARE". In the Method, After checking the needed conditions, raise Message type 'S' Display like 'E' and set the F_SUBRC to non zero value ( 4 ).