Technology Blog Posts by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Peng_Lu
Explorer
0 Likes
1,395

In SAP IBP, period shift refers to the ability to shift key figure values by a specified number of time periods. This is useful for scenarios where you need to compare or analyze data across different time frames.

The IBP_PERIODSHIFT function simplifies this process. It allows you to configure period shifts in one step by defining the key figure, the number of periods to shift, and the aggregation type. The syntax for the IBP_PERIODSHIFT function is:

IBP_PERIODSHIFT(<KEY FIGURE@PLANLEVEL>, <NUMBER OF PERIODS>, <AGGREGATION TYPE>)

For example, if you want to shift the value of a key figure called ACTUALSQTY by 12 months into the future, you would use:

ACTUALSQTYOFFSET@MTHPRODLOC = IBP_PERIODSHIFT("ACTUALSQTY@MTHPRODLOC", 12)

This function is particularly useful for creating forecasts, performing trend analysis, and managing time-based data transformations.

This article will show how to implement the IBP_PERIODSHIFT function in SAP IBP.

Set Up Period Shift

1. Create a new key figure called ACTUALSQTYOFFSET1YR using the following data.

FieldValue
Key Figure IDACTUALSQTYOFFSET1YR
NamePrevious Year Sales
DescriptionPrevious Year Sales
Base Planning LevelPERPRODCUST
CalculatedX
Edit AllowedNot Editable

PengLu_0-1738647546929.png

2. Ensure that the Request level calculation for ACTUALSQTYOFFSET1YR is such that it is the sum of the PERPRODCUST level: ACTUALSQTYOFFSET1YR@REQUEST = SUM(“ACTUALSQTYOFFSET1YR@PERPRODCUST”)

PengLu_1-1738647636097.png

Ensure ACTUALSQTYOFFSET1YR is selected as an input but not as Stored.

PengLu_2-1738647826286.png

3. Add the following calculation definition for ACTUALSQTYOFFSET1YR key figure: ACTUALSQTYOFFSET1YR@PERPRODCUST = IBP_PERIODSHIFT("ACTUALSQTY@PERPRODCUST", 12)

PengLu_3-1738647980233.png

PengLu_4-1738648019613.png

4. Activate planning area, by selecting the Full Scope No Dependencies option.

 

Test the Solution Using Planner Workspaces

1. Test your solution by creating a Planner Workspace using the information provided in the table.

Use the following Values for Time:

FieldValue
Time PeriodMonthly
FromCurrent Month - 12
ToCurrent Month + 12
RollingYes

Use the following Values for Attributes: 

Attributes: PRDFAMILY

Use the following Values for Key Figures:

FieldValue
Actuals QtySelected
Previous Year SalesSelected

Filter by Product Family xPhone.

PengLu_0-1738660806629.png