Show TOC

## Activity STOCK_TOLERANCE

The system uses this activity to consider the surplus inventory in responsive replenishment (RR).

The following parameters are available for the activity STOCK_TOLERANCE:

 Parameter Meaning DS_BASELINE Basis forecast key figures from two different data sources. One data source is RR. DS_EVENT Promotion key figures from two different data sources. One data source is RR. DS_SURPLUS_INV RR key figure surplus inventory THRESHOLD_1 Threshold value factor PERIOD_SELECT Start and end periods of the time frame for which you execute the activity

Activity class: /SAPAPO/CL_DC_STOCK_TOLERANCE

The system determines within the specified time frame, the first period in the combined key figure that does not yet have a value. It then does the following:

...

1.      The system adds the key figure values of the two data sources (for example, data source RR and data source DP) for this period. The results are the RR total and the DP total.

2.      The system checks if the following conditions apply:

¡        DP total equals 0.

¡        The surplus inventory does not equal 0.

If the conditions apply, the system transfers the RR total to the combined key figure. It then proceeds to the next period and carries out step 1.

If the conditions do not apply, the system checks for the current period whether the DP total and the surplus inventory equal 0. Depending on the result, the system proceeds as follows:

¡        If they equal 0, the system ends the activity and leaves this period of the combined key figure empty.

¡        If the DP total does not equal 0, the system does the following calculation for the current period:

DP total / RR total * 100 > 100 + threshold value factor

Depending on the result, the system proceeds as follows:

§         If the statement is not true, the system ends the activity and leaves this period of the combined key figure empty.

§         If the statement is true, the system does the following calculation:

DP total / (RR total + surplus inventory) * 100 > 100 + threshold value factor

If the statement is true, the system ends the activity and leaves this period of the combined key figure empty.

If the statement is not true, the system transfers the RR total to the combined key figure and proceeds to the next period. If this period in the combined key figure is empty, the system carries out step 1. However, if this period contains a value, the system ends the activity.