Skip to Content
0
Aug 07, 2023 at 04:45 PM

Determination on save - Infinite loop issue (RAP)

319 Views

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

Error analysis

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,

  1. How to resolve this because without using update EML inside the determination, how to populate values ?
  2. Why create & update should need to define together in the trigger conditions ?
  3. Any other approach is there for this use case ?

Thanks a lot.

Best Regards,

Muthu