2 Replies Latest reply: Jan 23, 2013 2:20 PM by Eli Eren RSS

Navigation from FPM_OVP_COMPONENT doesnt work?

Eli Eren
Currently Being Moderated

Hello guros and simple sap people!

 

I am trying to add navigation in a standard SAP component configuration HRESS_CC_CORRECTION that uses FPM_OVP_COMPONENT.

i added a button and assigned it to an event.

now from there im trying to navigate to another application.

 

I added post-exit modification on PROCCESS_EVENT in the component controller of the application in question (hress_c_corrections) and tried using both IF_FPM_NAVIGATION (using launchpad) and if_fpm_navigate_To api but both dont result in anything.

 

please note that i tried adding the same configuration to a OIF component i made on my own and this worked perfectly.

what could i be missing?

 

thanks alo!

  • Re: Navigation from FPM_OVP_COMPONENT doesnt work?
    Praveen Gupta
    Currently Being Moderated

    Hi Eli Eren,

     

    Please try this...this will definitly work......

     

    Data : 

    lo_fpm                     TYPE REF TO   if_fpm,

    lo_fpm_navigate            TYPE REF TO   IF_FPM_NAVIGATE_TO,

     

    **-- Logic to open new webdynpro abap application in external window

          lo_fpm ?= cl_fpm_factory=>GET_INSTANCE( ).

     

          lo_fpm->GET_NAVIGATE_TO(

            exporting

              IV_INSTANCE_SHARING          = ABAP_TRUE    " Allows instance sharing (singleton)

              IV_OBN_USE_USER_SET_OF_ROLES = ABAP_FALSE    " Set the resolving mode to USER_SET_OF_ROLES

            receiving

              RO_NAVIGATE_TO               = lo_fpm_navigate  " Navigation API without Launchpad customizing

          ).

     

     

     

    lo_fpm_navigate->LAUNCH_WEBDYNPRO_ABAP(

            exporting

              IS_WEBDYNPRO_FIELDS      = ls_launch_webdynpro    " Fields to launch a WebDynpro Java application

              IS_ADDITIONAL_PARAMETERS = ls_wd_param

    *        importing

    *          ET_MESSAGES              =     " Messages

    *          EV_ERROR                 =     " Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

          ).

     

    Note : Please fill all the necessary parameter of lanuch_webdynpr_abap.

     

    Thanks & Regards

    PraveenGupta

Actions