on 11-16-2013 4:58 PM
Hi All, I have a requirement where web dynpro abap application is idle for 10 minutes instead showing the standard sap timeout error message client asked to close the browser or logoff the session. There are many links available in relation to sap portal session time out, logoff close the browser etc....This requirement is specific to one Web Dynpro MSS abap application (Standard SAP Application) integrated with sap portal. I have to make this work with web dynpro abap application not vai sap portal framework.
So far I have done: Created a context attribute Timer, mapped to WebDynpro UI TimedTrigger. In the init method , I have set this variable to lv_timer = 10 minutes. Since TimedTrigger element has action , as soon as 10 minutes over, I need close the browser or logoff whichever is the easiest.
Need some input or code snippet to get this work,
Note: I have already setup sap time ICP time out parameter and this works fime , after 10 minutes session is closing and showing up standard sap error message but client doesnt want that way, need is to close the browser.
These links talk about the issue but not talking about logoff the WebDynpro app or close the browser after time out. tried setting this parameter also, not helpful : rdisp/plugin_auto_logout within ICM http://wiki.scn.sap.com/wiki/display/ep/ep+snippet+-+portal+user+idle+timeout+for+logoff+-+custom+ja... http://scn.sap.com/thread/1185353
Thanks in advance Sailv
Just to be sure : you want an abap application embedded in a portal, when timeout triggering, to close the browser or logout from portal?
If this is it and you con't do it from portal side then I think you won't make it.
There's a point un SAP Help saying that EXIT plug doesn't work when embedded in portal.
http://help.sap.com/saphelp_erp60_sp/helpdata/en/45/1bc575ba064574e10000000a114a6b/content.htm
And the script closing the browser is not compatible with all browser applications.
You should probably try to convince your client to try a portal side solution.
Maybe a simple but friendly specific timeout page redirecting to another potal view could also be a solution?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sail,
Please follow this blog for the exact solution steps:
http://anoopgupta20.blogspot.com/2013/03/code-to-closeterminate-abap-wzebdynpro.html
All U need to do is to :
1. create an enhancement in the standard MSS component ,
2. Create an exit plug in the window.
3. Either call this method from the view on click event or , put a timer in the view which will call this method after certain time .
CODE:
Best Regards,
Anoop
Message was edited by: Neil Gardiner
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anoop,
Thanks a lot for time in repying my question, I have tried the samecode already but it doesn't work .
In my enhancement spot for the given standard MSS comp doesn't allow to create SAP EXIT plugs, I am jsut not sure why SAP not alliwong to created SAP EXIT plugs in stnadard sap delivered applications, Where as I can create EXIT plug for custom Z applications. is that limitation with standard applications?
When I try to create a EXIT plug I am getting the below error/Warning.
Property exit/suspend plug is only useful for plugs of the interface Message no. SWDP_WB_TOOL287 Since I was unable to fire exit plug , i cannot call any browser or URL, html page to close the anactivity of the browser. Thanks Sailv
Sail ,
You are right , it doesn't allow to change the property "interface" for exit plug in the window in standard component.
The only workaround is : Copy the standard component and change it.
On another workaround is to create a z component having the functionality of exit plug , and the enhance the standard WD , by including this z component as a used component .
In the view create a view container ui element and call the 'Z' component view there .
Best regards,
Anoop
Hi sail,
you could use the solution provided by the following article.
instead of putting it in the framework page put the timeout iview in the page related to MSS application.
It will log out you from the portal only when you are idle in the particular application only.
Regards,
Sarbjeet SIngh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sarbjeet, Thanks for the reply, Sorry unfortunately we do not have NWDS to make these changes, I agree it make sense to implement this Timeout solution from the portal level so that there are no conflicts or issues with other applications, but client side insisting to use only for this one Web Dynpro ABAP standard SAP application as they do not want to introduce NWDS. Thanks Sailv
Web dynpro abap i tried already to put one iframe and then running the javascripts to check for the idle time and then closing the window or loggin off.
but iframe is treated as isolated component and it was not working properly.
Better is to convince your customer for NWDS. it will not cost extra. you just have to build one par file and deploy... thats it.
Regards,
Sarbjeet Singh
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.