!--a11y-->
Starting and Ending a BSP Application 
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.

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.
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 calledsap-exiturl,and must contain a full HTTP URL.

To be compatible with SAP Internet Transaction Server (ITS) and the SAP Enterprise Portal (SAP EP), you can also use ~exitURL.
· 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

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