on 04-21-2014 7:51 AM
Hi Experts,
Can anybody tell me how to close webdynpro application in portal environment when clicking on Button,
Advance Thanks.
Regards
Sandesh
Hi,
In stand alone mode you can use EXIT plug to close the Web Dynpro Application. In Portal Environment, you have to use navigation using navigate_absolute( ) method of if_wd_portal_integration.
Check this help for reference code: Absolute Navigation - Web Dynpro for ABAP - SAP Library
hope this helps u,
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kiran,
Thanks a lot for quick response, i have gone through the reference code ,you have provided. Iam understood that Inorder to close the webdynpro application ,
We have to pass in exporting parameter in Navigate_Absolute method
use_sap_launcher = abap_false
May i know, what i understood is right .please let me know I am new to webdynpro.
Thanks & Regards
Sandesh
Hi,
You have to pass the navigation_target parameter to the path to which you want to navigate after closing the application.
check this sample code:
data lr_comp_controller type ref to ig_componentcontroller .
data lr_api_component type ref to if_wd_component.
data lr_portal_navigation type ref to if_wd_portal_integration.
data: navigation_target type string,
navigation_mode type string,
window_name type string,
lt_param type wdy_key_value_table,
ls_param type wdy_key_value.
lr_comp_controller = wd_this->get_componentcontroller_ctr( ).
lr_api_component = lr_comp_controller->wd_get_api( ).
lr_portal_navigation = lr_api_component->get_portal_manager( ).
navigation_target = 'pcd://portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.pages/com.sap.pct.erp.ess.overview'. " Get the link for your portal consultant and replace this
navigation_mode = '0'.
call method lr_portal_navigation->navigate_absolute
exporting
navigation_target = navigation_target
navigation_mode = navigation_mode.
Get the Overview page link ( or other to which you want to navigate after closing the application) and pass it to the navigation_target parameter.
hope this helps u,
Regards,
Kiran
Hi kiran ,
I need your help in this requirement,from portal when Exit button is clicked ,webdynpro application should be closed,i implemented the code which you have suggested but im unable to Exit the application .Nothing is Happening so please help me in this .advance Thanks
This is code which i was implemented
method ONACTIONEXIT .
data lr_comp_controller type ref to ig_componentcontroller.
data lr_api_component type ref to if_wd_component.
data lr_portal_navigation type ref to if_wd_portal_integration.
data :navigation_target type string,
navigation_mode type string,
window_name type string,
lt_param type wdy_key_value_table,
ls_param type wdy_key_value.
lr_comp_controller = wd_this->get_componentcontroller_ctr( ).
lr_api_component = lr_comp_controller->wd_get_api( ).
lr_portal_navigation = lr_api_component->get_portal_manager( ).
navigation_target = 'URL i have provided '.
navigation_mode = '0'.
CALL METHOD lr_portal_navigation->NAVIGATE_ABSOLUTE
EXPORTING
NAVIGATION_TARGET = navigation_target
NAVIGATION_MODE = navigation_mode
* WINDOW_FEATURES =
* WINDOW_NAME =
* HISTORY_MODE = IF_WD_PORTAL_INTEGRATION=>CO_NO_DUPLICATES
* TARGET_TITLE =
* CONTEXT_URL =
* POST_PARAMETERS = ABAP_FALSE
USE_SAP_LAUNCHER = ABAP_false
* BUSINESS_PARAMETERS =
* LAUNCHER_PARAMETERS =
.
endmethod.
Regards
Sandesh
Hi,
you cannot use EXIT plug in portal environment as mentioned earlier so you have to use the navigation. Did you tested the standard Web Dynpro application mentioned in earlier reply and checked if it is working.?
And are you using https in your portal? If so, check this thread which may help you:
Regards,
Kiran
Hi Kiran,
Standard webdynpro application i.e WDR_TEST_PORTAL_NAV is not exist in my system ,so im unable to test it and I am not using https in portal . I tried all sorts but the result is same its showing / Re-displaying same screen does not navigating to the Url which i specified in navigation_target.
Thanks & Regards
Sandesh
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.