cancel
Showing results for 
Search instead for 
Did you mean: 

How to Call FPM OIF application from normal ALV web dynpro application?

Former Member
0 Kudos

Hi Experts,

I have developed a normal ALV web dynpro application. When user selects a record in the alv output, I have to display a FPM OIF application of that record. But that FPM OIF application is sap standard application.

For Example I have displayed employee record in alv web dynpro application. Now when i click on employee number, a screen has to be displayed(i.e. the screen consist of details of that employee record which is a standard FPM OIF application)

My goal is how to call a standard FPM OIF application from custom alv web dynpro application.

Thanks & Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Use below code:

    DATA LO_WINDOW_MANAGER TYPE REF TO IF_WD_WINDOW_MANAGER.
  DATA LO_API_COMPONENT  TYPE REF TO IF_WD_COMPONENT.
  DATA LO_WINDOW         TYPE REF TO IF_WD_WINDOW.
  DATA LT_BUTTONS        TYPE WDR_POPUP_BUTTON_LIST.
  DATA LS_CANC_ACTION    TYPE WDR_POPUP_BUTTON_ACTION.

  DATA : LT_PARAMETERS TYPE TIHTTPNVP.
  DATA : LS_PARAMETERS TYPE IHTTPNVP.
  DATA LV_URL TYPE STRING.



  LS_PARAMETERS-NAME = 'sap-wd-configId'.
  LS_PARAMETERS-VALUE = 'ZHR_CCD_CMS_SME_AC'---------->"Replace  this with the name of your standard OIF application configuration
  APPEND LS_PARAMETERS TO LT_PARAMETERS.
  CLEAR  LS_PARAMETERS.

  CL_WD_UTILITIES=>CONSTRUCT_WD_URL(
    EXPORTING
      APPLICATION_NAME              'zhr_ccd_cms_SME'  ---------->"Replace  this with the name of your standard OIF application
      IN_PARAMETERS                 = LT_PARAMETERS    " Additional parameters
    IMPORTING
      OUT_ABSOLUTE_URL              = LV_URL    " Absolute URL (Incl. Log, Host, Port)
  ).





  LO_API_COMPONENT           = WD_COMP_CONTROLLER->WD_GET_API( ).
  LO_WINDOW_MANAGER          = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).
  LS_CANC_ACTION-ACTION_NAME = '*'.
  LT_BUTTONS                 = LO_WINDOW_MANAGER->GET_BUTTONS_OK(
   ).

  LO_WINDOW                  = LO_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW(
      URL            = LV_URL
*    TITLE          =
*    MODAL          = ABAP_FALSE
      HAS_MENUBAR    = ABAP_FALSE
*    IS_RESIZABLE   = ABAP_TRUE
*    HAS_SCROLLBARS = ABAP_TRUE
*    HAS_STATUSBAR  = ABAP_TRUE
*    HAS_TOOLBAR    = ABAP_TRUE
      HAS_LOCATION   = ABAP_FALSE
*    USE_POST       = ABAP_FALSE
  ).

  LO_WINDOW->OPEN( ).

Let me know if you need any help.

Former Member
0 Kudos

Hi Hitesh,

i am getting error ---- Type "WDR_POPUP_BUTTON_LIST" is unknown.

I have a doubt how to pass value to the FPM OIF Application. I mean when user select employee number,  based on that employee number that application should display. So how i need to pass employee number to that application?

Former Member
0 Kudos

Please give name of which OIF you are trying to launch.

Former Member
0 Kudos

Check the list of parameters for the application.

Pass the parameters to the application as below.

  LS_PARAMETERS-NAME = -------> parameter name for employee.

  LS_PARAMETERS-VALUE = ------>employee id

  APPEND LS_PARAMETERS TO LT_PARAMETERS.

  CLEAR  LS_PARAMETERS.

Also can you please post a screenshot of error which you are getting.

Answers (1)

Answers (1)

Former Member
0 Kudos

i am getting error ---- Type "WDR_POPUP_BUTTON_LIST" is unknown.

                                ---- Type "WDR_POPUP_BUTTON_ACTION" is unknown 

How to rectify above error?

Component EHHSS_INC_REC_OIF_V3 i am using.

How to Check the list of parameters for the application?

Former Member
0 Kudos

Are you trying to open any popup window using

lo_window       = lo_window_manager->create_and_open_popup(

might be parameter 'buttons' of this method you are passing empty and that can be reason for your error

Former Member
0 Kudos

Hi Hitesh,

I am using Component EHHSS_INC_REC_OIF_V3. How to Check the list of Input parameters for that application?

I am able to display FPM OIF application but with no data(I mean only labels without output data).

Regards.