Technology Blog Posts by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Peng_Lu
Explorer
0 Kudos
296

Use the IBP_COVERAGE function to calculate coverage for a key figure in one step.

To calculate coverage, use the IBP_COVERAGE function in the calculation definition of key figures in the Planning Areas app.

You can use the IBP_COVERAGE function for a variety of business scenarios. For more examples and implementation ideas, see Days of Coverage and Projected Stock.

We will determine the coverage of the demand element with the initial inventory using the IBP_COVERAGE function. In our example, we will adapt the Demand by Location key figure and then calculate coverage of this key figure.
We will also use a commonly used function ROUND.

https://help.sap.com/docs/SAP_INTEGRATED_BUSINESS_PLANNING/bf99e931b8d44aafb4e306ec3602cbdd/c75f25cd...

Create Configuration

Create a key figure called ADAPTEDDEPDEMAND at the PERPRODLOC planning level, displaying the rounded one-hundredth of the Demand by Location key figure.
Use the following data.

FieldValue
Key Figure IDADAPTEDDEPDEMAND
Base Planning LevelPERPRODLOC
NameAdapted Dependent Demand

Peng_Lu_0-1738830221000.png

Add the following calculation: ADAPTEDDEPDEMAND@PERPROLOC = ROUND(("DEPENDENTDEMANDQTY@PERPRODLOC"/100),0)

This formula effectively converts the dependent demand quantity into a percentage (by dividing by 100) and then rounds it to the nearest whole number.

Peng_Lu_1-1738830337057.png

Add the following calculation: ADAPTEDDEPDEMAND@MTHPRODLOC = SUM("ADAPTEDDEPDEMAND@PERPRODLOC")

Peng_Lu_2-1738830580683.png

2. Create a key figure called COVERAGE at the MTHPRODLOC planning level, displaying the coverage of the Adapted Dependent Demand.
Use the following data.

FieldValue
Key Figure IDCOVERAGE
Base Planning LevelMTHPRODLOC
NameMonths of Supply
CalculatedSelected

Peng_Lu_3-1738832028777.png

Add the following calculation:

COVERAGE@MTHPRODLOC = IBP_COVERAGE("ADAPTEDDEPDEMAND@MTHPRODLOC","INITIALINVENTORYQTY@MTHPRODLOC",1,''NEXTBUCKET'', ''USEZEROSTOCK'',''PASTCURRENTFUTURE'')

Here's a breakdown of the parameters:

  • "ADAPTEDDEPDEMAND@MTHPRODLOC": The key figure representing the adapted dependent demand.
  • "INITIALINVENTORYQTY@MTHPRODLOC": The key figure representing the initial inventory quantity.
  • 1: The coverage period, indicating the number of periods to look ahead.
  • 'NEXTBUCKET': Specifies that the calculation should consider the next bucket (time period).
  • 'USEZEROSTOCK': Indicates that zero stock should be used in the calculation if no stock is available.
  • 'PASTCURRENTFUTURE': Specifies the scope of the calculation, covering past, current, and future periods.

This function will calculate how long the initial inventory can cover the adapted dependent demand, considering the specified parameters.

Peng_Lu_4-1738832316704.png

3. Activate your planning area

Test Your Solution in the Planner Workspace

Test your solution by creating a Planner Workspace using the following information.

FieldValue
Time: 
Time PeriodMonthly
FromCurrent Month
ToCurrent Month + 12
RollingYes
Attributes: 
Product IDSelected
Location IDSelected
Key Figures: 
Adapted Dependent DemandSelected
Demand by LocationSelected
Initial Inventory QtySelected
Months of SupplySelected
Filters: 
Product IDx100 Phone

initial inventory qty in Feb can cover whole adapted dependent demand of MAR and partial of APR.

coverage = 1+ (50-44)/43 = 1.139534

Peng_Lu_0-1738833249104.png

 

Labels in this area