Skip to Content
0

How to save after error in a screen?

May 18, 2017 at 10:00 AM

36

avatar image

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Rajkumar Narasimman May 18, 2017 at 10:15 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Raymond Giuseppi
May 18, 2017 at 11:18 AM
0

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?

Share
10 |10000 characters needed characters left characters exceeded