cancel
Showing results for 
Search instead for 
Did you mean: 

How to skip steps in GAF?

Former Member
0 Kudos

Hi,

I have a requirement that for some of the scenarios I should skip some steps.

For example, When I click "Next Step" on Step1, I need to jump to step 4 directly. I have tried such code, but it doesn't work. Anyone has any ideas?

Thanks for your help.

===============================

DATA: lr_event TYPE REF TO cl_fpm_event.

CALL METHOD CL_FPM_EVENT=>CREATE_BY_ID

EXPORTING

IV_EVENT_ID = CL_FPM_EVENT=>GC_EVENT_CHANGE_STEP

RECEIVING

RO_EVENT = lr_event

.

CALL METHOD lr_event->mo_event_data->SET_VALUE

EXPORTING

IV_KEY = CL_FPM_EVENT=>GC_EVENT_PARAM_VIEW_ID

IV_VALUE = 'MAINSTEP_4'

.

CALL METHOD me->AO_FPM->RAISE_EVENT

EXPORTING

IO_EVENT = lr_event

.

Edited by: Jaddy Zhang on Mar 5, 2009 4:10 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Jaddy,

You can skip the steps in a work around way. Implement the IF_FPM_GAF_CONF_EXIT. This will provide you a method OVERRIDE_EVENT in the component controller and this method will be called in each event loop.

Now on the click of your button NEXT STEP on mainstep 1, the control will go to the override_event method. What you can do here is change the runtime GAF information and redirect the control to the 4th main step.

This will be able to solve your problem.

Regards

Rohan

Former Member
0 Kudos

Hi Rohan,

Thanks for your respose. I have soloved this issue.

Actually, the following code works. I just set a wrong parameter days before.

======================================

DATA: lr_event TYPE REF TO cl_fpm_event.

CALL METHOD CL_FPM_EVENT=>CREATE_BY_ID

EXPORTING

IV_EVENT_ID = CL_FPM_EVENT=>GC_EVENT_CHANGE_STEP

RECEIVING

RO_EVENT = lr_event

.

CALL METHOD lr_event->mo_event_data->SET_VALUE

EXPORTING

IV_KEY = CL_FPM_EVENT=>GC_EVENT_PARAM_MAINSTEP_ID

IV_VALUE = 'MAINSTEP_4'

.

CALL METHOD me->AO_FPM->RAISE_EVENT

EXPORTING

IO_EVENT = lr_event

PatrickDean
Participant
0 Kudos

I've done the above to skip to the next step - however, whilst the breadcrumb trail gets from step 1 to step 2, the window itself is still the first window.

More details here...

Any ideas?

vaibhav_singh12
Participant
0 Kudos

Once you click next perform validation on the next step if that step is not required any more raise NEXT_STEP event again manually via code.