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

Configure Object Pages Using SAP Fiori Tools

Configure the object pages that can be accessed from your app using the various extensions available in SAP Fiori tools.

Overview

🎓 beginner 40 min. SAP Fiori ToolsBeginnerSAP FioriOdataSapui5User Interface

You will learn

  • โœ”How to configure an object page using annotations
  • โœ”How to add a new object page to your project
Unknown U Unknown November 1, 2022
Created by June 18, 2020
Contributors

Prerequisites

Prerequisites

Steps

Intro

Now that you have created a list report page featuring a list of items, your end users need to be able to drill down for more information on a single item.

In this tutorial, you are going to add a supplemental data to the object page that accompanies your list report. This way your users can learn more about an item in the list. The object page contains some preconfigured annotations that you will modify to meet your end users’ needs. These modifications include adding a section for technical data, as well as a chart and a table. After that, you will add another object page so that your end-users can drill down for even more information pertaining to the sale of the item.


Step 1 Copy UI.FieldGroup from backend annotation source
โ€”

To begin, you need to create a FieldGroup for the technical information that will be displayed on the first object page. To do this, you are going to use the SAP Fiori tools Service Modeler to see whether the backend developer has already added the annotation term UI.FieldGroup to the target so that it can be re-used for editing locally.

  1. Launch the Visual Studio Code Command Palette by pressing CMD/Ctrl + Shift + P, typing Service Modeler, and then selecting Fiori: Open Service Modeler with your mouse or the Enter key once it appears.

    If you have more than one project in your workspace, you will have to select the project you have created for this tutorial.

  2. A list of projections will open in a new tab. Select the projection SEPMRA_PROD_MAN.SEPMRA_C_PD_ProductType and Click the @ icon to view the annotations for this target.

  3. Under the SEPMRA_PROD_MAN_ANNO_MDL.xml backend source, look for UI.FieldGroup#TechnicalData. This is the FieldGroup you need to add to your page.

    Click the Copy button next to it. You will notice a new entry has been created under annotation.xml and the entry under SEPMRA_PROD_MAN_ANNO_MDL.xml has been formatted with a strike through.

    A tab with your local annotation file will open. The annotation term UI.FieldGroup#TechnicalData will be copied and highlighted inside it. It is currently missing the field Dimensions Unit. Since a measurement is not as helpful without a unit, you will add this new data field now.

  4. To add a new data field, create a new line after the following section.

    XML
    <Record Type="UI.DataField">
      <PropertyValue Property="Value" Path="Weight"/>
      <Annotation Term="UI.Importance" EnumMember="UI.ImportanceType/Medium"/>
    </Record>

    Use the Code Complete feature: Press CMD/Ctrl + Space and then choose &lt;Record "DataField"&gt;. Press CMD/Ctrl + Space again to choose Path=''. Lastly, for providing value for Path, press CMD/Ctrl + Space to select DimensionUnit. Your added code should look like below:

    XML
    <Record Type="UI.DataField">
      <PropertyValue Property="Value" Path="DimensionUnit"/>
    </Record>
Step 2 Add section with UI.Facets to display technical data
+
Step 3 Add section to show monthly revenue of product
+
Step 4 Add UI.LineItem to configure sales history table
+
Step 5 Add section to show sales data of a product
+
Step 6 Add a new Object Page
+
Step 7 Add header and section to show sales data details
+

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. Copy UI.FieldGroup from backend annotation source 2. Add section with UI.Facets to display technical data 3. Add section to show monthly revenue of product 4. Add UI.LineItem to configure sales history table 5. Add section to show sales data of a product 6. Add a new Object Page 7. Add header and section to show sales data details

Learn more →