
Unified Rendering browser detection supports more browsers than those that are supported in the Product Availability Matrix (PAM). Administrators can specify whether users are permitted to run Web Dynpro ABAP applications only in browsers supported in PAM, or also in browsers supported by Unified Rendering browser detection. The default setting allows Web Dynpro ABAP applications to be run also in browsers that are supported by Unified Rendering browser detection but not supported in PAM.
You can find information about which browsers are supported by SAP in PAM for Web Dynpro ABAP at http://service.sap.com/pam
.
There are two ways to change the default browser detection:
1. Application parameter WDALLOWEDUSERAGENTS
If you want to specify that users can only run Web Dynpro ABAP applications in browsers supported in PAM, use application parameter WDALLOWEDUSERAGENTS.
More information: Application Parameters and URL Parameters
2. Implementation of a Business Add-In (BAdI)
A BAdI allows you to activate specific browsers to run applications in. This also functions for browsers that are not recognized by Unified Rendering browser detection.
Follow the procedure below:
Implement BAdI WD_BADI_USER_AGENT_DETECTION, and create BAdI interface IF_WD_BADI_USER_AGENT.
For more information about BAdI implementation, see Business Add-Ins (BAdIs).
In the BAdI you can change the attributes of the two parameter groups, lightspeed_info and user_agent_info. You can parse the user agent string yourself and change the browser settings. The tables below describe the attributes and their values.
Attributes of lightspeed_info
|
Attribute |
Data Type of Attribute |
Description and Possible Values |
|---|---|---|
|
supported |
abap_bool |
|
|
tolerated |
abap_bool |
|
|
platform |
string |
Operating system
|
|
renderEngineName |
string |
Name of rendering engine
|
|
renderEngineVersion |
string |
Version of rendering engine |
|
loadOnDemand |
abap_bool |
|
|
renderingMode |
string |
HTML rendering mode
|
|
renderer |
string |
Renderer
|
|
LAFServiceDevice |
string |
The look and feel (LAF) service provides the URL for the themes (stylesheets and images).
|
We recommend that you do not change the values of the other attributes (inlineCSS, activeX, requiresActiveXforLoadOnDemand, accessibility).
Attributes of user_agent_info
|
Attribute |
Data Type |
Description and Possible Values |
|---|---|---|
|
id |
string |
Any unique ID |
|
browser |
string |
Browser name
|
|
version |
string |
Browser version |
|
platform |
string |
Operating system
|
|
mobile |
abap_bool |
|
|
osName |
string |
Operating system group
|
|
osVersion |
string |
Version of operating system group |
|
engineName |
string |
Name of rendering engine
|
|
engineVersion |
string |
Version of rendering engine |
The Web Dynpro framework first calls the BAdI implementations and then evaluates application parameter WDALLOWEDUSERAGENTS.
For tests, component WDR_TEST_USER_AGENT_INFO is provided in the system.