SAP Knowledge Base Article - Public

3708120 - setCurrentDateTime API limitation with user-managed date dimensions in SAP Analytics Cloud

Symptom

  • In SAC Story scripting, the API setCurrentDateTime works as expected when applied to a model with a system-managed date dimension.
  • The API does not behave consistently when applied to a model with a user-managed date dimension.

Environment

SAP Analytics Cloud

Reproducing the Issue

  1. Access the SAC Story.
  2. Apply the .setCurrentDateTime API to a model with a user-managed date dimension.
  3. Observe this does not work.

Cause

The setCurrentDateTime API does not support user-managed date dimensions.

Resolution

Currently this is not supported in SAC, to submit an improvement request, please see: 2424376 How do you create an enhancement request and provide feedback for SAP Analytics Cloud?

See Also

Keywords

SAC Story scripting, setCurrentDateTime API, user-defined Time dimension, system-defined Time dimension, CurrentDateTime.createCalendarDateTime, CurrentDateTime.createFiscalDateTime, SAP Analytics Cloud, scripting issue, inconsistent date behavior, Time dimension limitation, API restriction , KBA , LOD-ANA-UNS-SCR , Unified Story Scripting related Issues , Product Enhancement

Product

SAP Analytics Cloud all versions