on 02-22-2013 7:02 AM
Hi Expert,
Could you please advice me how to add a custom button in a standard WebDynpro applications that will enable me to log off from the complete session.
Kindly let me know how to achieve the same.
Regards,
Jayesh
Hi,
First enhance your Web Dynpro View by clicking on the enhance button (spiral button) and create a button. Now in OnAction of button Fire Exit Plug.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/ca3351508f04e7e10000000a42189c/frameset.htm
Check this link for enhancing WDA: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/700317da-bd79-2c10-368e-8f18bf5d8...
And this for Using Exit Plug: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0018077-f0c9-2b10-87af-eb9bb4077...
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 Jayesh,
I had the similar requirement. What I did is I used the simple BSP for log off.
Step 1) :FOr the logoff button fire the exit plug like this
DATA lo_w_main TYPE REF TO ig_w_main .
lo_w_main = wd_this->get_w_main_ctr( ).
lo_w_main->fire_exit_app_plg( URL = '/sap/bc/bsp/sap/zsnr_logoff/logoff.htm' )--->this is the simple BSP which I created.
Step2) In BSP call your webdynpro application again..
In BSP Use the following Code its just a simple page..
<%@page language="javascript"%>
<html>
<script language="JavaScript">
// Delete the cookie with the specified name.
document.execCommand( 'ClearAuthenticationCache' );
</script>
<META HTTP-EQUIV=Refresh CONTENT="0; URL=/sap/bc/webdynpro/sap/zsnr_order_maintain">---->In this place call your webdynpro application which will ask the credentials again...
Logging off...
</BODY>
</html>
And it will work only in Internet explorer
Thanks
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
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.