cancel
Showing results for 
Search instead for 
Did you mean: 

How to force navigation from a FPM page within the same window?

0 Kudos

I can make the FPM page navigate to a webdynpro application but nowhere else.  Once there I tried redirecting to an external webpage using the usual exit plug but it doesn't work coming from a FPM application (it hangs)- when the webdynpro application is called directly the exit plug works.  Does anyone know what would be preventing the navigation from working?

Accepted Solutions (1)

Accepted Solutions (1)

former_member190928
Participant
0 Kudos

Hi Jeremy,

Here comes a solution from me...and it works. You could use if_fpm_navigate_to api and suspend & resume mechanism to achieve that. Code below:

   DATA ls_nav_key     TYPE fpm_s_navigation_key.

   DATA lr_fpm_nav_to  TYPE REF TO if_fpm_navigate_to.

   ls_nav_key-key1 = 'FPM_NAV_1'. "role

   ls_nav_key-key2 = 'WD_NAVIGATION'. "instance


*  I think role and instance are two concepts from launchpad and what we should do here is

*  make them unique on that list. You could find the list using transaction LPD_CUST

   lr_fpm        = cl_fpm_factory=>get_instance( ).

   lr_fpm_nav_to = lr_fpm->get_navigate_toiv_role     = 'FPM_NAV_1'

                                             iv_instance = 'WD_NAVIGATION' ).


*  you need to set it as true for open a new app in the same window.

  ls_url_to-use_suspend_resume = abap_true.

   CALL METHOD lr_fpm_nav_to->launch_url

     EXPORTING

       is_url_fields            = ls_url_to

0 Kudos

I had previously tried that.  It does not work for me unless the destination is another FPM or WD application.  It works well for that scenario, though.

Answers (1)

Answers (1)

former_member190928
Participant
0 Kudos

Hi Jeremy,

I am facing the same problem...Do you have any solution on that?

BR,

Steve