cancel
Showing results for 
Search instead for 
Did you mean: 

Web reporting - logoff

Former Member
0 Kudos

Hi all,

i created some webpages on open them via javascript popup. Now i would like to use a button for log off. I think that there is a command url possible to close the "session" together with web template. The template should first log off - that means that session should be closed - and than window should be closed. Anyone hast done something like that before?

Best regards,

M.Erb.

View Entire Topic
Former Member
0 Kudos

M.,

We merely provide a link on our web pages that says 'Log off' which will issue the command below when clicked. This ends the user's session. We do not close the window as you were asking about; instead, we use a Redirect to take them to another page. I would think you could use some JavaScript code to close the window though if you needed to.

<A href="<SAP_BW_URL CMD="LOG_OFF" REDIRECT_URL="http://www.whatever.com">"><u><FONT face="Arial" size="1" color="black" >Log off</FONT></u></A>

You might want to look at the document on the Web API for some of this. Use the link below (this is for 3.5 but a lot of it applies to lower systems as well) -- page 157 shows the LOG_OFF command.

Jody

Former Member
0 Kudos

Joseph,

I tried using the LOG_OFF command in the url but it doesn't actually log off the user from BW. After I clicked on the Log Off link, I was redirected to some random website. Then, I executed another web template in the same window and I was not prompted to login and the web template loaded. I expected to be asked to login.

So, what exactly is the LOG_OFF command supposed to do?

Thanks.

Former Member
0 Kudos

Did you close the current browser window first Audrey?

Former Member
0 Kudos

Audrey,

I am not sure what the difference would be. In our environment, after a user clicks the 'Log off' link and executes the statement I stated earlier, if they launch another BW web template, it does prompt them to re-enter their id/password. The only exception I know of is if they are executing a long running query, the command I listed does not kill that thread. We also use the BSP logon approach instead of the standard authentication -- this allows them to change the password on the web. It requires extra setup in SICF to redirect to the SAP delivered BSP application.

Jody

Adem_Baykal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Audrey,

just go into the transaction sm04 (user overview)!

Now open a web template. Look in sm04 again. You will notice a session named "plugin HTTP" for your user.

Now close the web template (not logoff). Just close the window. Look again into smo04. The session stays. Now open your web template again and use "LOG_OFF". Go back into sm04 and you will see that session is closed. This function only ends the web session for your user.

Regards,

Adem

Former Member
0 Kudos

Jody,

i got a problem. If i use:

<A href="<SAP_BW_URL CMD="LOG_OFF" REDIRECT_URL="http://www.whatever.com">"><u><FONT face="Arial" size="1" color="black" >Log off</FONT></u></A>

it works but i want to redirect to a webtemplate on the same bw server which contains javascript to show a little animation and to close the window. But if i redirect to this web template i need to log in again. Thats not good Any ideas what could be wrong?

Best regards,

M. Erbil.

Adem_Baykal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi M. Ebil,

just use following link in your url.

Example:

<A class=SAPBExBtnStd onClick="javascript:window.close();" href="<SAP_BW_URL CMD="LOG_OFF">">Log out</A>

Best regards,

Adem

Former Member
0 Kudos

One other thing I forgot to mention... there is a note 629124 out there around cancelling all requests under a session during logoff. This uses the command below:

<SAP_BW_URL CMD='LOG_OFF'>& sap-sessioncmd=cancel">

This requires a 6.20 kernel at patch level 850 and higher & 3.0B SP14.

Jody