2016 May 23 5:30 PM
Hi ,
I have TMG and maintenance view FOR Z TABLE.
I would like like to validate the user entered values with database saved values.
I am using event 01 before save ,and successfully raising error message based on the condition.
The issue is after error message, data getting saved.
please suggest me how to stop.
Below code have written,
MESSAGE ' SHOUL BE NOT LIES BETWEEN' TYPE 'S' DISPLAY LIKE 'E'.
vim_abort_saving = 'X'.
sy-subrc = 4.
EXIT.
suggest me what else need to take care for stop the saving .
Thank you.
Regards,
Shivaji.
2016 May 24 8:29 AM
Thanks for your support.
Issue resolved by adding module at PAI of screen .
2016 May 23 8:17 PM
2016 May 24 5:35 AM
Hi Rossi,
Thanks for your replay.
When use this statement control comes out of the table maintenance generator.
I want control should be there as error data can be edit by user.
Thank you.
Regards,
Shivaji
2016 May 24 6:51 AM
Well, in that case try to display error like type 'I' or 'S' or 'W'.
MESSAGE ' SHOUL BE NOT LIES BETWEEN' TYPE 'E' DISPLAY LIKE 'W'.
2016 May 24 7:31 AM
Sorry, my answer was too fast, I just reacted to the fact you were using message type 'S' for stopping the PAI, which of course can't work.
The saving happens after the CALL SCREEN is finished; so it's too late.
You need to modify the screen flow logic as with classic dynpros. Be careful when you regenerate the dialog, think to re-apply your changes!
2016 May 24 6:36 AM
I believe what you have done is correct. That's all it need. I just checked previous code I have done same and it is working fine.
Now why yours is not working ??
in ST05 put a SQL trace, to check where the update is happening.
once found...keep a breakpoints in both the places...
debug and check some manual code may be drilling it away.
Best Regards,
Vishal
2016 May 24 8:29 AM
Thanks for your support.
Issue resolved by adding module at PAI of screen .