Data object is the reusable entity of Enterprise Rules Model which is the vocabulary on which business rules are modelled.
In this tutorial, a template business rules project is made available in GitHub. This project has the result data object already created. You will import the CDS view based on custom business object Bonus Plan from the S/4HANA cloud system.
For more information, you can read the help documentation:
Import Project
Data Objects
Step 1: Download template
- Download the template business rules project zip from the GitHub.
Step 2: Import project
-
In Manage Rules Application, click the Import icon and select Upload Project from File System option.
-
Browse to the file location to select the downloaded business rules project zip.
-
Click Import to import the project in business rules application.
-
Business rules project template will be imported and seen in Manage Rules Application.
The project will be in Inactive
status.
-
Click the project to navigate into the details.
Step 3: Modify project properties
-
Click Edit to make changes to the default system.
-
Modify the project Name and Description.
-
Click the drop down of System property.
-
Select the system added in Configure System.
-
Save the changes.
Step 4: Activate data objects
-
Switch to Data Objects tab for Local Data Objects.
You can see the result data object already created.
-
Click the PERCENTAGE_TT
data object.
-
See the Type field and the Attributes.
-
Click Edit and then Activate the data object.
After you click edit button, the options to validate and activate will appear in top-right corner of the screen.
-
Repeat the steps above to activate PERCENTAGE
data object as well.
Step 5: Import CDS view
-
Click Import > Managed System to import the CDS views from S/4HANA cloud system.
-
In the Import Dialog, select the S/4HANA System from the drop-down.
-
Enter the Name of the CDS view corresponding to Custom Data Object based on the Bonus Plan.
-
Click Go.
This will search all the CDS view with the given name in the S/4HANA cloud system.
-
From the options, select your CDS view and click Import.
-
You will see the data objects imported.
You can change the name, label and description of the data object, if needed.
Go to the Annotation of the data object and its attributes to see how it is mapped to the backend S/4HANA system view.
Each CDS view is imported into 2 data objects. One is of type structure (name ends with TT
) and other is of type table. Table data object refers to the structure data object.
-
Click the data object with name ending with TT
(structure type).
-
In the data object page, click Edit (on top-right corner) and then click Activate to save and activate data object.
-
Repeat the same to Activate all the data objects.