05-18-2017 11:00 AM
I have created a custom table. and also created event for validation in that. My table has check box fields. in the validation module I have given some error messages. Now when am checking wrong boxes in the table through sm30 then the error is shown . But as soon am correcting the check boxes it is not allowing me to save. how can I put a logic to save the data after input? or can I enable the save button after the error is thrown?
05-18-2017 11:15 AM
Hi Raisa,
Can you write the validation code and trigger the error message in between Chain .... EndChain statement.
CHAIN.
FIELD MATNR MODULE VALIDATION.
ENDCHAIN.
"Routine
MODULE VALIDATION INPUT.
IF MATNR IS INITIAL.
MESSAGE 'ERROR MESSAGE' TYPE 'E'.
ENDIF.
ENDMODULE.
Regards
Rajkumar Narasimman
05-18-2017 12:18 PM
It depends on how you coded the event and of course in which event you raised the error and set sy-subrc to non initial value?