Work with SAPUI5 Adaptation Projects to generate and make simple changes to an application variant of an SAP Fiori application in SAP S/4HANA Cloud Public Edition (1 of 3)
You will learn how to work with SAPUI5 Adaptation Projects to extend a standard SAP Fiori application by generating and making simple changes to an application variant in SAP S/4HANA Cloud Public Edition
Overview
You will learn
- About SAPUI5 Adaptation Projects.
- How to create an SAPUI5 Adaptation Project in SAP Business Application Studio to generate a variant of an SAP Fiori application.
- Use the Adaptation Editor to define simple and effective changes to your application variant.
- Add simple source code to the Manifest file to change the table properties.
Prerequisites
Prerequisites
Before you can start working with SAPUI5 Adaptation Projects in SAP Business Application Studio, you must first perform the following steps in SAP S/4HANA Cloud, ABAP environment using ABAP Development Tools (ADT):
For more information about how to set up and work with SAP Business Application Studio, see:
Steps
Intro
Important information
This group of three tutorials focuses on SAPUI5 Adaptation Projects in SAP S/4HANA Cloud Public Edition. The same basic principles and features of SAPUI5 Adaptation Projects similarly apply to SAP S/4HANA and SAP S/4HANA Cloud Private Edition. While the first and second tutorials also largely apply to SAP S/4HANA and SAP S/4HANA Cloud Private Edition, the third tutorial applies specifically to SAP S/4HANA Cloud Public Edition.
To learn more about SAPUI5 Adaptation Projects in SAP S/4HANA, please see the SAP Help Portal:
Please note: the documentation is also valid for SAP S/4HANA Cloud Private Edition.
When to extend
SAP S/4HANA Cloud Public Edition delivers the latest industry best practices, innovations, and business applications to you as a service. If a standard SAP Fiori application doesn’t fully support your business process or the specific needs of some of your business users, you can extend SAP S/4HANA Cloud Public Edition by creating and adapting an application variant, while the original SAP Fiori application remains available and unchanged. In an application variant, you can extend the original code to define changes that fulfill the specific business requirements of different business roles, user groups, organizational units, and countries. For example, you might want to create an application variant to simplify and streamline a specific process by hiding fields not required by casual users, visualizing data as a chart, or changing a responsive table to a grid table to make information easier to process.
New for SAP S/4HANA Cloud Public Edition 2402
As of SAP S/4HANA Cloud Public Edition 2402, developers can work with SAPUI5 Adaptation Projects in SAP Business Application Studio (BAS) to create application variants. Developers efficiently reuse the original SAP Fiori application together with its OData service and application logic to define changes that are specific to the application variant only.
After deployment, both the source application and the newly created application variant exist with distinct titles and can be made available to the relevant business users through uniquely named application tiles in SAP Fiori launchpad: My Home. After a Cloud upgrade, developers can test the application variant in SAP Business Application Studio and, if there are no issues, they can deploy it again to benefit from the latest SAP enhancements to the original application (see Check Whether the Base App of an Adaptation Project Is Up-To-Date).
The following figure shows the relationship between the source application (blue) and an application variant (green):

