cancel
Showing results for 
Search instead for 
Did you mean: 

SAP RAP Refresh issue when update from grand child to root node

jh_sim
Explorer
0 Kudos

HI 

Im working on SAP RAP On Premise 2022.

The BO of the RAP program currently being developed is
It is in the form of Root - Child - GrandChild.

In the current situation, the value of the Grand Child can be modified in the Object Page of the Child Node.
And modifying the Grand Child value is Trigger Update the total field of the Root Node

I use 'Determination on modify' to change the value in real time.

However, if changes to the root are triggered more than once,

The following error occurs:

JH4141_0-1714724572295.png

( For example, after modifying the Grand Child Node field to trigger a change to the header total field,
By creating a new instance in the Grand Child Node, additional updates to the header total field are triggered. )

and This error does not occur when updating a Parent Node (Child of the Root) that is not the Root node.

How can I solve this problem?

 

 

 

 

 

View Entire Topic
MioYasutake
Active Contributor
0 Kudos

@jh_sim 

Have you defined side effect annotations to update the Root entity when updating the Grand Child entity?

Sample from UI5 SDK

<Annotations Target="STTA_SALES_ORDER_WD_20_SRV.C_STTA_SalesOrderItem_WD_20Type">
     <Annotation Term="com.sap.vocabularies.Common.v1.SideEffects" Qualifier="TaxAmountChanged">
          <Record>
               <PropertyValue Property="SourceProperties">
                    <Collection>
                         <PropertyPath>TaxAmount</PropertyPath>
                    </Collection>
               </PropertyValue>
               <PropertyValue Property="TargetEntities">
                    <Collection>
                         <NavigationPropertyPath>to_SalesOrder</NavigationPropertyPath>
                    </Collection>
               </PropertyValue>
          </Record>
     </Annotation>
</Annotations>

 

jh_sim
Explorer
0 Kudos
Hi, MioYautke Thanks for solution to my QA
jh_sim
Explorer
0 Kudos
The annotations you provided have already been applied. The issue was resolved by adding the parent/self to the source.