Show TOC

Starting and Ending a BSP ApplicationLocate this document in the navigation structure

Use

URL parameters can be used to inform the BSP runtime environment to start or end a BSP application (corresponds to the OK code "/n" in SAP GUI). To do this, the Query String parameter sap-sessioncmd is added to the URL and the HTTP request is sent to the server.

Note

To be compatible with SAP Internet Transaction Server (ITS) and the SAP Enterprise Portal (SAP EP), you can also use ~SAPSessionCmd.

For a list of all system-specific URL parameters that have a special use in the BSP application environment, see System-Specific URL Parameters.

Procedure

The following commands are supported:

  • open: Restarts a BSP application that is running. The application is started up if it is not currently running. http://myServer.sap.corp:1080/sap/bc/bsp/sap/it00?sap-sessioncmd=open

  • close: Ends a running BSP application and either tells the system to display a blank page or go to a specific Web site (exit URL). The exit URL is specified using an additional URL parameter. This parameter is called sap-exiturl, and must contain a full HTTP URL.

    Note

    To be compatible with SAP Internet Transaction Server (ITS) and the SAP Enterprise Portal (SAP EP), you can also use ~exitURL.

Example
  • Restart of BSP test application IT00:

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

  • Ending the application externally:

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

    Note

    Pay attention to the spelling of the URL - all URI parameters, that is everything following the ?, must be URL-encoded.