cancel
Showing results for 
Search instead for 
Did you mean: 

FPM GAF design not checking for mandatory fields..!

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Sam,

No you do not need to do it in WDDOAFTERACTION.

After your code in PROCESS_EVENT just write EV_RESULT = 'FAILED' if you get data in lt_msg.

Thanks.