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

Create Data Objects and Configure Value Help for a Data Object

Create data objects that hold employee and equipment details, and create value help for a data object attribute.

Overview

🎓 beginner 10 min. Business RulesBeginnerCloudSAP Business Technology PlatformSAP BTP Cloud Foundry Environment

You will learn

  • โœ”How to create data objects for a scenario
  • โœ”How to configure the value help for a data object Data objects are the building blocks of a project. They store the input as well as output data of a rule. Data objects consist of attributes that store the data within a data object. In this tutorial, we will create data objects which hold the employee details and the equipment details. We will also model value help for a data object attribute to choose the values while modeling rules.
Vandana Vasudevan V Vandana Vasudevan December 10, 2024
Created by December 10, 2024
Contributors

Prerequisites

Steps

Step 1 Create data objects
โ€”

  1. Choose Data Objects > Local Data Objects.

    create data object
    create data object

  2. In the Local Data Objects section, choose +.

    new data object
    new data object

  3. In the New Data Object screen, provide the following details for the output data object as shown:

    NameLabelDescriptionType
    EquipmentInfoEquipmentInfoEquipment InformationStructure

    You can leave the other fields as it is.

    data object details
    data object details

  4. Under Attributes tab, choose + in the Simple Attributes table to create a new attribute for the data object EquipmentInfo.

    Attributes for EquipmentInfo
    Attributes for EquipmentInfo

  5. Enter the following details in the new row:

    NameLabelDescriptionBusiness Data Type
    ProductDescProduct DescriptionProduct descriptionString

    Attributes for EquipmentInfo
    Attributes for EquipmentInfo

  6. Similarly, create five new attributes with the following values:

    NameLabelDescriptionBusiness Data Type
    PricePricePrice of the equipmentNumber
    EquipmentTypeEquipment TypeType of equipmentString
    ProductIDProduct IDProduct IDString
    CurrencyCurrencyCurrencyString

    Then, choose Activate.

    Five new attributes
    Five new attributes

    Activating will also save and validate the data object.

  7. Similarly, create and activate EquipmentApproval data object and its attribute with the following values:

    Data Object:

    NameLabelDescriptionType
    EquipmentApprovalEquipmentApprovalApproval required for the equipment list selected for the new hire.Structure

    Simple Attributes:

    NameLabelDescriptionBusiness Data Type
    ApprovalNeededApprovalNeededIs approval needed for the equipment?Boolean

    Then, choose Activate.

    EquipmentApproval data object
    EquipmentApproval data object

  8. Similarly, create and activate Equipment data object and its attribute with the following values:

    Data Object:

    NameLabelDescriptionType
    EquipmentEquipmentDetails of the equipment opted for the new hire.Structure

    Simple Attributes:

    NameLabelDescriptionBusiness Data Type
    TotalAmountTotalAmountTotal amount of all the selected equipmentNumber

    Then, choose Activate.

    Equipment data object
    Equipment data object

  9. Similarly, create and activate Employee data object and its attributes with the following values:

    Data Object:

    NameLabelDescriptionType
    EmployeeEmployeeDetails of the employeeStructure

    Simple Attributes:

    IsFullTimeEmployee:

    NameLabelDescriptionBusiness Data Type
    IsFullTimeEmployeeIsFullTimeEmployeeTrue if the employee works full time or else false.Boolean

    countryofCompany:

    NameLabelDescriptionBusiness Data Type
    countryofCompanyCountry or Region of CompanyCountry or Region of companyString

    company:

    NameLabelDescriptionBusiness Data Type
    companycompanyCompany nameString

    jobTitle:

    NameLabelDescriptionBusiness Data Type
    jobTitlejobTitleJob title of the recruitString

    Then, choose Activate.

    Employee data object
    Employee data object

  10. Navigate to the Local Data Objects tab to view the list of data objects.

    List of data objects
    List of data objects

Step 2 Configure value help for an attribute of Employee data object
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 2
1. Create data objects 2. Configure value help for an attribute of Employee data object

Learn more →