Quantcast
Channel: SCN: Message List - ABAP for SAP HANA
Viewing all articles
Browse latest Browse all 2110

ABAP CDS View: odata service with no annotations

$
0
0

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


Viewing all articles
Browse latest Browse all 2110

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>