Symptom
When consuming a CDS view with automatic CDC as remote table using real-time replication. The deleted records from the source system is not deleted form the datasphere table.
Environment
SAP Datasphere
Reproducing the Issue
Deleted records from source system are not deleted from table with real time replication enabled.
Cause
- The issue arises due to the maintenance of a filter for a non-key field. When records are deleted, they are written with only values of key fields with ODQ_CHANGEMODE as D. There are no values passed for non-key fields.
- If a filter is applied on a non-key field, the records will not be fetched because that field is initial in ODQMON.
Resolution
- This is explained in note 2930269 under the question "How the deleted record looks like during delta load?"
- To resolve this issue, either remove the filter in this case or maintain a filter on a key field to get the deletions.
Keywords
KBA , DS-DI-RT , Remote Tables , Problem
Product
SAP Datasphere all versions
SAP Knowledge Base Article - Public