cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
Read only

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

jh_sim
Explorer
0 Likes
1,272

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?

 

 

 

 

 

Accepted Solutions (1)

Accepted Solutions (1)

MioYasutake
SAP Champion
SAP Champion
0 Likes

@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 Likes
Hi, MioYautke Thanks for solution to my QA
jh_sim
Explorer
0 Likes
The annotations you provided have already been applied. The issue was resolved by adding the parent/self to the source.
Eric_Jing
Discoverer
0 Likes
Hi @jh_sim, could you please explain how you resolved it by adding the parent/self to the source?

Answers (0)