Extend the RAP Travel Application to integrate workflow capability
- How to define determinations
- How to implement determination
- How to use EML in Local Mode
Prerequisites
- You need to have access to an SAP BTP, ABAP environment, or SAP S/4HANA Cloud, ABAP environment or SAP S/4HANA (release 2022 or higher) system.
- Latest Version of ADT with abapGit plugin
- You have created the Travel App with workflow handler class as explained here
As part of this tutorial, you would extend the Managed Business Object behaviour by defining and implementing a Determination on Save trigger_travelworkflow during action Create (trigger condition). You will use the Entity Manipulation Language to implement the transactional behavior of the Travel business object.
On Creation of the travel booking, during save event Determination on Save trigger_travelworkflow will be called. trigger_travelworkflow will intern trigger workflow for travel approval and set the overall status of the travel to awaiting approval.
Reminder: Do not forget to replace the suffix placeholder #### with your chosen or assigned group ID in the exercise steps below.
A determination is an optional part of the business object behavior that modifies instances of business objects based on trigger conditions. Determinations are implemented when we need to calculate values of few fields based on trigger conditions.
A determination is implicitly invoked by the RAP framework if the trigger condition of the determination is fulfilled. Trigger conditions can be CRUD operations or fields. Determinations can be created On modify or On save based on if we want to display the value of a calculated field to the user before save or after save.
Please refrain from writing fields which needs to be determined / calculated in the trigger conditions of that determination as it might lead to infinite loop since we are specifying the calculated field in the trigger condition and changing the field inside that determination which is resulting in application dumps.










