cancel
Showing results for 
Search instead for 
Did you mean: 

How to close Webdynpro Application in Portal Environment

santhosh_nagavalli
Participant
0 Kudos

Hi Experts,

                 Can anybody tell me how to close webdynpro application in portal environment when clicking on Button,

    Advance Thanks.

Regards

Sandesh

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

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

santhosh_nagavalli
Participant
0 Kudos

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

former_member184578
Active Contributor
0 Kudos

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

santhosh_nagavalli
Participant
0 Kudos

Hi Kiran Kumar,

       Thanks a lot for briefing .Its working now

Thanks & Regards

Sandesh

santhosh_nagavalli
Participant
0 Kudos

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

former_member184578
Active Contributor
0 Kudos

Hi,

The code you are using seems fine and it should work. Is your URL for navigation_target is correct..? try replacing the URL with ROLES:// instead of PCD:/ and test.

Also check the standard application WDR_TEST_PORTAL_NAV_PAGE, if it is working at all.

Regards,

Kiran

santhosh_nagavalli
Participant
0 Kudos

Hi Kiran,

 

         Thanks for Reply,the URL im using for Navigation_Target is correct,may i know what is this ROLES:// instead of PCD:/  and also please let me know is there any other ways to exit webdynpro application from portal

Thanks & Regards

Sandesh

former_member184578
Active Contributor
0 Kudos

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

santhosh_nagavalli
Participant
0 Kudos

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

Answers (0)