
Augmentation:
Note:
The following operations can be augmented:
ABAP EML - MODIFY AUGMENTING ENTITY:
In the augmentation method, it's not recommended to use read, modify eml, as the data has not been moved into the transactional buffer yet. so we need to use a special variant of modify entity, entities, which is only possible in the context of projections bo.
Flow of augmentation method in interactive phase:
Difference between augmentation and determination:
Both Augmentation and determination are similar concept, as both are used to modify the request based on some standard trigger condition. But here are some differences.
Steps to develop precheck:
1. Add precheck in standard operation in bdef projection.
2. Implement the logic for precheck in abap behavior pool.
Use case:
Requirement: If the user doesn’t provides value for field “name”, Then it should be assigned with an default value “test”, in modify request.
To achieve this, we have added a augmentation in the update operation. Before executing the update method, the entry will beassigned with default value in augmentation method. In the Augmentation method, If the name is empty, we fill default value name using modify augmentation eml.
Code for augmentation in abap behavior pool:
Entities importing parameter:
Reference table for augmenting:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |