cancel
Showing results for 
Search instead for 
Did you mean: 

logoff BSP closing application and closing SAP session.

Former Member
0 Kudos

When I'm closing my BSP appication by closing browser ,SAP session are not ending.I need to implement logoff functionality into my BSP application.

Please send me some sample code for logoff from BSP.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI Ranganatha Prasad Kurupati

There is a Default BSP applications

<b>named: SBSPEXT_HTMLB</b>

which contains Demo Sample codes.

There is a BSP page named : <b>'logoff.htm'</b>.

Which contains the sample code for logoff from BSP.

<b>BSP APPLICATION: SBSPEXT_HTMLB

BSP PAGE : logoff.htm</b>

Cheers,

Vijay Raheja.

-


Don't forget to close the thread,if your question is answered.

-


Answers (5)

Answers (5)

Former Member
0 Kudos

Use this..it worked for me.

  •   Restart of BSP test application IT00 use sap-sessioncmd=open:

Example:

http://myServer.sap.corp:1080/sap/bc/bsp/sap/it00?sap-sessioncmd=open

  • Ending the application externally:

Example:

http://myServer.sap.corp:1080/sap/bc/bsp/sap/it00?sap-sessioncmd=close&sap-exiturl=http%3a%2f%2fwww....

Former Member
0 Kudos

Hai Prasad,

Refer to BSP Application

system->session_single_frame.htm

It contains the fuctionality that u are looking for,

you can just copy the page and change

DATA: target_page               TYPE STRING VALUE 'session_test.htm'.

session_test.htm to your starter page.

Make sure u turn off the popup blockers,

Regards,

Venkatesh

thomasalexander_ritter
Active Contributor
0 Kudos

Hi,

check out the blog from Thomas Jung> /people/thomas.jung3/blog/2004/11/09/updated-stateful-bsp-applications-new-state-management-option

regards

Thomas

Former Member
0 Kudos

This was helpful.and i 'm able to embed html in htmlb page and called java script to logoff..

Reps.. Added..

jerome_lim
Participant
0 Kudos

Hi,

Could you share how you did you embed the logoff.htm in htmlb ?

which js have you called?

thanks.

BenJ

Former Member
0 Kudos

hi

There is another post of Similar problem just check this link ......it will help you out

have a nice time....

Mithlesh