cancel
Showing results for 
Search instead for 
Did you mean: 

Navigate to first step on clicking cancel button in GAF /FPM

Former Member
0 Kudos

Hi All,

I am creating a GAF with three steps,

In third step, it contains two buttons , Submit and Cancel. WHen I am doing Submit , I am able to perform some event with the help of Event id and writing code.

But I want to navigate to first step when user clicks on cancel in third step. Can anybody do some guide on this.I am new to PFM.

Regards

Rajendra

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member219762
Contributor
0 Kudos

Hi Rajendar,

I explained it in OIF below link http://scn.sap.com/docs/DOC-47092

You can do it similarly. I have done with GAF also. If you don't understand let me know .

Thanks,

Regards.

Former Member
0 Kudos

Hi Rajendra,

On clicking of cancel button you need to raise one more event which will navigate the screen to the first step.

You can refer below code.

DATA : lo_fpm             TYPE REF TO   if_fpm,

           lo_fpm_event       TYPE REF TO   cl_fpm_event.

lo_fpm = cl_fpm_factory=>get_instance( ).

lo_fpm_event = cl_fpm_event=>create_by_id( 'FPM_EXIT_TO_MAIN_STEP').

**--Finally Raise the Event.
lo_fpm->raise_event( lo_fpm_event ).

Hope this will help.

Thanks & Regards

Praveen Gupta