SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Work with SAPUI5 Adaptation Projects to extend the source code of an application variant to be deployed to SAP S/4HANA Cloud Public Edition (2 of 3)

You will learn how to work with SAPUI5 Adaptation Projects to extend a standard SAP Fiori application by adding custom UI elements and controller logic to an application variant in SAP S/4HANA Cloud Public Edition.

Overview

🎓 beginner 30 min. SAP S 4hana CloudBeginnerTutorialSAP S 4hana Cloud Public EditionSAP Fiori ElementsSAP Business Application StudioSapui5

You will learn

  • How to extend the source code of your application variant.
  • How to add a new section.
  • How to visualize Payment Trends as a simple chart.

Prerequisites

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).

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:

Object Page:

  • Adding a new section for Payment Trends
  • Displaying payment trends in a chart
Step 1 Access your SAPUI5 Adaptation Project

  1. Log onto SAP Business Application Studio (BAS) and access your SAP Fiori development space.

  2. Expand the Projects folder and right-click on the adaptation project you created in Tutorial 1 and select Open Adaptation Editor from the context menu.

  3. The List Report of the Manage Credit Accounts application is displayed in UI Adaptation mode. Switch to Navigation mode.

  4. Choose the Go button to populate the table with data.

  5. Select a business partner by choosing the chevron button to navigate to the Object Page.

    ![List Report: Select Business Partner](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/sapui5-adaptation-extend-variant/1_List Report Select Business Partner.png)

Step 2 Extend Object Page with Controller
+
Step 3 Maintain i18n properties for the payment trend chart
+
Step 4 Create utils folder for function call and model generator
+
Step 5 Access overview of changes made
+
Step 6 Summary
+
Step 7 Follow-up actions
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 7
1. Access your SAPUI5 Adaptation Project 2. Extend Object Page with Controller 3. Maintain i18n properties for the payment trend chart 4. Create utils folder for function call and model generator 5. Access overview of changes made 6. Summary 7. Follow-up actions

Learn more →