Using Data Actions to Copy Data Between Models

Objective

After completing this lesson, you will be able to create and run a data action to copy data from one model to another.

Copy Data Between Models

Cross-Model Copy Step

Data is often needed from several sources to perform the planning process. Depending on the circumstances, the data may need to be physically copied, while in other cases, a look-up will suffice. With a cross-model copy step in SAP Analytics Cloud, you can copy data from one planning model to another, or from an analytic model in SAP Analytics Cloud to a planning model. You pick the model and version that contains the source data, add filters as necessary, and define how to copy the data to the target model. For example, you have detailed workforce data in your HR planning model and you want to add some of the data to a finance model for further analysis, so you use this feature to quickly copy the data.

A data action with a Cross-model Copy step can be used, for example, to copy actual labor hours from HR as the basis for forecast hours.

Note

Cross-model copy steps can't copy data between classic account models and standard models. If you need to copy data between an account model and a standard model, use the LINK function in an advanced formulas step instead.

For details, see About Script Formulas and Calculations in Advanced Formulas for Planning.

Account models refer to the configuration where the model structure consists of a mandatory account and a default single, unique measure created automatically by the application. Standard models, on the other hand, refer to the configuration where the model structure allows for multiple measures, as opposed to account models. Standard models are the default and recommended model type to use.

In this lesson, we will focus on the cross-model copy step in a data action to copy data from an HR model to an Expense model.

Video Summary

Context

In the Context area. select your Source Model and Target Model. In the Filters, select the data that will be copied. The Version filter is mandatory, however, you can apply additional filters, as required.

Mapping

In the Mapping area, you set how the data is mapped from the source model to the dimension members of the target model. For each of the target dimensions listed in this area, you need to either map a source dimension or select a default value.

You don't need to map source dimensions that aren't relevant for the target model and the source and target models can have different dimensions. For example, you can see that the HR model has a Personnel Area dimension but the Expense model doesn’t. The Personnel Area source dimension is left in the Source Dimensions in the mapping area of the data action step configuration.

You can configure the mapping by selecting the name of a mapped source dimension. From here, you can configure the Auto Generation Strategy and create your own Copy Rules, if required. In this example, the strategy is set to Identical Names and Compatible Types. This means that source members are automatically mapped to target members if their names are identical and their data types are compatible.

A Cross-Model Copy data action with Source Model (top left), Target Model (top right), Mapping.

Use Case: Copy Data from a Weekly to a Monthly Model

What do you do if you need to copy data from one model to another but the models have different time granularity? It's possible to copy the data using a cross-model copy step in a data action with copy rules applied.

When data is copied from a weekly to a monthly model, the data is aggregated from weeks into months. The assignment of a week that begins in one month and ends in another is based on the Auto-Generation Strategy in the data action. In the following example Start of the Time Period was selected. This option uses the first day or the beginning of the time period of the source date member as a reference to map to the target date member. When mapping date dimensions with different time granularity, the first day of the source member or the beginning of a timestamp of the source member will always be used as a point of reference.

In the following example, you can see the Copy Rules from Date to Date from the mapping of a cross-model copy step where the models have different granularity. Notice how the copy rules in the data action are mapped and how that impacts on the monthly totals.

To the left is data action configuration. To the right a story with weekly data in table (left) and the data copied into the monthly table (right).

Additional Information

For more information on copying data between models, including mapping and the auto-generation strategy options, go to Adding a Cross-Model Copy Step in the SAP Help Portal.

Create and Run a Data Action to Copy Data From One Model to Another

Business Scenario: In the third step of creating the 2025 forecast income statement for your company, you must calculate the labor and benefits. First, you will need to copy the labor hours from HR and then calculate the labor and benefits.

Before you calculate labor values in the expense model, you need to create a data action to copy the labor hours from the HR model into the Expense model. To do this, you need to create a cross-model copy data action.

 

Task Flow: In this practice exercise, you will:

  • Create a data action to copy between models.
  • Configure the data action parameters, mapping, and filter.
  • Create a blank private version in the Expense model.
  • Add the data action to the story and run it.