Use case
Let’s imagine you’ve received feedback from a group of Credit Controllers at your company who occasionally work with the SAP Fiori application Manage Credit Accounts: (https://fioriappslibrary.hana.ondemand.com/sap/fix/externalViewer/#/detail/Apps('F4596')/S31). You’ve been informed that the standard application does not fully support their needs. By creating an application variant, as opposed to developing a new custom application from scratch, you can efficiently make the changes for this group of Credit Controllers, while other Credit Controllers at your company can continue to use the original application.
The Manage Credit Accounts application is based on the List Report Object Page floorplan. You will simplify the user experience for this specific group of Credit Controllers by:
List Report:
Providing them with a Clear button in the filter bar
Enabling them to use variant management in the table
Changing the table type from a Responsive Table to a Grid Table using the condensed table layout

Original Manage Credit Accounts: List Report
Object Page:
Removing the header facets they don’t need
Removing the sections they don’t need

Original Manage Credit Accounts: Object Page
If you want to view the original Manage Credit Accounts application in My Home in SAP S/4HANA Cloud Public Edition, you must first log onto your ABAP system as an Administrator, open the Maintain Business Roles application, create a business role from the role template SAP_BR_CREDIT_CONTROLLER and assign the business role to your user (for more information, see How to Create a Business Role from a Template).
Watch this short video to see what changes you’ll make once you complete the three developer tutorials:
Log onto SAP Business Application Studio (BAS) and access your SAP Fiori development space.
Choose New Project from Template (which can be selected from either the File menu, or which is available directly on the Get Started screen), select the SAPUI5 Adaptation Project template, and choose the Start button.

Original Manage Credit Accounts: Object Page On the System and Application Selection screen, select from the
Systemdropdown list the SAP S/4HANA Cloud system you want to use.- Ensure that Project Type: cloudReady is shown. (Select for this tutorial another system / a cloud system if Project Type: onPremise should be shown.)
From the dropdown list in the Application field, choose the SAP Fiori application that you wish to use as the basis for your application variant. Choose
F4596 Manage Credit Accounts.Press the
Nextbutton.On the Project Attributes screen, enter the basic information required for your adaptation project:
- Project Name: uniquely identifiable name
creditaccounts.appvar.<your initials>, e.g. creditaccounts.appvar.cl1. - Application Title: uniquely identifiable name
<Manage Credit Accounts Simplified><your initials>. - Add Deployment Configuration: Yes
- Add SAP Fiori Launchpad Configuration: Yes
- Project Name: uniquely identifiable name
Press the
Nextbutton.Configure the Deployment Configuration settings.
- Enter a unique SAPUI5 ABAP Repository name, for example,
ZMCA<your initials>, e.g.ZMCACL1 - Enter an optional deployment description.
- Choose
Enter Manuallyfor the field Select How You Want to Enter the Package. - Enter the name of the package in the Package field (created under prerequisites Create ABAP Package).
- Choose
Enter Manuallyfor the field Select How You Want to Enter the Transport Request. - Enter the name of your transport request in the Transport Request field (created under prerequisites Create a transport request).
- Enter a unique SAPUI5 ABAP Repository name, for example,
Press the
Nextbutton.Configure the SAP Fiori Launchpad Configuration – Tile Settings settings.
- Choose
Add a New Tilefor the field Choose a Tile Handling Action. - Choose
Yesfor the field Copy Configuration from an Existing Inbound.
- Choose
Press the
Nextbutton.Configure the SAP Fiori Launchpad Configuration settings.
- In the Inbound ID field, select the inbound ID from the dropdown list
BusinessPartner-manageCreditAccounts. - In the Semantic Object field, enter the name of the semantic object of the original application
BusinessPartner. - In the Action field, enter a unique new action
manageCreditAccountsAppVariant1. - In the Title field, enter the title of your application variant of Manage Credit Accounts that is to be displayed on the new tile
<Manage Credit Accounts Simplified> - In the Subtitle field (optional), you can enter the subtitle to be displayed on the new tile
Simplified.
- In the Inbound ID field, select the inbound ID from the dropdown list
To create your new SAPUI5 Adaptation Project, press the Finish button.
As soon as your SAPUI5 Adaptation Project has been created, the Application Information page is displayed. You can view the adaptation project in your Projects folder and expand the nodes in your workspace.
Context Infos for Next Steps: Define changes to your newly created application variant
To make the changes requested for the specific group of Credit Controllers, you need to extend the source code of your application variant in SAP Business Application Studio.
In your workspace, navigate to the newly created SAPUI5 Adaptation Project under projects, right-click on the manifest.appdescr_variant file in your adaptation project and choose Open Adaptation Editor.
The List Report Quick Actions are available for common changes in an adaptation project, while more sophisticated changes might require control property changes. For the sake of completeness, we show in the Control Property Change tab how the Clear button could alternatively be enabled via a control property change.
In UI Adaptation mode, choose from the List Report Page Quick Actions the action Enable “Clear” Button in Filter Bar.

List Report Quick Actions Press Save.
In UI Adaptation mode, select the SmartFilterBar area (displayed below the header area of the screen).
In the SmartFilterBar pane displayed on the right of the screen, scroll down to the Show Clear On FB field and change the setting from false to true.
Press Save.
In your project workspace, the propertyChange you have just made is listed in the webapp folder under changes.

Show Clear on FB Filter Bar
The List Report Quick Actions are available for common changes in an adaptation project, while more sophisticated changes might require manifest changes. For the sake of completeness, we show in the Manifest Change tab how the variant management could alternatively be enabled via a manifest change.
In UI Adaptation mode, choose from the List Report Page Quick Actions the action Enable Variant Management in Tables and Charts.

List Report Quick Actions Press Save.
In UI Adaptation mode, select the complete List Report Page and choose Configuration from the context menu.

Configuring Manifest Changes In the Configure List Report popup, select for Variant Management the value Per Control and choose Apply.

Configuring Manifest Changes Press Save.
In UI Adaptation mode, select the Table and choose Configuration from the context menu.

ListReport Table Configuration In the Configure Table popup, select for Table Type the value Grid Table and select the checkbox for Condensed Table Layout. Choose Apply.

ListReport Table Configuration Press Save.
For more information, see Extending Delivered Apps Manifest Using an Adaptation Project
Right-click the webapp folder and choose Open Adaptation Editor from the context menu to display the List Report in UI Adaptation mode. Switch to the Navigation mode and press the Go button to display Business Partner data in the table.
Select a Business Partner in the table by pressing the chevron icon at the end of the row. By selecting a Business Partner, you can navigate from the List Report to the Object Page.
On the Object Page, switch to UI Adaptation mode. Select the header facet you want to remove, for example Scoring Trend.
To remove a header facet from the Object Page, select the entire facet (not just its title), open the context menu and select Remove.

Object Page: remove facet To remove further header facets from the Object Page, repeat this action for the following facets: Credit Limit Trend, Aging Grid, Payment Trend. The facets are removed immediately.
Press Save
Working with the open Adaptation Editor in which you deleted the facets not required, you can now remove the tabulated sections by:
In UI Adaptation mode, select the entire tab you want to remove from your application variant (for example External Ratings). Afterwards open the context menu and select Remove.

Object Page: remove External Ratings section Remove the following additional sections:
- Financial Statement Data
- Collateral
- Negative Credit Events
- Check Exceptions
- Score Evaluation Log
- Notes
- Attachments
- Change Documents
Change to Navigation mode and verify the changes you’ve made. The sections displayed are now limited to Scoring, Credit Segments, Documents with Credit Block, Credit Limit Requests, and Credit Insurances.
Press Save.
For more information, see - Adapt the UI
To track all the changes you’ve made, see the changes folder in the project folder structure.
After you’ve finished making the requested changes to your application variant, you can preview the changes made. To do this, expand the webapp folder in your SAP Business Application workspace and right-click on the manifest.appdescr_variant file. In the context menu, choose Preview Application.
Preview the Adaptation Project
The List Report of our newly created application variant:
- Provides a Clear button in the filter bar
- Enables use of variant management in the table
- Uses Grid Table with condensed table layout

The Object Page of our newly created application variant:
- No longer displays unnecessary facets in the header
- No longer displays the superfluous sections

In this developer tutorial, you have learned what SAPUI5 adaptation projects are and how to work with them.
You have:
- Created an SAPUI5 Adaptation Project in SAP Business Application Studio to generate a variant of an SAP Fiori application.
- Used the Adaptation Editor to define simple and effective changes to your application variant.
- Added simple source code to the Manifest file to change the table properties.
Test your knowledge
After completing this tutorial, you can continue the end-to-end process with:
Resources
Discussion
Share feedback on this tutorial or join the conversation in SAP Community.