Exploring Data Actions

Objective

After completing this lesson, you will be able to describe the data action features.

Scenario: Use Data Actions for Forecast Income Statements

You are a planner, working with your team to create a forecast income statement for 2025. But first, you have been asked to calculate projected labor expenses for that year.

Data Actions

What are data actions? A data action is a flexible planning tool for making structured changes to planning data in SAP Analytics Cloud. You can run them to carry out complex or repetitive operations, such as copying data, running scripted calculations, doing driver-based allocations, or publishing versions, more quickly and accurately.

Modelers design the data actions and planners run them in stories using starters or schedule them as tasks in the calendar. A data action is created based on a planning model and consists of one or more steps that are carried out on a public or private version.

Ways to Execute Data Actions

Data actions can be executed in multiple ways:

  • From a story using a starter.
  • From an advanced story using scripting.
  • From the SAP Analytics Cloud calendar as a task.
  • From the SAP Analytics Cloud, Add-in for Microsoft Excel.

Use Cases for Data Actions

Data actions are used to process mass amounts of data. Some use cases for data actions include the following:

  • Carry out planning tasks automatically.
  • Copy by model and across models.
  • Allocations.
  • Currency translation.
  • Calculations.

Key Features of Data Actions

Some of the features of data actions allow you to:

  • Sequence data action steps.
  • Embed data actions (just like an include).
  • Schedule or ad-hoc execution.
  • Include prompts for flexibility.
  • Integrate prompts and story filters.

Access Data Actions

Recently created and accessed data actions can be seen in the Data Actions application from the side navigation.

You can also access your data actions from Files and (if you have your home screen configured to display it) from the Recent Files tile of your home screen.

Where to access data actions. Start from the vertical menu or open existing data actions from My Files and Recent Files tile on the home screen.

Types of Data Action Steps Available

Data action configuration. Advanced Formulas Step is selected in the list on the left and the configuration options are on the right of the screenshot. They are listed after this image.

The following types of action steps are available:

  • The copy action copies data within a model based on a set of rules, filters, and aggregation settings. For example, you can use it to copy data from 2018 to 2019 or actual data to budget data. With the copy action, you copy a value from only one dimension member, but you can copy to multiple dimension members.
  • The cross-model copy action allows you to copy data from a different source planning model based on a set of filters and automatic or manual mapping between dimension members.
  • Each step of an advanced formulas action allows you to create calculations to apply to the data. For example, you can use scripting to calculate opening and closing balances of headcount based on hires and terminations, looping through the data by time.
  • An allocation action creates a new allocation or use an existing allocation step.
  • An embedded data action runs another data action as part of the one you’re working on. Combining these steps with dynamic parameters lets you reuse data actions with different source or target members.
  • A conversion data action is used for models with measures, conversion steps let you copy between measures while applying currency conversion.

Data Action Processing

  • Steps in a data action are executed sequentially.
  • The result of one step is available for the subsequent steps.
  • For each step, the execution scope is defined via filters.
Diagram showing how data action processing works. Model data (right) is fetched to the working set and calculated to the result (middle). The write back functionality sends the data back as Result 1.

Data Action Starters

Starter Settings

Let's take a closer look at some of the setting options that are available to you when adding data actions to your stories.

SAP Analytics Story with the Copy Hours data action title selected. The builder panel is open on the right with number 1 to 4, as described above the screenshot.
  1. Data Action: Select the data action to run. You will only be able to select a data action where you have Read permission granted.
  2. Default strategy if target version isn't in edit mode: If the target version isn't in edit mode, you can choose how you want to define the planning area.
    • Empty Planning Area (No Version Data): The planning area will extend automatically as the data action runs.
    • Recommended Planning Area: The planning area is based on data locking, data access control, or both. If no recommended planning area is configured in model preferences, then this option will include all the version data. The planning area is an important tool for optimizing planning performance and can be configured in the model preferences dialog.

      For more information on customizing the a planning can be found in the SAP Help Portal: Optimize Planning Models Using the Planning Area.

    • All Version Data: The target version will contain all the version data.
  3. Publish to target version after execution: You can select the a desired behavior for publishing your changes. The options include:
    • Do not publish: Changes will not be published and the version stays in public edit mode. These changes can be published manually or published as part of another process.
    • Publish and fail if there are warnings: All of your changes will automatically be published. If any restrictions such as data locks apply to the data you’re trying to publish, then the publish will fail.
    • Publish and ignore warnings: All of your changes that are not affected by restrictions will automatically be published. If any restrictions such as data locks apply to some of the data you’re trying to publish, then the affected data will be discarded.

    Note

    • All of your unpublished changes to the target version will be published, even if they weren’t part of the data action.
    • This option only applies to public versions. If the data action runs on a private version or on a BPC write-back model, you’ll need to publish the data manually.
  4. Open in Designer: Opens the data action selected for the starter in the designer so that you can review, maintain, or add steps to it.

