Starting and Ending a BSP Application

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.

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.

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