on 07-12-2011 1:39 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Could anyone please help me out sorting my issue.
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.