Develop Advanced Extensions with SAP Cloud SDK

Exercise: Creating Custom Business Objects

Objectives
After completing this lesson, you will be able to:

After completing this lesson, you will be able to:

  • Create Custom Business Objects

Create Custom Business Objects

Description

Using in-app extensibility features, create a custom business object.

Prerequisites

For the execution of this exercise, you need to access SAP S/4HANA Cloud by means of a user with administrator rights.

Information for execution

In this exercise, replace ### with your user number. This number was introduce to allow multiple users to execute the same exercise in a shared system. It can be any number between 000 and 999.

After every step description, you can choose the [play] link to open a recorded simulation of the described actions.

Steps

  1. Log on to your SAP S/4HANA Cloud tenant.

  2. Assign your user with the following roles: [play]

    Business RoleBusiness Role ID
    AdministratorBR_ADMINISTRATOR
    Configuration ExpertBR_BPC_EXPERT
    Analytics SpecialistBR_ANALYTICS_SPECIALIST
    1. Open the Maintain Business Users app.

    2. Search and choose your user.

    3. In the Maintain Business User window, look foe the Assigned Business Roles section, choose Add.

    4. Search and apply the required business roles.

    5. Back to the main window, save the user information.

    6. Back to the home view, refresh the browser page choosing F5.

  3. Create a new custom business object based on the following details. [play]

    General Information

    FieldValue
    NameConsultant ###
    IdentifierYY1_CONSULTANT###
    Name in PluralConsultants ###
    ScenarioStandard
    Determination and ValidationSelected
    User InterfaceSelected
    Back End ServiceSelected

    Fields

    LabelTypeKeyLength
    IDTextX60
    First NameText 35
    Last NameText 35
    Cost CenterText 20
    Personnel NumberText 8
    Org UnitText 25
    1. Open the Custom Business Objects app by choosing the corresponding SAP Fiori tile in the Extensibility catalog.

    2. In the Custom Business Objects window, choose New.

    3. In the New Custom Business Object view, enter the details provided in the General Information table.

    4. Choose Create.

    5. In the Edit Custom Business Object view, select the three check-boxes indicated in the General Information table.

    6. Switch to the Fields tab and enter the fields indicated in the Fields table.

    7. Choose Publish.

      A message is displayed once the business object is published successfully.

    8. After the custom business object is published, the Maintain Catalog and Go To Generated UI links appear in the General Information tab.

      It may take some minutes before the Go To Generated UI link becomes active.

      Once some minutes have passed, if the link is still disabled, refresh the entire browser window.

      Once the link is active, it is possible to add the corresponding tile in the SAP Fiori launchpad.

Save progress to your learning plan by logging in or creating an account