Prerequisites
Business catalog was created in exercise Reference Tiles and Target Mappings.
Task 1: Activate Runtime Adaptation for a user.
Steps
Add the role SAP_UI_FLEX_KEY_USER to your user in the User Maintenance (SU01
) of your SAP S/4HANA (S4H) system.
In the SAP Easy Access menu of your S4H, search for User Maintenance or start transaction SU01
.
In the User field, enter your user.
Choose Change.
Choose the Roles tab.
In the Role column, open the value help.
In the Single Role field, enter *ui_flex* and choose Enter.
Select the Single RoleSAP_UI_FLEX_KEY_USER and choose Copy.
Choose Save.
Task 2: Create an app variant by using Runtime Adaptation.
Steps
Open the object page for the sample bank Deutsche Bank 24 using the SAP Fiori search of your S4H.
Start or reload the SAP Fiori launchpad of your S4H in the client of your choice.
Choose Search in the upper right.
In the Search menu, choose Banks.
In the Search field, enter 24 and choose Enter.
Choose Deutsche Bank 24.
By using Runtime Adaptation (RTA), change the Control Data group heading to Core Data, add the Bank Country and City fields to the Address group, and remove the Bank Branch and Region fields in the object page for banks.
Choose your user in the upper right corner.
In the User Actions Menu, choose Adapt UI.
Right-click on Control Data and choose Rename.
Change the heading to Core Data and choose Enter.
Right-click on Address and choose Add: Field.
In the Available Content: Fields dialog box, select Bank Country/Region and City and choose OK.
Right-click on Bank Branch and choose Remove.
Right-click on Region and choose Remove.
Save your changes as app variant Core Bank Data ## as Local Object and copy the app ID in the clipboard.
Choose Save As.
In the Title field, enter Core Bank Data ##.
Add an icon of your choice.
Choose Save.
In the Information dialog box, choose Copy ID and Close.
Hint You may want to paste the app ID in a text file.
Task 3: Define a target mapping for the app variant in the SAP Fiori launchpad designer.
Steps
In the SAP Fiori launchpad designer of your S4H, create a reference for the target mapping with semantic object Bank and action displayFactSheet of the SAP: Financials - Cash Management Apps (SAP_TC_FIN_CM_COMMON) catalog in your catalog Employee ##.
In the SAP Fiori launchpad designer of your S4H, choose Catalogs.
In the Search for catalogs field, enter fin_cm and choose Enter.
Choose SAP: Financials - Cash Management Apps (SAP_TC_FIN_CM_COMMON) from the list of catalogs.
Choose Target Mappings at the top of the page.
In the Search field on the top right, enter factsheet and choose Enter.
Select the Semantic ObjectBank with ActiondisplayFactSheet .
Choose Create Reference.
In the Search for catalogs field, enter z_## and choose Enter.
Choose your Employee ## catalog.
Paste the app ID of your app variant from the clipboard in the ID field of the target mapping with semantic object Bank and action displayFactSheet of your catalog Employee ##. Change the title to Show Bank ## and the semantic action to displayFactSheet##.
In the Search for catalogs field, enter z_## and choose Enter.
Choose your Z## - Employee catalog.
Select the Semantic ObjectBank with ActiondisplayFactSheet .
Choose Configure.
In the ID field, paste the app ID from the clipboard.
In the Title field, enter Show Bank ##.
In the Action field, enter displayFactsheet##.
Choose Save.
In the dialog box to confirm the break of the reference, choose OK.
Task 4: Test the app variant in the SAP Fiori launchpad.
Steps
Reload your SAP Fiori launchpad of your S4H and search for banks. Choose Show Related Objects For Banks in the search result and check your app variant.
Reload the SAP Fiori launchpad of your S4H in the client of your choice.
Choose Search in the upper right.
In the Search menu, choose Banks.
In the Search field, enter 24 and choose Enter.
Choose Show Bank ##.
Check if your changes are visible.