Skip to Content
author's profile photo Former Member
Former Member

Cancel button in GAF

Hello All,

the requirement I am stuck at is the ability to cancel the process during any of the steps before completion of the GAF component.

For example, the user should be able to cancel the process, preferably using a CANCEL button on toolbar, during the process of the steps in GAF. The data in the completed steps may not be saved for future retrieval. The user does not want to use the CLOSE option of the window to completely close the browser.

Please let me know if there is a standard functionality available in GAF or any possibility to make this.

Thanks,

Krishna Teja Peddada

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 16, 2014 at 03:58 AM

    Hi Krishna,

    What is your expected behavior when user click on Cancel? If the expected behavior is to navigate to overview page without saving data, you can programmatically trigger a launchpad navigation using IF_FPM_NAVIGATION_API in event handler of the Cancel button.

    For example:

    *** On Cancel button clicked ***

    data: lr_fpm_navigation type ref to if_fpm_navigation,

    lv_key type string,

    lt_appl_param type apb_lpd_t_params,

    ls_appl_param type apb_lpd_s_params,

    lt_business_param type apb_lpd_t_params,

    ls_nav_key type fpm_s_navigation_key.

    *_ Navigate to Overview Screen

    ls_nav_key-key1 = <<launchpad_role>>

    ls_nav_key-key2 = <<launchpad_instance>>

    lr_fpm_navigation ?= wd_this->go_fpm->get_navigation( is_key = ls_nav_key iv_instance_sharing = abap_false ).

    lv_key = lr_fpm_navigation->get_key_from_alias( iv_alias = <<launchpad_alias>> ).

    lt_business_param[] = lt_appl_param[].

    lr_fpm_navigation->modify_parameters(

    exporting

    id_target_key = lv_key

    it_application_parameter = lt_appl_param

    it_business_parameter = lt_business_param ).

    lr_fpm_navigation->navigate( lv_key ).

    Hope it helps. Cheers!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 19, 2014 at 08:57 PM

    once you capture CANCEL event triggered by that button, you can do anything you want with that - like cleanup, aborting any temporary table entries etc.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.