2 weeks ago
Hi Experts,
We are trying to create one app, that only show the data from different tables, this is to avoid having to create a separate (fiori element) app for each table. Or creating a new app for a new table.
To achieve this we have several CDS view (for each table a CDS view) which will be expose in one oData service V2. For each table there is an interface (entity) view, a consumption (root enitty) view, metadata extension. Service definition looks like
@EndUserText.label: 'Service definition for different tables'
define service /UI_TABLES {
expose /C_Table1 as Table1;
expose /C_Table2 as Table2;
expose /C_Table3 as Table3;
......}
The xml view looks like
The problem we are facing is we are missing the annotations in the metadata file. The annotation @Metadata.ignorePropagatedAnnotations is not set. Even when we set the annotations directly in the consumption view the annotations won't become visible in the metadata.
The view looks like
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'test'
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #S,
dataClass: #MIXED}
@search.searchable: true
@ui: {headerInfo: {
typeName: 'Option2',
typeNamePlural: 'test',
title: { type: #STANDARD, value: 'LastName' }
}}
define root view entity /C_OPTION2 as select from /I_OPTION2
{
@ui: {
lineItem: [ { position: 10, importance: #HIGH, label: 'ReportDate' } ]}
@search.defaultSearchElement: true
key SystemId,
@ui: {lineItem: [ { position: 20, importance: #HIGH, label: 'ReportDate' } ]}
@search.defaultSearchElement: true
key SysteemMandant,
@ui: {lineItem: [ { position: 30, importance: #HIGH, label: 'FullName' } ]}
@search.defaultSearchElement: true
FirstName,
@ui: {lineItem: [ { position: 50, importance: #HIGH, label: 'Days2exp' } ]}
@search.defaultSearchElement: true
LastName
}
We've tried:
Checking the oData service in segway client xxxx /UI_TABLES_O2/$metadata no annotations are found for tableX. after changes we cleared the caches /IWBEP/CACHE_CLEANUP and /IWFND/CACHE_CLEANUP.
What are we missing?
Thanks in advance
Lee
Request clarification before answering.
/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annotations(TechnicalName='******',Version='0001')/$value/
your annotation has another url.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
19 | |
9 | |
8 | |
7 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.