xP&A Operational Workforce Planning - Create Predictive Scenario
- The benefits of using Smart Predict capabilities in the context of the xP&A Operational Workforce Planning content package for SAP Analytics Cloud
- Which steps are required in order to make Smart Predict work
- This includes…
-creating and setting up Predictive Scenarios
-embedding Predictive Scenarios into Multi Actions
-adjusting the planning applications to enable Smart Predict
Prerequisites
- You are familiar with the xP&A - Operational Workforce Planning content from the xP&A Business Content Suite. Reference: Getting Started tutorial
- You have installed the xP&A - Operational Workforce Planning content in an SAP Analytics Cloud tenant. Reference: Business Content Installation Guide, Content Package User Guide
In this tutorial you will learn how to create and embed a predictive scenario.
In case you have any questions or require further support, please use the SAP Question Form.
If you have a specific request to our team in regards to the business content, you may also submit a request using the SAP Influence Platform.
If you are interested in more xP&A topics, related business content packages, or videos showing the content in action, feel free to check out our community page Extended Planning & Analysis Business Content.
- Step 1
To quote SAP’s official definition, Smart Predict describes the use of SAP machine learning algorithms to explore relationships in your dataset and build a formula – a Predictive Scenario – to predict future events or trends. Currently, three types of Predictive Scenarios are available in Smart Predict: classification, regression, and time series Predictive Scenarios.
In the context of the xP&A Operational Workforce Planning Content Package for SAP Analytics Cloud, it is possible to make use of the time series Predictive Scenario to pre-populate future planning periods with planning values. In contrast to the standard pre-population functionality which is offered, where all values from one single historical period are copied and pasted to the periods of the plan horizon, the machine learning based algorithm is able to detect patterns in historical data and make more precise and realistic assumptions about what the future could look like. This includes mirroring seasonal cycles, upward or downward trends, fluctuations and much more.
In the following exercise, you will learn which steps are required in order to create a time series forecast scenario and how to enable Smart Predict capabilities within your planning applications.
INFORMATION
- All of the applications delivered with this content package are already prepared in a way so that you can quickly make use of the Smart Predict capabilities. This also includes the Multi Actions, which are used to start the data preparation for the machine learning algorithm and the time series forecast itself.
- What it left for you to do is to create a Predictive Scenario and embed it into the prepared Multi Actions.
- Please note that a time series forecast can only be performed when enough historical data for training the algorithm is available. 5:1 is a good ratio to estimate the horizon and get predictions with relevant confidence intervals.
- Learn more about time series forecasting in SAP Analytics Cloud in the blog post Time Series Forecasting in SAP Analytics Cloud Smart Predict and Predictive Planning in Detail.
- Please also note that the time series forecasting method in the context of this content package can only be used for the aggregated planning scenario.
- Step 2
In the first step, it is necessary to create a new Predictive Scenario.
-
In the SAP Analytics Cloud menu, navigate to the Predictive Scenario section.

-
Select the Time Series Forecast predictive model.

-
Store your Predictive Scenario in the folder where your content package is located or any other location of your choice.
According to the naming convention, you can call your scenario
SAP__HR_BPL_IM_PredictiveScenariofor instance.
-
- Step 3
After saving your Predictive Scenario, a new menu opens up where you can configure your forecast models. Alternatively, you can also find the Predictive Scenario by navigating to the Predictive Scenario menu as shown in the screenshot in step 1 of this tutorial.
Now that the Predictive Scenario object has been created, you need to set it up and make some configurations. Every Plan Level of your data model requires a different set-up. In this step, you will learn how to configure the predictive models for each of the pre-defined Plan Levels. Find out more about the term Plan Level in step 1 of the tutorial xP&A HXM Workforce Planning - Add a new Plan Level.
-
Create the Predictive Scenario for the Plan Level
PL1(representing aCompanyCode,Business UnitandDivisionpoint of view).In order to do so please enter the term
PL1into the description window and select theSAP__HR_BPL_IM_WORKFORCEdata model as your time series data source.
After specifying your time series data source, the menu on the right hand side expands.
-
Set up your predictive model for Plan Level PL1.
Please use the following settings in order to setup the forecast model for the Plan Level PL1.
Setting Selection DescriptionPL1Time Series Data SourceSAP__HR_BPL_IM_WORKFORCETarget MeasureFTEDateDateTime Granularityby monthNumber of Forecast Periods12EntityCompanyCode,BusinessUnit,Division,LocationFilterNoneTrain UsingAll observationsUntilLast ObservationConvert negative values to zeroTrueInfluencersNone
-
Save your Predictive Scenario.

