SAP Knowledge Base Article - Public

3747434 - The relative date option is unavailable for date input fields in Custom Analytical Queries and Services App

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

  1. Go to the 'Custom Analytical Queries and Services' app and open a query.
  2. Navigate to the 'Filters' tab and select a date field (e.g., Posting Date).
  3. Within user values, select the 'Date' input type.
  4. 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

  1. Create a parameter of type 'DATS' in the query.
  2. 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.
  3. 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

Product

SAP S/4HANA Cloud Public Edition all versions