Hello Team,
I have two determination like below where I want to update admin fields,
determination AdminCreate on save { create; }
determination AdminUpdate on save { create, update; }
While creating instance, I want create admin fields should be populated and while updating instance, update admin fields should be populated but somehow it causes infinite loop and getting below dump
The application has indicated exception "LCX_ABAP_BEHV_DETVAL_ERROR" as the reason for the
termination:
Infinite loop caused by cyclical triggering of on-save determinations
I need to understand,
Thanks a lot.
Best Regards,
Muthu
Request clarification before answering.
Hi Muthu,
why not just have determination AdminUpdate on save { create, update; } and in your determination, evaluate if AdminCreate fields are initial, to skip AdminUpdate fields and vice versa (When AdminCreate fields are not initial, to populate AdminUpdate fields)?
Regards,
Jessie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use the following annotations in your base view, the framework will then fill up the admin fields automatically.
@Semantics.user.createdBy: true
@Semantics.user.lastChangedBy : true
@Semantics.user.localInstanceLastChangedBy: true
@Semantics.systemDateTime.createdAt: true
@Semantics.systemDateTime.lastChangedAt: true
@Semantics.systemDateTime.LocalInstanceLastChangedAt: true
See example https://github.com/SAP-samples/abap-platform-fiori-feature-showcase/blob/ABAP-platform-cloud/src/%23...
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.