01-13-2016 8:52 AM
Hello All,
ABAP System 7.50.
I have an ABAP CDS view like here:
- @AbapCatalog.sqlViewName: 'z_cds_test_1'
- @AbapCatalog.compiler.compareFilter: true
- @AccessControl.authorizationCheck: #CHECK
- @EndUserText.label: 'Test 2 CDS'
- @OData.publish: true
- @Search.searchable: true
- define view ZMYFLIGHTS
- as select from spfli
- association [1..1] to scarr as spfli_scarr
- on spfli.carrid = spfli_scarr.carrid
- {
- @UI.selectionField: [ { position: 10 } ]
- @UI.lineItem: [ { position: 10 } ]
- key spfli.carrid as id,
- @UI.lineItem: [ { position: 20 } ]
- @Search.defaultSearchElement: true
- key spfli_scarr.carrname as carrier,
- @UI.lineItem: [ { position: 40 } ]
- key spfli.connid as flight,
- @EndUserText:{ quickInfo:'Some info22' }
- @UI.lineItem: [ { position: 50 } ]
- spfli.cityfrom as departure,
- @UI.lineItem: [ { position: 60 } ]
- spfli.cityto as destination
- }
The odata service is created because of the annotation @OData.publish: true.
My service (metadata ) is showing no annotation-related data however.
My smart table (Fiori control) is not working and raising the error "Select at least one column to perform the search".
I set the @UI.lineItem annotation though so I would expect this would be enough for the smart table.
There is not a single column in the table.
Any one encountered this problem?
Any help will be appreciated.
Regards,
Bert
01-13-2016 9:24 AM
Hello Bert,
the metadata.xml does not contain the annotation information, because the annotation information is delivered in an own annotation file via a service call (e.g. "/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annotations(TechnicalName='<technical name of annotation service>',Version='<version of annotation service>')/$value/".
The UI.lineItem and UI.selectionField annotation are ok, but the @Search.* annotations are not released yet for customer usage (check note in Search Annotations - Reference - SAP Library).
Best Regards,
Florian
01-13-2016 9:24 AM
Hello Bert,
the metadata.xml does not contain the annotation information, because the annotation information is delivered in an own annotation file via a service call (e.g. "/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annotations(TechnicalName='<technical name of annotation service>',Version='<version of annotation service>')/$value/".
The UI.lineItem and UI.selectionField annotation are ok, but the @Search.* annotations are not released yet for customer usage (check note in Search Annotations - Reference - SAP Library).
Best Regards,
Florian