Data Action Parameters

Prompt Dialogs

Setting parameters results in a user receiving a prompt dialog when they run the data action in a story. Prompts are like variables, in that they make the data actions flexible and dynamic.

In the following example, when the Copy Hours data action is executed from a story, the parameters related to the data action prompt you for target, source, and year.

Data action for Copy Labor Hours is selected and Copy Hours dialog is displayed. In the data action starter settings panel, the corresponding parameters are highlighted.

Parameter Values

When you are in the story, you can customize the various parameter input and values for the data action starter from the builder panel.

Parameter Values are determined by:

  • Member selection in the story.
  • Default values in the data action parameter definition.
  • A story filter.
  • An input control.
Data action parameter options in stories.

Parameter Type

The Parameters Type that you see in the builder panel, such as Target Version, SourceVersion, and YearMonth in the previous example, are created in the data action. They can be based on members or numbers:

  • Selecting Member/Measure creates a parameter that represents a dimension member. For example, this type of parameter lets you change the year that you're copying data to or from.
  • Selecting Number creates a parameter that has a numeric value. For example, this type of parameter is commonly added to advanced formulas, and can let you prompt users for values such as growth rate or gross margin percentage.
Create Parameter in the data action.

Parameter Properties for Model

The Default Model assignment is the model that was selected during the creation of the data action. Most steps will use this model as the data source and target. However, for cross-model copy steps, this model will be the target, and you can pick a different source model. You can also read and copy data from different models in advanced formulas steps.

Note

When a parameter is used to select the source member, Cardinality must be set to a Single member.

Schedule Data Actions

Schedule a Data Action from the Calendar

Using the calendar, you can schedule a data action. This feature is helpful with data actions that take a few minutes to run, as you can schedule it to run at night or over a weekend.

SAP Analytics Cloud Calendar with General Add menu options displayed. Data Action Task is highlighted in the menu.

Note

A multi action, which includes several data actions as well as import steps, can also be scheduled by selecting the Multi Action Task option. Creating multi actions is covered later in this unit.

Configure the Data Action Task

If you decide to use a data action task to schedule a data action, then any prompts must have assigned parameter values.

If you select + Add Recurrence when creating the task, a separate dialog allows you to configure the recurrence. Once the task is created, the recurrence can be edited for each task, or for the series.

Three create and configure options. Create Data Action Task, Recurrence Settings, and Data Action Task panel (left to right).

Status in the Calendar

Data action statuses in the calendar:

  • Before the data action runs, its status will be Open.
  • After it runs with no issues, the status will be Successful.
  • If something goes wrong, the status will be Failed.

Embedded Data Actions

Data actions can be used in other data actions that belong to the same model.

For example, you create a data action that calculates subscription revenue based on booking data, with a dynamic parameter for the product type. Using embedded data action steps, you can reuse that data action multiple times in another data action and you can specify a different product type each time.

This lowers the cost of development and maintenance.

Here are some other features of embedded data actions:

  • Parameters of outer data actions can be linked against required parameters of inner data actions.
  • Parameters of inner data actions aren’t prompted on execution; each must be assigned a value in the designer.
  • You can’t use a data action within itself.

Data Action Monitor

When data actions are scheduled from the SAP Analytics Cloud calendar or executed from a story, you can use the Data Action Monitor to check the status.

The Data Action Monitor shows:

  • When the data action was triggered.
  • Who triggered the data action.
  • Where the data action was triggered.
  • Which values were used as parameters.
  • Number of records and duration.
  • The data action job history will remain based on a retention period of 30 days (default).
Data Actions in SAP Analytics Cloud is open on screen. Data Action Monitor (left) with Status highlighted (right).

Use the Data Action Monitor

Business Scenario: You wish to check the status and details for the data action that was created to calculate labor and benefits.

Task Flow: In this practice exercise, you will:

  • Access the Data Actions Monitor from the vertical navigation menu
  • View the Data Actions and the related information such as Status, Triggered From, and Triggered By
  • View the details for a specific data action, including Steps and Parameters

Log in to track your progress & complete quizzes