<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Determination on save - Infinite loop issue (RAP) in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/determination-on-save-infinite-loop-issue-rap/qaa-p/14257945#M4930675</link>
    <description>I had to resort to the same solution. A pity that the system does not automatically do this max one time running of determinations.</description>
    <pubDate>Fri, 31 Oct 2025 12:50:41 GMT</pubDate>
    <dc:creator>d_schuitemaker62</dc:creator>
    <dc:date>2025-10-31T12:50:41Z</dc:date>
    <item>
      <title>Determination on save - Infinite loop issue (RAP)</title>
      <link>https://community.sap.com/t5/technology-q-a/determination-on-save-infinite-loop-issue-rap/qaq-p/12784660</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;
  &lt;P&gt;I have two determination like below where I want to update admin fields,&lt;/P&gt;
  &lt;P&gt;determination AdminCreate on save { create; }&lt;/P&gt;
  &lt;P&gt;determination AdminUpdate on save { create, update; }&lt;/P&gt;
  &lt;P&gt;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&lt;/P&gt;
  &lt;H4&gt;Error analysis&lt;/H4&gt;
  &lt;P&gt;The application has indicated exception "LCX_ABAP_BEHV_DETVAL_ERROR" as the reason for the&lt;BR /&gt;termination:&lt;BR /&gt;Infinite loop caused by cyclical triggering of on-save determinations&lt;/P&gt;
  &lt;P&gt;I need to understand,&lt;/P&gt;
  &lt;OL&gt; 
   &lt;LI&gt;How to resolve this because without using update EML inside the determination, how to populate values ?&lt;/LI&gt; 
   &lt;LI&gt;Why create &amp;amp; update should need to define together in the trigger conditions ?&lt;/LI&gt; 
   &lt;LI&gt;Any other approach is there for this use case ?&lt;/LI&gt; 
  &lt;/OL&gt;
  &lt;P&gt;Thanks a lot.&lt;/P&gt;
  &lt;P&gt;Best Regards,&lt;/P&gt;
  &lt;P&gt;Muthu&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 16:45:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/determination-on-save-infinite-loop-issue-rap/qaq-p/12784660</guid>
      <dc:creator>muthuhana37</dc:creator>
      <dc:date>2023-08-07T16:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Determination on save - Infinite loop issue (RAP)</title>
      <link>https://community.sap.com/t5/technology-q-a/determination-on-save-infinite-loop-issue-rap/qaa-p/12784661#M4799971</link>
      <description>&lt;P&gt;Try to limit your determinations such that they are only triggered on field level.&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/questions/13161478/shortdump-lcx-abap-behv-detval-error.html"&gt;Shortdump LCX_ABAP_BEHV_DETVAL_ERROR | SAP Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 19:28:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/determination-on-save-infinite-loop-issue-rap/qaa-p/12784661#M4799971</guid>
      <dc:creator>Andre_Fischer</dc:creator>
      <dc:date>2023-08-07T19:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Determination on save - Infinite loop issue (RAP)</title>
      <link>https://community.sap.com/t5/technology-q-a/determination-on-save-infinite-loop-issue-rap/qaa-p/12784662#M4799972</link>
      <description>&lt;P&gt;Thanks  &lt;SPAN class="mention-scrubbed"&gt;andre.fischer&lt;/SPAN&gt; for your quick response.&lt;/P&gt;&lt;P&gt;Yes keeping trigger conditions on field level disappears the error but in my use case I want to populate these admin fields at the time of create &amp;amp; update.&lt;/P&gt;&lt;P&gt;I kept these fields as read only so from UI it will not get triggered while create/update instance.&lt;/P&gt;&lt;P&gt;Any suggestion here ?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 03:54:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/determination-on-save-infinite-loop-issue-rap/qaa-p/12784662#M4799972</guid>
      <dc:creator>muthuhana37</dc:creator>
      <dc:date>2023-08-08T03:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Determination on save - Infinite loop issue (RAP)</title>
      <link>https://community.sap.com/t5/technology-q-a/determination-on-save-infinite-loop-issue-rap/qaa-p/12784663#M4799973</link>
      <description>&lt;P&gt;Hi Muthu,&lt;/P&gt;&lt;P&gt;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)?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jessie&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 08:15:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/determination-on-save-infinite-loop-issue-rap/qaa-p/12784663#M4799973</guid>
      <dc:creator>JessieCheah</dc:creator>
      <dc:date>2023-08-08T08:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Determination on save - Infinite loop issue (RAP)</title>
      <link>https://community.sap.com/t5/technology-q-a/determination-on-save-infinite-loop-issue-rap/qaa-p/12784664#M4799974</link>
      <description>&lt;P&gt;Hello  &lt;SPAN class="mention-scrubbed"&gt;jessie.cheah&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;This again going for infinite loop because I have update request EML inside determination which triggers itself again and again.&lt;/P&gt;&lt;P&gt;When I change the trigger conditions to create alone which doesn't trigger for while updating the instance.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 15:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/determination-on-save-infinite-loop-issue-rap/qaa-p/12784664#M4799974</guid>
      <dc:creator>muthuhana37</dc:creator>
      <dc:date>2023-08-08T15:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Determination on save - Infinite loop issue (RAP)</title>
      <link>https://community.sap.com/t5/technology-q-a/determination-on-save-infinite-loop-issue-rap/qaa-p/12784665#M4799975</link>
      <description>&lt;P&gt;Oh yes you're right, because of the { update; }&lt;/P&gt;&lt;P&gt;But before we go further in, what are the admin fields that you are trying to populate? Are those self defined fields, or just fields like CreatedBy, LastChangedBy etc. ?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 01:58:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/determination-on-save-infinite-loop-issue-rap/qaa-p/12784665#M4799975</guid>
      <dc:creator>JessieCheah</dc:creator>
      <dc:date>2023-08-09T01:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Determination on save - Infinite loop issue (RAP)</title>
      <link>https://community.sap.com/t5/technology-q-a/determination-on-save-infinite-loop-issue-rap/qaa-p/12784666#M4799976</link>
      <description>&lt;P&gt;just fields like CreatedBy, LastChangedBy etc.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 03:35:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/determination-on-save-infinite-loop-issue-rap/qaa-p/12784666#M4799976</guid>
      <dc:creator>muthuhana37</dc:creator>
      <dc:date>2023-08-09T03:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Determination on save - Infinite loop issue (RAP)</title>
      <link>https://community.sap.com/t5/technology-q-a/determination-on-save-infinite-loop-issue-rap/qaa-p/12784667#M4799977</link>
      <description>&lt;P&gt;You can use the following annotations in your base view, the framework will then fill up the admin fields automatically.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;@Semantics.user.createdBy: true

