cancel
Showing results for 
Search instead for 
Did you mean: 

Changed CDS annotations not refreshed in RAP Service Binding and Definition

former_member13323
Participant
4,771

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.

Accepted Solutions (0)

Answers (6)

Answers (6)

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.

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...

N_Parag_Senapati
Explorer
0 Kudos

Check in manifest.json while creating the FE app from VS Code.

Remove the localURI in the datasource for the service, metadata and annotation. This will force the app to load the metadata and annotations from the updated backend service and not refer to the local files.

junwu
Active Contributor
0 Kudos

I don't think that will help any.

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
Participant
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.