cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in navigating to Sub road Map steps

Former Member
0 Kudos

Hi experts,

I have a main step which is having 3 sub steps in fpm.

I am trying to navigate to 1st sub step on click of next button in the 1st main step.

This is being posssible with a normal button which is created uin a view and writing the code in the view action method.

However my requirement is to make that happen on click of a FPM button.

While doing so and writing the code in PROCESS_EVENT "Access via Null reference is beiong tHrown" on the line

"IF NOT ls_target_state-substep IS INITIAL.

lo_nd_substep = lo_element->get_child_node( name = wd_this->wdctx_substep )."

Why is this Happening

Ny ideas.

reply is greatly appreciated......

Thanks In advance

Accepted Solutions (1)

Accepted Solutions (1)

saravanan_narayanan
Active Contributor
0 Kudos

Hello Shravan,

I think you are rasining the substep event in the process_event? in the process_event I dont think you can influence the navigation to substep of the same step. you can only influence the substep of the subsequent main step (next main step).

if you want to navigate to the substep of the same Main step, then you should raise the SUBSTEP event before process_event method (NEEDS_CONFIRMATION method will do).

Try raising the SUBSTEP event in the NEEDS_CONFIRMATION method and see whether it works.

data lo_event type ref to cl_fpm_event.
  lo_event = cl_fpm_event=>create_by_id(
      iv_event_id = cl_fpm_event=>gc_event_change_step  ).
  lo_event->mo_event_data->set_value(
      iv_key   = cl_fpm_event=>gc_event_param_mainstep_id
      iv_value = 'MAINSTEP_1'      ).
  lo_event->mo_event_data->set_value(
      iv_key   = cl_fpm_event=>gc_event_param_substep_id
      iv_value = 'SUBSTEP_1_1'      ).
  lo_event->mo_event_data->set_value(
      iv_key   = cl_fpm_event=>gc_event_param_subvariant_id
      iv_value = 'SUBSTEPVARIANT_1'      ).
  data lo_fpm type ref to if_fpm.
  lo_fpm = cl_fpm_factory=>get_instance( ).
  lo_fpm->raise_event( lo_event ).

BR, Saravanan

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Could anyone please help me out sorting my issue.