on 08-22-2012 7:52 AM
Hi Guys,
I am using GAF in FPM.
I am checking the mandatory fields when Next Step event is triggered.
But when a user directly clicking on a roadmap step to navigate, its not checking the for mandatory fields and skipping that screen.
How this can be validated..?
Thanks
Sam
After validations, If you find that the mandatory fields are not filled, you can fail the event by passing the parameter EV_RESULT = 'FAILED' in the process_event method while handling the event NEXT.
The FPM wont take you to next step then.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Khushboo,
do I have to check the mandatory fields in every view WDDOAFTERACTION method..?
here is the code I am using in PROCESS_EVENT method of comp controller
the code..
DATA: lt_msg TYPE cl_wd_dynamic_tool=>t_check_result_message_tab,
lo_view_controller TYPE REF TO if_wd_view_controller,
lo_message_manager TYPE REF TO if_wd_message_manager.
IF io_event->mv_event_id = 'FPM_NEXT_STEP'.
lo_view_controller = wd_this->lo_view.
lo_message_manager = lo_view_controller->get_message_manager( ).
cl_wd_dynamic_tool=>check_mandatory_attr_on_view(
EXPORTING
view_controller = lo_view_controller
display_messages = abap_true
IMPORTING
messages = lt_msg ).
ENDIF.
Thanks
Sam
User | Count |
---|---|
93 | |
10 | |
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.