cancel
Showing results for 
Search instead for 
Did you mean: 

Navigation from FPM application to another FPM application

Sesh_Sreenivas
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Experts,

I have a requirement where there are two different applications with FPM configuration. On click of a button in one of those applications, i should close that application and open the other FPM application in the same window.

I tried using the exit plug and it worked when the FPM was not configured for the first application alone (and 2nd application has FPM enabled). But, when i use the FPM configuration for the first application, the navigation is not happening.

Is it possible to navigate between two FPM applications in a single wondow? If so please tell me how to do it.

Thanks in advance,

Seshadri

Accepted Solutions (1)

Accepted Solutions (1)

toolika_pandey
Explorer
0 Kudos

HI Sheshadri,

Could you please tell me whether you tried this out. I am looking for solution to the same problem.

Also, I am not aware of how to call the method navigate of interface If_fpm_navigation.

It accepts target_key as input. From where can I get this target key for the application?

Thanks

Toolika

Former Member
0 Kudos

Hi Toolika,

You can use following code.

lo_fpm = cl_fpm_factory=>get_instance( ).

  • use FPM navigation

ls_nav_key-key1 = <role>.

ls_nav_key-key2 = <instance>. "WD_NAVIGATION

lo_fpm_navigation ?= lo_fpm->get_navigation( ls_nav_key ).

CALL METHOD lo_fpm_navigation->get_key_from_alias

EXPORTING

iv_alias = lv_alias

RECEIVING

rv_key = lv_key.

lo_fpm_navigation->modify_parameters(

EXPORTING

id_target_key = lv_key

  • it_application_parameter = lt_appl_param

it_business_parameter = lt_business_param ).

lo_fpm_navigation->navigate( lv_key ).

Regards,

Pooja

Former Member
0 Kudos

Hello Sheshadri and Toolika,

Here is a code snippet, which might help you:

ON BUTTON ACTION:

DATA : ls_navigation_key TYPE fpm_s_navigation_key,

lr_navigation TYPE REF TO IF_FPM_NAVIGATION,

lv_target LIKE LINE OF mr_navigation->mt_targets,

ls_app_param TYPE apb_lpd_s_params,

ls_navigation_key-key1 = lc_role.

ls_navigation_key-key2 = lc_instance_a.

lr_navigation = mr_fpm->get_navigation( ls_navigation_key ).

READ TABLE lr_navigation->mt_targets

INTO lv_target WITH KEY alias = (You can give a alias name in the LPD customizing)

IF sy-subrc = 0.

ls_app_param-key = (Application Parameter Key).

ls_app_param-value = (Application Parameter value).

APPEND ls_app_param TO lt_app_param.

CALL METHOD mr_navigation->navigate

EXPORTING

iv_target_key = lv_target-key

it_application_parameters = lt_app_param.

Hope this helps !

Regards

Rohan

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sheshadri,

It is very much possible to do navigation between 2 WD application in the FPM environment.

Create a launchpad customizing entry using the transaction LPD_CUST and maintain the target application details there. Now in your coding, you should use the API IF_FPM_NAVIGATION~NAVIGATE method. Create an instance of this API, and then pass the target application details in the NAVIGATE method.

This way you can navigate to the target application on click of a button in the same window.

Regards

Rohan