Skip to Content

ABAP CDS View: odata service with no annotations

Hello All,

ABAP System 7.50.

I have an ABAP CDS view like here:

  1. @AbapCatalog.sqlViewName: 'z_cds_test_1'
  2. @AbapCatalog.compiler.compareFilter: true
  3. @AccessControl.authorizationCheck: #CHECK
  4. @EndUserText.label: 'Test 2 CDS'
  5. @OData.publish: true
  6. @Search.searchable: true
  7. define view ZMYFLIGHTS
  8. as select from spfli
  9. association [1..1] to scarr as spfli_scarr
  10. on spfli.carrid = spfli_scarr.carrid
  11. {
  12. @UI.selectionField: [ { position: 10 } ]
  13. @UI.lineItem: [ { position: 10 } ]
  14. key spfli.carrid as id,
  15. @UI.lineItem: [ { position: 20 } ]
  16. @Search.defaultSearchElement: true
  17. key spfli_scarr.carrname as carrier,
  18. @UI.lineItem: [ { position: 40 } ]
  19. key spfli.connid as flight,
  20. @EndUserText:{ quickInfo:'Some info22' }
  21. @UI.lineItem: [ { position: 50 } ]
  22. spfli.cityfrom as departure,
  23. @UI.lineItem: [ { position: 60 } ]
  24. spfli.cityto as destination
  25. }

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.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jan 13, 2016 at 09: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,


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.