cancel
Showing results for 
Search instead for 
Did you mean: 

SICF LOGOFF

Former Member
0 Kudos

Hello,

I am trying to implement a logoff action in my webdynpro application.

We dobnt use a protal and then the solution i've found sap help, sdn and some other blogs was to write a javascrpit application in my service.

I did like what was recomanded but loging of my application don't trigger my code.

I am using an exit plug without parameters.

I had removed my javascript code and kept only an alert message, but it is still not working.

does abny oen know why my code was not triggred in my service?

Thanks in advnce.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Achref zaidi

hope your solution reside in the below link

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

http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/04a5421935c511e10000000a1550b0/content.htm

regards

Chinnaiya P

Former Member
0 Kudos

I did like exposed in the links.

i've just put an javascript alert message in the body of my logoff tabstryp but nothing happens when i run my application.

gill367
Active Contributor
0 Kudos

Paste the code that you are writing in the body of logoff tab.

also double check that you have written it into EXPLICIT RESPONSE page body section of logoff only.

thanks

sarbjeet singh

Former Member
0 Kudos

var a = true; a = confirm('La page web en cours tente de fermer la fenetre. /n Voulez vous fermer cette fenetre? /n'); if (a) { top.close( ); } else { return true;}

{/code]

gill367
Active Contributor
0 Kudos

I hope you are writing it in the onload of body of html

thanks

sarbjeet singh

Former Member
0 Kudos

I am writing the same code that was in the saphelp.

It is diplaying the message and the button.

But there an error and the butoon dont work.

http://help.sap.com/saphelp_nw70/helpdata/en/fc/04a5421935c511e10000000a1550b0/content.htm}

Former Member
0 Kudos

Hello Achref,

Did you notice there is a mistake in the documentation sample code?

The opening script tag has been replaced by a closing one. Try removing the '/' caracter before the first script tag.


< html >

&lt; / script &gt; <-- replace this by: *&lt; script &gt;*

        function closeWindow( ){

(and remove above spaces after '&lt;' and before '&gt;', as usual)

Hope it helps,

Tanguy

Former Member
0 Kudos

i have already figured that out.

it is still not working.

Former Member
0 Kudos

You said earlier:

But there an error and the butoon dont work.

What is the error you get?