cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Enabling and Disabling the Main Steps of FPM in Runtime

Former Member
0 Kudos

Hello Experts,

I have created a 3 step road map using FPM GAF component.

Initially when i am in 1st Main Step Then 2nd and 3rd steps should be disabled.

Later when i come to 2nd Main Step then the 1st step should be enabled and the 3rd Step should be disabled.

Finally when i navigate to 3rd Main Step then the 2nd should be disabled and the 1st Step should be enabled.

I have tried using Enable_mainstep based on GET_CURRENT_STATUS but my requirement was not met.

Can You please help me out in this.

Thanks in Advance,

Shravan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Have you implemented the interface under Implemented interfaces tab..You need to handle this in Handle Override event of GAF..IF_FPM_GAF_CONF_EXIT.

Test exmaple application config FPM_DEMO_GAF...component name FPM_GAF_BOOK_FLIGHT

In this component controller check this event OVERRIDE_EVENT_GAF and also PROCESS_EVENT for coding..

Former Member
0 Kudos

I have implemented the interface.

I dont have a confirmation screen as the last step.

Regards

Shravan

Former Member
0 Kudos

Hello,

Had anyone ever implemented this type of requirement...???

Regards

Shravan

Former Member
0 Kudos

It is kind of complex situation to explain over here.

I have done something like this (long time ago).

Maintain a table for all steps in your configuration.(lt_main_step).

io_gaf->get_mainsteps( IMPORTING et_mainstep = lt_main_step ).

get the current state to know which MainStep you are in.

io_gaf->get_current_state( ES_CURRENT_STATE = ls_current_state )

Loop through the lt_main_step set the enabled property abap_false to all the mainsteps except the one in the current_state.

Use the io_gaf-> ENABLE_MAINSTEP( ) method.

You need to do this in OVERRIDE_EVENT_GAF method.

PS: remember that once you are in the MainSTEP1 and step2 and 3 are disabled. User cannot click that buttons. So by programmatic you need to trigger the change_step event to the desired mainstep.

if_fpm_constants=>gc_event-change_step