Interface IF_BSP_RUNTIME
The interface IF_BSP_RUNTIME gives you access to information contained in the current runtime environment of a BSP application. It gives you access to the most important objects and information in the form of attributes.

Accessibility is integrated in the BSP runtime.
CL_BSP_RUNTIME
Attribute Name |
Declaration Type |
Description |
application_name |
Instance attribute |
Name of the BSP application |
application_namespace |
Instance attribute |
Name space of the BSP application |
application_theme |
Instance attribute |
Theme of the BSP application |
application_url |
Instance attribute |
URL prefix of the BSP application |
ddic_utils |
Static attribute |
Dictionary services |
keep_context |
Static attribute |
Stateful/stateless BSP application (0/1) |
page_name |
Instance attribute |
Name of the BSP |
page_url |
Instance attribute |
URL prefix of the BSP |
runtime_url |
Static attribute |
URL prefix of the BSP runtime |
server |
Static attribute |
HTTP Server |
session_manager |
Static attribute |
Workplace Session Manager |
client_info |
Static attribute |
Device properties for the current request |
session_id |
Static attribute |
BSP Session ID This
attribute uniquely labels the user session. The backend is therefore
completely independent, that is, the value of this attribute is set
independently of the context at the server. § If you set keep_context from 0 to 1 and § If you already have a browser open and you open a new one (using File → New → Window, for example) The value of this parameter does change if you close the browser and open a new one. |
Signature |
class-method construct_bsp_url |
|
Description |
This method builds a server-specific, absolute URL for a BSP application or BSP. You can use the parameter in_protocol to control whether a HTTP- or HTTPS URL should be generated.
This method can be expensive at runtime, You are recommended not to call it unnecessarily often. At runtime, instead of using this static method, you can use the instance attribute runtime_url, application_url or page_url as an alternative. |
|
Parameters |
in_protocol |
Requested protocol (HTTP or HTTPS) |
in_host |
Requested host |
|
in_port |
Requested port number |
|
in_application_ns |
Namespace of the BSP application (if not 'sap') |
|
in_application |
Name of the BSP application |
|
in_page |
Name of the BSP |
|
in_parameters |
Table with name/value pairs that are to be integrated in the URL as query-string parameters |
|
in_suppress_rewrite |
0: Allow URL
rewriting of the BSP runtime |
|
Return Values/Exceptions |
out_protocol |
Actual protocol (HTTP or HTTPS), which can differ from in_protocol if not supported by the server |
out_host |
Domain name of the application server |
|
out_port |
Port number for protocol on the application server |
|
out_local_url |
URL relative to current application server |
|
out_abs_url |
Absolute URL, that is, including protocol, application server name, port number etc. |
|
Signature |
method
get_otr_text |
|
Description |
This method returns the OTR text in the current language (sy-langu) for the alias specified. If there is no such alias, an empty string is returned. If there is no text for the alias in the current language, the secondary (or fallback) language is used. |
|
Parameters |
alias |
OTR alias including name space (case-insensitive) |
Return Values/Exceptions |
text |
OTR text for alias in the current language or empty string if no alias exists |
Signature |
method
with_accessibility |
|
Description |
You determine the accessibility using this method. Note that this does not make any statement about the accessibility of the application itself. |
|
Parameters |
|
|
Return Values/Exceptions |
access |
This return value states whether accessibility is active or not. |