@Semantics.user.lastChangedBy : true

@Semantics.user.localInstanceLastChangedBy: true

@Semantics.systemDateTime.createdAt: true

@Semantics.systemDateTime.lastChangedAt: true

@Semantics.systemDateTime.LocalInstanceLastChangedAt: true&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;See example &lt;A href="https://github.com/SAP-samples/abap-platform-fiori-feature-showcase/blob/ABAP-platform-cloud/src/%23dmo%23fsa_i_root.ddls.asddls"&gt;https://github.com/SAP-samples/abap-platform-fiori-feature-showcase/blob/ABAP-platform-cloud/src/%23dmo%23fsa_i_root.ddls.asddls&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 06:32:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/determination-on-save-infinite-loop-issue-rap/qaa-p/12784667#M4799977</guid>
      <dc:creator>JessieCheah</dc:creator>
      <dc:date>2023-08-09T06:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Determination on save - Infinite loop issue (RAP)</title>
      <link>https://community.sap.com/t5/technology-q-a/determination-on-save-infinite-loop-issue-rap/qaa-p/14240828#M4928979</link>
      <description>&lt;P&gt;For anyone else facing this same issue, I was able to avoid the infinite loop by using a Global Class with a Static Attribute to control if the Determination was already executed at least once.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Helper Class:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;CLASS zcl_test_saver_helper DEFINITION
  PUBLIC
  FINAL
  CREATE PUBLIC .

  PUBLIC SECTION.
    CLASS-DATA:
      already_saved TYPE abap_boolean.
  PROTECTED SECTION.
  PRIVATE SECTION.
ENDCLASS.

CLASS zcl_test_saver_helper IMPLEMENTATION.
ENDCLASS.&lt;/LI-CODE&gt;&lt;P&gt;Behavior Pool Method&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;  METHOD update_timestamps.

    IF zcl_test_saver_helper2=&amp;gt;already_saved EQ abap_false.
      zcl_test_saver_helper2=&amp;gt;already_saved = abap_true.

      READ ENTITIES OF ZI_Test1_S IN LOCAL MODE
       ENTITY  Test1
        ALL FIELDS WITH CORRESPONDING #( keys )
       RESULT DATA(lt_res).

      MODIFY ENTITIES OF ZI_Test1_S IN LOCAL MODE
          ENTITY Test1
            UPDATE FIELDS ( UpdateDate )
            WITH VALUE #( FOR key IN keys ( %tky   = key-%tky
                                            UpdateDate = cl_abap_context_info=&amp;gt;get_system_date( ) ) )
            FAILED DATA(ls_failed)
            REPORTED DATA(ls_reported).
    ENDIF.

  ENDMETHOD.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 20:54:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/determination-on-save-infinite-loop-issue-rap/qaa-p/14240828#M4928979</guid>
      <dc:creator>DiegoValdivia</dc:creator>
      <dc:date>2025-10-10T20:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Determination on save - Infinite loop issue (RAP)</title>
      <link>https://community.sap.com/t5/technology-q-a/determination-on-save-infinite-loop-issue-rap/qaa-p/14257945#M4930675</link>
      <description>I had to resort to the same solution. A pity that the system does not automatically do this max one time running of determinations.</description>
      <pubDate>Fri, 31 Oct 2025 12:50:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/determination-on-save-infinite-loop-issue-rap/qaa-p/14257945#M4930675</guid>
      <dc:creator>d_schuitemaker62</dc:creator>
      <dc:date>2025-10-31T12:50:41Z</dc:date>
    </item>
  </channel>
</rss>

