on 10-25-2011 3:23 PM
Hi All,
I understand that validation of user input is suppsoed to be implemented in method WDDOBEFOREACTION.
So far so good... I have implemented this method as follows:
CASE lo_action->name.
WHEN 'SAVE' OR 'SAVE_EXIT'.
wd_comp_controller->check_before_save( ) . " I need to cancel further processing if this fails
ENDCASE.
My understanding of the framework is the following:
In case an error message with cancel_navigation = abap_true has been thrown, the framework stops further processing of this action.
However, the framework doesn't stop. It executes the action SAVE although I have trown an error message with cancel_navigation = abap_true.
I would like to know how this is supposed to work? What do I have to do to stop executing my action SAVE in case of errors?
Thanks,
Johannes
I think it is also to do with the type of event handlers (validation independent , standard ).
See the Phase model description in this link.[http://help.sap.com/erp2005_ehp_04/helpdata/EN/45/c87f413e70010de10000000a1550b0/frameset.htm|http://help.sap.com/erp2005_ehp_04/helpdata/EN/45/c87f413e70010de10000000a1550b0/frameset.htm]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Johannes,
I think if you generate normal error message then navigation wont be cancellled. you need to use either report_attribute_error_message or report_fatal_error_message.. check it out.
BR, Saravanan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.