You are on page 1of 2

Dev 268:

CDS view:
@AbapCatalog.sqlViewName: 'ZVDEV268_EX_00'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Dev268 sample CDS'
define view Zdev268_Ex_00 as select from SEPM_I_CustomerInvoice_E {
key SEPM_I_CustomerInvoice_E.CustomerInvoice,
key SEPM_I_CustomerInvoice_E.Customer,
SEPM_I_CustomerInvoice_E._Customer.CompanyName,
SEPM_I_CustomerInvoice_E.CreationDateTime,
SEPM_I_CustomerInvoice_E.TransactionCurrency,
SEPM_I_CustomerInvoice_E.GrossAmountInTransacCurrency,

ceil(
division(

tstmp_seconds_between(SEPM_I_CustomerInvoice_E.CreationDateTime,tstmp_current_
utctimestamp(),'NULL'),
86400,2)
) as DaysOpen

T-Code to activiate Odata Service:

/IWFND/MAINT_SERVICE
@ObjectModel.writeEnabled: true
@ObjectModel.createEnabled: true
@ObjectModel.updateEnabled: true

You might also like