cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Fiori Elements Object page - fields not updated on click of save

former_member14709
Contributor

Hi Experts,

We are facing an issue with RAP based SAP Fiori Elements Application. Below are the details:

System Version: S/4 HANA 2020 On Premise SP02.

Application Type: RAP based Fiori Elements Application(List Report Object Page with Split layout), Unmanaged, Non-draft.

Issue:

When we navigate to object page, and switch to edit mode, few of the fields(A,B,C) in the app are dependent on the value of the field 1 (Fields 1, A, B, C are highlighted in attached image). Fields A, B are calculated fields(implemented via virtual elements), field C is derived via associations in the BO. All the fields A, B, C are read only fields. (We don't have any determinations/actions in place for this specific processing, hence doesn't look like a side effect)

When we change the field 1 value using value help, the expectation is to see the new values of fields A, B, C updated on click of save.

However, we have to refresh the browser to see the updated values in A, B, C as it doesn’t reflect on click of Save.

The behavior is not always the same. The issue appears when we load the app fresh. But when we try to change value of field 1 once again(in the already loaded app), and click save, the updated values are available on click of Save, without any manual refresh.

The issue was hardly visible when app was built few months ago, but is now appearing frequently.

Sometimes, we have observed cache error in backend error log. But we don’t always get this error.

We have tried out below solutions, but none worked:

  • Cleared cache using /n/iwfnd/cache_cleanup and /n/iwbep/cache_cleanup
  • Tested the app through Preview UI from ADT, and from FLP
  • Adding delays in frontend and backend
  • Metadata refresh

View Entire Topic
Marian_Zeis
Active Contributor

Side Effects are not just for Actions, also calculated Properties. See

https://ui5.sap.com/#/topic/18b17bdd49d1436fa9172cbb01e26544

like:

<Annotations Target="NAMESPACE.ENTITYTYPE">
    <Annotation Term="com.sap.vocabularies.Common.v1.SideEffects" Qualifier="ProductChanged">
        <Record>
            <PropertyValue Property="SourceProperties">
                <Collection>
                    <PropertyPath>Fields1A</PropertyPath>
                    <PropertyPath>Fields1B</PropertyPath>
                </Collection>
            </PropertyValue>
            <PropertyValue Property="TargetEntities">
                <Collection>
                    <NavigationPropertyPath></NavigationPropertyPath>
                </Collection>
            </PropertyValue>
        </Record>
    </Annotation>
</Annotations>