This blog will describe how to embed SAP Product Lifecycle Management Visualization into SAP Asset Performance Management. For brevity, SAP Product Lifecycle Management will be referred to as “PLM” and SAP Asset Performance Management will be referred to as APM.
PLM Visualization can help users such as asset owners, plant managers, and maintenance technicians to improve asset performance, manage asset risk and optimize maintenance strategies, planning and execution.
The August 2023 APM release includes support for SAPUI5 flexibility, enabling UI extension. Using this mechanism, it is possible to embed PLM Visualization inside the APM Explore Technical Object application, which enables users to work with a visual representation of the technical object within its spatial context without leaving the APM application. The visual context for asset risk and criticality, including operational and condition-based data allows users to perform enterprise asset management more easily, which ultimately allowing asset operators to reduce maintenance costs while lowering risk and raising output.
Using the APM UI extension mechanism, a tab containing the PLM Visualization Viewer application can be added to the details page in the APM Explore Technical Object application. The PLM Visualization Viewer application is then loaded in an HTML iframe using a URL that provides the information needed to load the relevant visualization using a particular viewer template. The URL also provides the information needed to select the visual representation of the technical object in the PLM Visualization Viewer viewport. This highlights the visual representation of the technical object and can also allow data related to the technical object to be shown, if configured in the viewer template.
Prerequisites
Some familiarity with APM and PLM Visualization is assumed.
Check the PLM and APM documentation for further information.
The following prerequisites are required for this integration:
Once the above prerequisites have been met, follow the steps below to generate the PLM Visualization Viewer application URL and configure the UI extension in APM.
Step 1: Generate a Visualization URL
Step 2: Generate a complete URL
Open a web browser developer tools console.
Set the URL copied from the Share Link Dialog in a baseUrl variable:
Use a technicalObjectUsageId variable to hold a JSON string representing a usage id value of the type you will use to store the APM technical Object ID values.
Usage IDs are represented in the form of a JSON object which has a name field that contains the name of the usage id and a keys field that contains an array of objects which each contain a name and a value field. The name and key name you will need to use will depend on the definition of the usage id you are using. You can check the usage ID definition in the PLM Visualization System Administration application.
Use a key value of technicalObjectIdToSubstitute in your usage id JSON.
If you only have one IdP configured for login in your subaccount, the entire URL can be constructed as below:
console.dir(baseUrl.replace('superiorFunctionalLocationIdToSubstitute', '{superiorFunctionalLocationId}') + '&selectNodesWithUsageId=' +
encodeURIComponent(encodeURIComponent(technicalObjectUsageId))
.replace('technicalObjectIdToSubstitute', '{technicalObject}')
)
If you have multiple IdPs configured for login in your subaccount (or such a configuration could occur in the future), you will need to ensure that your URL includes a sap_idp query parameter.
In this case you can store the IdP origin key (which can be found in the Trust Configuration page for the subaccount in the BTP Cockpit) in an idpOriginKey variable and construct the complete URL as below:
console.dir(baseUrl
.replace('superiorFunctionalLocationIdToSubstitute', '{superiorFunctionalLocationId}')
.replace('#', '?sap_idp=' + idpOriginKey + '#') + '&selectNodesWithUsageId=' +
encodeURIComponent(encodeURIComponent(technicalObjectUsageId))
.replace('technicalObjectIdToSubstitute', '{technicalObject}')
)
After May 2024, it will be possible to specify hide the shell header of the launchpad that the PLM Visualization launchpad by passing an additional intent parameter with a name of hideShellHeader and a value of true. Below is JavaScript that will create a URL that also includes the intent parameter to hide the shell header:
console.dir(baseUrl
.replace('superiorFunctionalLocationIdToSubstitute', '{superiorFunctionalLocationId}')
.replace('#', '?sap_idp=' + idpOriginKey + '#') +
'&hideShellHeader=true' +
'&selectNodesWithUsageId=' +
encodeURIComponent(encodeURIComponent(technicalObjectUsageId))
.replace('technicalObjectIdToSubstitute', '{technicalObject}')
)
Step 3: APM UI Adaptation (see APM Help Documentation)
Prerequisites:
You have the following roles assigned to your user.
Steps:
SAP Asset Performance Management PLM (Product Lifecycle Management) SAP Enterprise Product Development
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
11 | |
1 | |
1 |