on 03-05-2009 8:09 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.