Exploring Data Actions

Objective

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

Scenario: Use Data Actions to Create a Detailed Labor Forecast

You are a planner, working with your team to create a forecast income statement for your company. The business scenario used in this course to learn about data actions involves creating a detailed labor forecast.

Permissions

The permissions for data actions are set by your system administrator and depend on a combination of role-based permissions for data actions and folder-based permissions in the file repository.

There are many possible combinations of permissions for data actions, but two common ones are data action designer and data action user.

  • If you are a data action designer with full permissions for your role, then you will have full permissions for data actions that you access in the file repository.
  • If you are a data action user with Read and Execute permissions assigned for data actions, then you can't make changes to the data actions, but you can start them.

More information on permissions can be found in Permissions for Data Actions in the SAP Help Portal.

Overview

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 more quickly and accurately, such as copying data, running scripted calculations, performing driver-based allocations, or publishing versions.

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.

When do you use them? Data actions are used to process large amounts of data. Some of the common use cases for data actions for planning include the following:

  1. Carry out planning tasks automatically.
  2. Copy by model and across models.
  3. Allocations.
  4. Currency translation.
  5. Calculations.

How to Access Data Actions

Recently created and accessed data actions can be viewed in the Recent Files on the Data Actions starter page.

You can also access your data actions from the file repository, by accessing Files from the side navigation or the Recent Files card of your home screen (you may have to add the card using Customization).

Where to access data actions. Start from the side navigation or open existing data actions from the Files navigation and Recent Files card 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 steps are available:

  1. The copy step 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 2025 to 2026 or plan data to budget data. With the copy action, you can copy a value from only one dimension member, but you can copy to multiple dimension members.
  2. The cross-model copy step 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.
  3. An allocation allows you to create a new allocation or use an existing allocation step.
  4. A conversion step is used for models with measures. Conversion steps let you copy between measures while applying currency conversion.
  5. A fact deletion step allows you to delete facts, delete zeros from facts, or set facts to zero. However, your user role must have the Maintain privilege for models assigned to it.
  6. An embedded data action step 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.
  7. An advanced formulas step 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. When working in the script tab of an advanced formulas step from a data action, you can use the SAP Analytics Cloud, AI-assisted data actions feature to help you generate scripts or comments.

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.

Data Action Processing

Steps in a data action are executed sequentially with the result of one step being 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 Actions

Data Action Settings

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

Data Action with Default Model highlighted.

Hint

Once you have created your data action, you can use the AI-assisted data action documentation feature to summarize the data action configuration and generate documentation based on the model, steps, parameters, and other configuration.

Parameters

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

The parameter types 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 lets you prompt users for values such as growth rate or gross margin percentage.
Create Parameter in the data action.

Note

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

Data Action Starters

Starter Settings in the Builder Panel

Let's take a closer look at some of the 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 numbers 1 to 4, as described above the screenshot.
  1. Run Mode Options:
    • Always run in background: Your data action will run in the background, allowing you to navigate the screen freely.
    • Run in synchronous mode: This option is recommended for short-running data actions. A data action runs immediately and bypasses the workload queue.

      This option lets you start multiple data actions on different versions. They run independent of each other. Your run fails if another data action is running on the same version or if processing times are too long.

      If you don't select this option, you can start multiple data actions on the same or different versions but the system processes data actions one at a time. Data actions are given more time before they fail.

  2. Data Action: Select the data action to run. You will only be able to select a data action for which you have Read permission granted.
  3. 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.
    • Automatic Planning Area: The planning area is determined automatically.
    • 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.

      More information on customizing a planning area can be found in Configuring and Using a Planning Area lesson in the Optimizing Planning Performance in SAP Analytics Cloud course.

    • All Version Data: The target version will contain all the version data.
  4. Publish to target version after execution: You can select a desired behavior for publishing your changes. However, note that all of your unpublished changes to the target version will be published, even if they weren’t part of the data action. The options include:
    • Do not publish: Changes will not be published and the version will stay 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 publication 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

    Automatic publishing only applies to public target versions on non-BPC write-back models. If you are working with a private target version or a BPC write-back model, you can publish the changes manually.
  5. Open in Designer: Opens the data action so that you can review, maintain, or add steps to it.
  6. Parameter Settings: When you run a data action in a story, the prompts in the dialog are based on the parameters that were added to the data action when it was created.

    In the following example, when the Copy Hours data action is executed from a story, you are prompted for Target Version, Source Version, and Year/Month.

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.

The Input and Value configuration are set from the builder panel Parameter settings for the data action starter.

These are the parameter Input options:

  • Prompt
  • Fixed Value

If you select Prompt, there are four Value options available to you:

  1. Member Selection
  2. Default Value (based on the default value set in the data action configuration)
  3. Story Filter
  4. Input Control
Data action parameter options in stories.

Data Action Monitor

When data actions are scheduled from the SAP Analytics Cloud calendar, you can use the Job Monitor - Data Actions to check the status.

Job Monitor - Data Actions in SAP Analytics Cloud is open on screen with the details of a data action shown in a panel on the right.

The Job 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.
  • The number of records and duration.
  • The data action job history is retained based on a retention period of 30 days (default).

The data actions can also be reviewed directly from the story by selecting Monitor Panel from the toolbar.

Job Monitor opened from a story.

Use the Job Monitor from the Data Action Start Page

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 Job Monitor - Data Actions from the Data Action start page.
  • View the data actions and the related information such as Status, Total Duration, Started From and Model.
  • View the details for a specific data action, including Steps and Parameters.