Skip to Content

CDS View for a range- how to create one?

hi all,

I can not create a CDS view like this:

@AbapCatalog.sqlViewName: 'zddl_test2_hana'

@AbapCatalog.compiler.CompareFilter: true

@AccessControl.authorizationCheck: #CHECK

@EndUserText.label: 'test2'

define view Zddl_Test2



select from vbak {

'I' AS sign,

'EQ' AS option,

vbak.vbeln AS low,

' ' AS high

} where augru <> ''

Its says that optıons is a reserved word which it

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on May 02, 2016 at 01:40 PM

    Hello Solen,

    as for standard database views CDS views have also the restriction that reserved names may not be used as column names. OPTION is one of that reserved names. You can find all reserved names (and the reasons/hints why they are reserved) in table TRESE.

    If appropriate for your case, you can set the alias "OPTION" for the column which should act as such column when you query the view e.g. from ABAP.



    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.