cancel
Showing results for 
Search instead for 
Did you mean: 

LogoffURL for ABAP Web Dynpro?

Former Member
0 Kudos

Hello,

Do we have the LogoffURL for ABAP Web Dynpro?

I would like the WD application to logoff to the URL on same browser window. Any ideas would be appreciated.

Thanks much,

Dharmi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

you should look in the sicf transaction to the application entry

go to the details, in tab error pages-> logoff page you can enter the url and do the adjustments

grtz

Koen

Former Member
0 Kudos

Hi Koen,

Thanks for your reply. I have entered the URL in the SICF, now how do I link it the button or link to action element to perform the logoff operation.

Regards,

Dharmi

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi Dharmi,

Once you fire the Exit plug of your WD Window, this page is automatically appears.

Regards

Abhimanyu L

Former Member
0 Kudos

Hi Abhimanyu,

Thanks fro your reply.

How do you connect / link the exit plug of the WD Window, to that of link to Action UI Element which is present in the view?

Regards,

Dharmi

Message was edited by:

Dharmi Tanna

Yashpal
Active Contributor
0 Kudos

Hi,

code to get the window refernce for plug firing ....

data: l_ref_ type ref to ig_<windowname>.

l_ref = wd_this->get_<windowname>_ctr( ).

l_ref->fire_<exit plug name>_plg( ).

Regards,

Yashpal

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi

data: lr_controller type ref to if_wd_view_controller,

lr_window_ctrl type ref to if_wd_window_controller.

lr_controller = wd_this->wd_get_api( ).

lr_window_ctrl = lr_controller->GET_EMBEDDING_WINDOW_CTLR( ).

lr_window_ctrl->IF_WD_VIEW_CONTROLLER~FIRE_PLUG( 'plug name' ).

Regards

Abhimanyu L

Former Member
0 Kudos

Hi Abhimanyu,

Thank you for your reply.

It works but the link is not the URL link e.g. www.sap.com but the application link! Any ideas how to have that working!

Regards,

Dharmi

Former Member
0 Kudos

Hi All,

The point allotment system is behaving strange. I wanted give Yashpal 6 points but then Abhimanyu's solution also gets 6 points and so does Manish.

The points :

Koen : 6 points

Yashpal - 6 points

Abhimanyu - 10 points

Regards,

Dharmi

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi Dharmi,

if you want to navigate to any other url on exit plug

/people/thomas.szcs/blog/2006/07/18/basic-concepts-150-url-semantics

Regards

Abhimanyu L

Yashpal
Active Contributor
0 Kudos

Hi ,

add a paramenter url of type string to the exit plug

in my previous post replace with

l_ref->fire_<exit plug name>_plg( url = http://www.sap.com' ).

Regards,

Yashpal

Message was edited by:

Yashpal Gupta

0 Kudos

Hi, I tried the following code but it seems not to work...

data: l_ref_ type ref to ig_<windowname>.

<b>l_ref = wd_this->get_<windowname>_ctr( ).</b>

<b>l_ref->fire_<exit plug name>_plg( ).</b>

it doesn't recognise the last two statements.

I'm trying to call this code from a view.

Message was edited by:

Zakhar

Message was edited by:

Zakhar

mohammed_anzys
Contributor
0 Kudos

Hi Zahar,

Go to this blog , you will see a step by step approach for the solving your problem

/people/mohammed.anzys/blog/2007/06/05/how-to-close-parent-window-in-webdynpro-applications

Thanks

Anzy

Former Member
0 Kudos

Hi Zakar,

Yes thatz right, it doesn't and so Yashpal did not get any points on that. The working statements are

window_ctrl = lr_controller->GET_EMBEDDING_WINDOW_CTLR( ).

lr_window_ctrl->IF_WD_VIEW_CONTROLLER~FIRE_PLUG( 'plug name' ).

Good luck.

Regards,

Dharmi

0 Kudos

Hi Mohammed,

Thax! very nice blog,

Unfortunately I can't reword you any points(

0 Kudos

Hi Dharmi,

This way it's working but you cannot fire a plug with a needed parameter, e.g. url.

Former Member
0 Kudos

Hi Zakar,

The URL in that case needs to be added in SICF transaction as mentioned by someone in this thread.

Regards,

Dharmi

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

it is a suggestion: you could have a logoff or exit button defined on a page and on clicking that button you could go to a view which does not have any previous page or previous link.

also note that the browser back button is not allowed in web dynpro abap so it will not allow you to go to the previous page unless you have explicitly called the view on the press of a button or a link in your application.

regards,

manish