Rule Service
is an interface or an end point that enables an application to invoke a decision logic. In an online transaction or workflow, rule service is invoked by passing any relevant input from an application to the rule service in a stateless manner.
Ruleset
is a logical collection of rules that helps you group business rules that govern a specific function. A ruleset
links a rule or group of rules to a rule service.
For more information, you can read the help documentation:
Rule service
Ruleset
Step 1: Create rule service
-
Switch to Rule Services tab in Manage Rules Application.
-
Click + to create the rule service.
-
In the Details tab, enter the following rule service details:
-
Name as BONUS_PERCENTAGE_S4H
or any name of your choice.
-
Label: Bonus Percentage Rule Service
or any label of your choice.
-
Description: Calculates minimum bonus percentage for Custom Business Object of S/4HANA
or any description of you choice.
Label and Description are optional fields.
-
Switch to Vocabulary tab.
-
Click + and add the following rows one after the other.
-
Select the following values from the drop down:
Name |
Usage |
BONUS_PLAN_TT |
Input |
PERCENTAGE |
Result |
-
Switch to Annotations tab.
-
Click + to add annotation to rule service.
-
From the options, choose ABAP on HANA.
-
Click Activate button to save and activate the changes.
If activation is successful, then you will see the status of the rule service as Active.

-
Click the rules project breadcrumb link to return to the project page.
Step 2: Create ruleset
-
Switch to Rulesets
tab.
-
Click + to add ruleset
.
-
In the Details tab, enter the following values for the ruleset
properties:
-
Name: BONUS_PERCENTAGE_COLLECTION
or any name of your choice.
-
Label: Bonus Percentage Collection Ruleset
or any label of your choice.
-
Description: Executes all business rules to compute the Maximum Bonus Percentage allowed based on Custom Business Object of S/4HANA
or any description of your choice.
-
In Rule Service field, choose a rule service from already defined rule services.

-
Switch to Rules tab.
-
Click + to add the rule to ruleset
.
-
Select the rule from the list.
-
Once you complete editing, click Activate to save and activate ruleset
.
If activation is successful, then you will see the status of the rule service as Active
.
