Adding Determinations
This option allows you to create a determination.
Context
A business object requires the determination entity to detect changes made to node instances of a business object and then take appropriate actions.A determination describes a business logic that acts on any changes in the business object.
The framework generates default triggers when you add a determination. The generation of default triggers is based on the determination category. The default triggers vary according to the determination category that you select. The table below displays the default triggers for each category:
| Default Triggers | Category |
|---|---|
| Create and Update | React after modification React before save Draw numbers during save React after successful save React after cleanup transaction React after failed save |
| Create, Update, and Load | Calculate transient attributes |
| Determine | React on check and determine |
The framework executes a determination based on the trigger condition defined. The framework constantly checks the trigger condition at different points in the transaction based on the defined pattern of determination. For each determination, you need to specify the changes that generate the trigger condition. Changes can include creating, updating, deleting, or loading node instances. You have to carry out the following tasks to define a determination:
- Add a Determination
- Configure Triggers
- Configure Dependency
Example
In the node instance of the invoice business object, if an end user changes the quantity of a product at runtime, the determination for updating the amount of the product is executed and the amount gets updated.
Prerequisite- You have already created a business object.
(Check ABAP Development Object) from the toolbar and check the
(Activate ABAP Development Object) in the toolbar.