Your predictive model for the Plan Level PL1 has now been created.
In order to create the predictive models for the remaining Plan Levels, you can use the predictive model of the Plan Level PL1 as a template.
-
Duplicate the predictive model for Plan Level PL1.
-
In order to do so, expand the predictive models menu which is located at the bottom of the page.
-
Click on the three dots and duplicate your predictive model

-
-
Select the duplicated model in the menu at the bottom of the page and rename the description of the predictive model from
Based on Predictive Model 1toPL2
-
Adjust the configuration of this predictive model according to the definition of Plan Level PL2.
-
Change the entities to
Company Code,Business UnitandLocationonly as Plan Level PL2 represents aCompany Code,Business Unit(andLocationin case of external workers) point of view.

-
-
Save your Predictive Scenario.

Your predictive model for the Plan Level PL2 has now been created.
-
Duplicate the predictive model for Plan Level PL1 or Plan Level PL2.
-
In order to do so, expand the predictive models menu which is located at the bottom of the page.
-
Click on the three dots and duplicate your predictive model
-
-
Select the duplicated model in the menu at the bottom of the page and rename the description of the predictive model to
PL3 -
Adjust the configuration of this predictive model according to the definition of Plan Level PL3.
-
Change the entities to
Company Code,Cost CenterandLocationas Plan Level PL3 represents aCompany Code,Cost Center(andLocationin case of external workers) point of view.
-
-
Save your Predictive Scenario.

Your predictive model for the Plan Level PL3 has now been created.
-
Duplicate the predictive model for Plan Level PL1, Plan Level PL2 or Plan Level PL3.
-
In order to do so, expand the predictive models menu which is located at the bottom of the page.
-
Click on the three dots and duplicate your predictive model
-
-
Select the duplicated model in the menu at the bottom of the page and rename the description of the predictive model to
PL5 -
Adjust the configuration of this predictive model according to the definition of Plan Level PL5.
-
Change the entities to
Company Code,Business Unit,JobFamilyandLocationas Plan Level PL5 represents aCompany Code,Business Unit,JobFamily(andLocationin case of external workers) point of view.
-
-
Save your Predictive Scenario.

Your predictive model for the Plan Level PL5 has now been created.
-
- Step 4
Now that the Predictive Scenario and the different predictive models have been created, the objects need to be integrated into the Multi Actions which are triggered from inside the planning applications.
INFORMATION:
- In contrast to ordinary Data Actions, Multi Actions are capable of performing a chain of activities across various Versions and Data Models
- Generally, Multi Actions can be seen as a sequence of Data Actions, version management steps and predictive steps
- Learn more about Multi Actions in the SAP Help Portal
-
In the SAP Analytics Cloud Menu, navigate to the Multi Actions section.

-
Search for the Multi Action
SAP__HR_BPL_IM_WFP_SmartPredict_PL1and open it. -
In the next step, add a new Predictive Scenario to the Multi Action by clicking on the binocular icon on the top lane.

The new step will be added at the very bottom of the Multi Action chain.
-
Click on the new Multi Action step and apply the following settings to it:
Setting Selection Step NameForecast PL1 FTEPredictive ScenarioSAP__HR_BPL_IM_WFP_PredictiveScenarioHCPredictive ModelPL1Predictive ActionTrain & ForecastCorresponding Planning ModelSAP__HR_BPL_IM_WORKFORCEVersion to save ForecastAggregated_Plan_SmartPredictTemporary
-
Duplicate the newly created step by hovering over the predictive step and clicking on the thee dots.

-
Rename the description of the new step to
Forecast PL1 FTE (external) -
Move both of the newly created Predictive Scenario steps to their correct location inside the Multi Action chain.
- In order to do so, use the Move up function
- Place the
Forecast PL1 FTEstep in third order of the Multi Action chain and theForecast PL1 FTE (external)step in ninth order.

