cancel
Showing results for 
Search instead for 
Did you mean: 

Exiting the iview on portal to the previous screen - WD ABAP.

Former Member
0 Kudos

Hi all,

i will give an example for better understanding and everything is with reference to WD ABAP.

(1)i have created an iview 'Open Enrollment' and this iview is assigned to a workset 'Benefits' in the portal.

If the user selects open enrollment iview in the portal and clicks on a exit button in this iview the screen should go back to the benefits workset page.

How can i achieve this in the event handler method of the 'EXIT' button.

(2) I was assuming that I can use the 'EXIT' plugs. but it seems that this plugs will not work in portal. Then what is the use of 'EXIT' plugs.

Thanks in advance,

Reddy

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

1. When you click the link open Enrollment, does it open inline or external window ?

2.In portal exit plug would work only with close_window parameter of type wdy_boolean , value true.

Former Member
0 Kudos

Baskaran,

Inline window is opened when the 'open enrollment' link is selected.

Thank you,

Reddy

Former Member
0 Kudos

In this case , you need to pass the url of the Benefits in the exit plug

wd_this->fire_to_exit_plg( url = url close_window = close_window ).

see the [http://help.sap.com/saphelp_nw70/helpdata/EN/45/1bc575ba064574e10000000a114a6b/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/45/1bc575ba064574e10000000a114a6b/frameset.htm]

Former Member
0 Kudos

Baskaran,

I found this code in one of the exit event handler methods of the WD ABAP application(this will basically exit the iview on the portal and return to the previous screen). Can you please help me understand this code?

IF NOT lo_portal_manager->m_portal_version IS INITIAL.

  • Navigate to calling iview

CALL METHOD lo_portal_manager->navigate_relative

EXPORTING

levels_up = '1'

path = lt_path.

CALL METHOD lo_portal_manager->fire

EXPORTING

portal_event_namespace = 'urn:com.sapportals:navigation'

portal_event_name = 'historyNavigate'

portal_event_parameter = '-1'.

ELSE.

  • Trigger window to be closed

lr_wdw_main = wd_this->get_wdw_main_ctr( ).

lr_wdw_main->fire_close_window_plg( close_window = abap_true ).

ENDIF.

Thanks a bunch

Reddy

Former Member
0 Kudos

This is would work. What is happening in this code is

lo_portal_manager->m_portal_version IS INITIAL

checks if the application runs in portal environment.

navigate_relative method let you go to the path in the form of string table and you specify the level_up in the pcd. In your case it is 1 level up to benifits.

However you need to see how the lt_path is being build in the sample application you have seen .

i assume that the portal event is fired to clear the navigation history.

if the component is not run in portal just close the webdynpro window.

See this document for further explanation

[https://cw.sdn.sap.com/cw/docs/DOC-110463.pdf|https://cw.sdn.sap.com/cw/docs/DOC-110463.pdf]

Edited by: Baskaran Senthivel on Mar 24, 2011 10:51 PM

Former Member
0 Kudos

Thanks a lot Baskaran. Now it is very clear.

ted_dinh
Active Contributor
0 Kudos

What value do you populate l_path with for it to exit the current ABAB WD and go back to the area page ? I played with method

'NAVIGATE_RELATIVE', but could not get it to work (getting 'Page not found or not available').

Thanks.

Answers (0)