CDS View @Consumption.filter.defaultValue date ran... - SAP Community
source link: https://community.sap.com/t5/technology-q-a/cds-view-consumption-filter-defaultvalue-date-range-including-today/qaq-p/12525068
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
on
12-15-2021
I'm using the ABAP Restful Application Programming Model - oData v2.
I'd like to be able to default in a date range of say, a CreationDate within the last 3 months.
At a very basic level, I can default in a single arbitrary date, see my CDS View below...
@Consumption.filter.defaultValue: '20201012000000' CreationDate : rap_cp_odata_v2_edm_datetime ;
Could you please provide an example of how a date range could be set up using Today's date going back 3 months rather than having to provide a literal value?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK