Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

CDS - Date calculation


I'm trying to do som calculation with date type fields.

@AbapCatalog.sqlViewName: 'ZDEMOSDN'

@EndUserText.label: 'test'

define view ZDEMOSDN as select from aufk as a inner join afko as b

    on a.aufnr = b.aufnr


    key a.aufnr,

    a.erdat - a.idat2 as date2   


I'm getting the error messages:

Data type DATS is currently not supported in an arithmetic expression

Will this be supported in near future? Is there kind of workaround .



Former Member
Not what you were looking for? View more on this topic or Ask a question