cancel
Showing results for 
Search instead for 
Did you mean: 

Navigation

Former Member
0 Kudos

I want to add a button to my existing FPM_OIF_COMPONENT application.

I want to code this button so that when a user clicks it, another FPM

application is displayed.

How would I code and configure this navigation to another FPM application?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Friend,

There are several steps you need to do:

- Configure OIF component, add button to the toolbar with event.

- In PROCESS_EVENT method, handle this event and open new FPM application.

To open new FPM application from a FPM application

- Create a new launchpad for the FPM application.

- Launch it inside your own component. Refer to the following code:


  DATA fpm                  TYPE REF TO if_fpm.

  DATA navigation           TYPE REF TO if_fpm_navigation.
  DATA key                  TYPE fpm_s_navigation_key.
  DATA target_key           TYPE string.

  fpm = cl_fpm_factory=>get_instance( ).


  " Navigate to Compensation Planning iView
  key-key1 = 'YOUR_KEY'.
  navigation = fpm->get_navigation( is_key = key ).
  target_key = navigation->get_key_from_alias( iv_alias = 'YOUR_ALIAS_IN_LAUNCHPAD' ).

  navigation->navigate( iv_target_key = target_key ).

Refer to this [FPM|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90f3cfd2-46d0-2b10-b3ab-eabf3452cc50?quicklink=index&overridelayout=true]

Thanks,

Duy

Answers (0)