2 weeks ago
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:
( 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?
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.