-
Save your changes.
-
Navigate back to the Multi Actions section and open the Multi Action
SAP__HR_BPL_IM_WFP_SmartPredict_PL2.- Repeat Sub-Step 3 to Sub-Step 8 of this Step.
- Please note that you now have to select
PL2as your predictive model when creating the predictive steps.

-
Repeat Sub-Step 3 to Sub-Step 8 for the Multi Actions
SAP__HR_BPL_IM_WFP_SmartPredict_PL3andSAP__HR_BPL_IM_WFP_SmartPredict_PL5.- For the Multi Action
SAP__HR_BPL_IM_WFP_SmartPredict_PL3choosePL3as your predictive model in your predictive step - For the Multi Action
SAP__HR_BPL_IM_WFP_SmartPredict_PL5choosePL5as your predictive model in your predictive step
- For the Multi Action
- Step 5
Now that everything has been set up, you need to activate the Smart Predict capabilities inside your planning applications.
Per default, Smart Predict is turned off and thus cannot be triggered when pre-populating the plan version.
-
Open the
SAP_HR_BPL_IM_WFP_OVERVIEW_PAGEstory in edit mode. -
In the Outline section on the left-hand side of your development environment, click on the variable
toggleIsPredictiveEnabled
-
Set the default value to
trueas shown in the screenshot and save your changes.
INFORMATION:
- If you want to disable the option to pre-populate the planning versions using Smart Predict, set the default value to
false
- If you want to disable the option to pre-populate the planning versions using Smart Predict, set the default value to
-
- Step 6
Now that you have set up the Predictive Scenario and activated the Smart Predict capabilities, you can run the predictive algorithm for pre-populating your plan version.
-
Open the
SAP_HR_BPL_IM_WFP_OVERVIEW_PAGEstory.INFORMATION
It is important to open the
SAP_HR_BPL_IM_WFP_OVERVIEW_PAGEstory first instead of directly jumping to theSAP_HR_BPL_IM_WFP_CENTRAL_ASSUMPTIONSstory as the parameter you changed in the previous step is transmitted via the overview application. If you opened the central assumptions applications directly, smart predict capabilities would not be activated. -
Enter the Application Configuration story.

-
Click on the Confirm button and activate the toggle Initialize Plan Data After Publish. A new toggle Use Predictive will appear below. Activate this toggle and hit the OK button in order to run your Predictive Scenario.

INFORMATION
Both the traditional pre-population and the Smart Predict based pre-population take place now. The traditional pre-population, where values from one reference period are copied over to the periods of the plan horizon, are written on the
Aggregated_Planversion as usual. The Smart Predict values on the other hand are written on theSmart_Predictversion. This way, you will be able to use the values from theSmart_Predictversion as a reference for your planning assumptions made on theAggregated_Planversion. -
After the prediction has run through successfully, click on the Home Page button in the navigation menu to get back to the overview story.

-
Open either the Aggregated External HC Plan or the Aggregated Internal HC Plan application. In this example, the Aggregated Internal HC Plan application is opened.
-
Activate the toggle Show Smart Predict Reference.

You are now able to see the results of the time series forecast under the
Smart_Predictplan version.
-
- Step 7
Congratulations! You have now successfully created a predictive scenario.
If you want to learn more about the SAP xP&A Operational Workforce Planning content package, customize the content and adjust it according to your own business requirements, the following resources might be helpful:
- xP&A Operational Workforce Planning - Get to know the Operational Workforce Planning Content
- xP&A Operational Workforce Planning - Create and Upload Central Assumptions
- xP&A Operational Workforce Planning - Add a new Plan Level
- xP&A Operational Workforce Planning - Add a new Cost Type
- xP&A Operational Workforce Planning - Add a new Version
- xP&A Operational Workforce Planning - Create Predictive Scenario
- xP&A Operational Workforce Planning - Write back plan positions to SAP SuccessFactors
If you want to get an overview of the entire xP&A Operational Workforce Planning content package, make sure to check out the Mission.
Interested in more xP&A topics and related business content packages? Visit our community page Extended Planning & Analysis Business Content.