Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Restrict the user to click on submit before clicking on another button

Dear All,

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.

Thanks,

Reddy.

Former Member
Former Member replied

Hi sudhir,

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.

Cheers,

Kris.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question