Symptom
The 'Relative Date' selection is missing from the 'Date' filter within the 'Custom Analytical Queries and Services' app.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Go to the 'Custom Analytical Queries and Services' app and open a query.
- Navigate to the 'Filters' tab and select a date field (e.g., Posting Date).
- Within user values, select the 'Date' input type.
- The 'Relative Date' selection is not available.
Cause
The 'Custom Analytical Queries and Services' app currently does not provide an option to handle a 'Date Function' with a 'Relative Date' selection in user input.
Resolution
- Create a parameter of type 'DATS' in the query.
- Apply a derivation function to the parameter:
- For a range of dates, use the lookup entity F_GREGORIANCALDTEFUNCRNGEVAL.
- For a single date value, use the lookup entity F_GREGORIANCALDTEFUNCSGLVAL.
- Use the created parameter as a fixed value for the required date dimension to simulate relative date behavior.
Keywords
custom analytical queries and services, relative date, date filter, user input, missing option, posting date, date function, derivation function, DATS parameter, F_GREGORIANCALDTEFUNCRNGEVAL, F_GREGORIANCALDTEFUNCSGLVAL, fiori query designer, relative date filter, workaround , KBA , BC-SRV-APS-EXT-AQD , Fiori based Query Designer , Problem
SAP Knowledge Base Article - Public