Skip to Content
0
May 09, 2012 at 05:35 AM

How To Add Substep to MainStep in FPM

31 Views

Hi Friends,

I am working in FPM GAF Component , In that i am adding substep to Mainstep , so, for that I took one button GOTOSUBSTEP and in ONACTION I am writing the code but is showing NULL OBJECT REFERNCE NOT POSSIBLE when i am testing,

check this and give the code.

The code in OnAction Property is:

DATA: lo_fpm TYPE REF TO if_fpm,
lr_event TYPE REF TO cl_fpm_event.

* get reference to FPM API
lo_fpm = cl_fpm_factory=>get_instance( ).
* create event

lr_event = cl_fpm_event=>create_by_id( cl_fpm_event=>gc_event_change_step ).
* fill event parameters

lr_event->mo_event_data->set_value(
iv_key = cl_fpm_event=>gc_event_param_mainstep_id
iv_value = 'MAINSTEP_1' ).

lr_event->mo_event_data->set_value(
iv_key = cl_fpm_event=>gc_event_param_substep_id
iv_value = 'SUBSTEP_1_1' ).

lr_event->mo_event_data->set_value(
iv_key = cl_fpm_event=>gc_event_param_subvariant_id
iv_value = 'SUBSTEP_VARIANT_1_1' ).

*now raise event
lo_fpm->raise_event( io_event = lr_event ).

Thanks,

Raghunadh Kodali.