cancel
Showing results for 
Search instead for 
Did you mean: 

Changed CDS annotations not refreshed in RAP Service Binding and Definition

former_member13323
Participant

Hi guys,

I'm using a RAP generated Odata service in my template generated Fiori Elements app in VS Code. However each time I change the UI annotations (Using backend instead of local annotations), it's not reflected in the FE app. I've tried:

1. A metadata cache cleanup in /IWFND/SUTIL_GW_CLIENT

2. Running /UI5/UPD_ODATA_METADATA_CACHE and /UI5/DEL_ODATA_METADATA_CACHE

to no avail.

Things that worked:

1. Auto-exposure of CDS (Non-RAP)

2. Deleting both the Service Definition & Binding, and recreating them again.

Any ideas? andre.fischer ?

Thanks.

Liesbeth
Explorer

We have the same issue on S/4HANA 2021 initial stack. After adding additional annotations in a CDS, the result is not refreshed when using the preview button from the RAP service binding (UI V2).

Unfortunately, the only solution is to delete the service binding and recreate it.

Accepted Solutions (0)

Answers (5)

Answers (5)

axeldion
Explorer

Is this issue already resolved? Any quick fixes for 2021?

hgedicke
Explorer

I am facing the issue with SAP_BASIS 756, SP 3, too. I created a ticket and keep you posted...

Liesbeth
Explorer

I have found that the issues we experienced, were caused by the fact that we had published our service binding via the "Publish" button in ATC. This causes the service to be published locally and we could use the "Preview" button to test our application. However, when we changed the annotations afterwards, they were not reflected in de app.

To solve the issue, we no longer use the "Publish" button of the service binding, but we use transaction /IWFND/MAINT_SERVICE to register the service. Now, it works as expected.

In VS Code it also works most of the time, but sometimes I do have to reload the metadata to see the latest annotation changes in the app.

AlwinPut
Active Participant
0 Kudos

Use transaction /IWFND/CACHE_CLEANUP

Steps

  • Start transaction /IWFND/CACHE_CLEANUP.
    (Or start transaction /IWFND/MAINT_SERVICE -> Menu: Goto -> Cleanup of Model Cache)
  • Fill Model Identifier. Use the search help.
    If the name of the service binding is:  ZI_SENSORINGOBJECT_V2_O2
    then the Model Identifier is for example: ZI_SENSORINGOBJECT_V2_O2_0001_BE
  • Keep "All Models" and "All Proxy Models" checked.
  • Execute
ivo_skolek
Explorer
0 Kudos

Same issue here - when change CDS annotations the related *VAN annotation model doesn't reflect the change => frontend doesn't get the changes either

aoyang
Contributor
0 Kudos

Having the exact same issue here. It requires rebuild of Service definition & biding, which takes time and not very smooth.