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: 

How to save after error in a screen?

Former Member
0 Kudos

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?

2 REPLIES 2

rajkumarnarasimman
Active Contributor
0 Kudos

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

raymond_giuseppi
Active Contributor
0 Kudos

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?