on 10-09-2013 12:24 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
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.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.