Restrict the user to click on submit before clicking on another button
I have a requirement in my WDA Application.I am using two buttons here 1.Submit 2.Calculate.
Every time when user clicks on Submit button I have to force the user to click on Calculate button atleast once.
How can I achieve this?Pls suggest.
In ON_SUBMIT after displying message just clear FLAG value. I Think it will work for you.
ONACTIONSUBMIT: If wd_comp_controller->flag NE 'X'. CALL METHOD l_message_manager->report_error_message EXPORTING message_text = 'Please click on the calculate button to check the Interest before proceeding'. EndIF. clear wd_comp_controller->flag.