Show TOC

Function documentationCore Rounding Algorithm

 

The core rounding algorithm forms the basis for all rounding processes in Global Available-to-Promise (Global ATP), Vendor Managed Inventory (VMI), and the planning services in Service Parts Planning (SPP). The core rounding algorithm rounds a quantity to a multiple of a pack size that is as large as possible. This occurs in a step-by-step process.

Features

The basis of the core rounding algorithm consists of a list of pack sizes and a rounding tolerance interval. You can define pack sizes and rounding tolerance intervals in the packaging specifications. A rounding tolerance interval consists of upper and lower rounding limits. Depending on your settings for the determination of packaging specifications, the rounding shell calculates a packaging specification that uses the values of the core rounding algorithm from all stored packaging specifications. For more information, see Overlay of Packaging Specifications.

Activities

The aim of rounding is to round to a multiple of the largest permissible pack size on the basis of defined pack sizes and rounding. The system therefore checks whether the largest defined pack size is within the rounding tolerance interval. If so, the system rounds to a multiple of this pack size. If not, the system checks whether the next smallest defined pack size is within the rounding tolerance interval. The system performs this check until a multiple of the pack size falls within the rounding tolerance limit.

If the next multiple of a pack size within the rounding tolerance limit is zero, and there is no valid minimum demand larger than zero, zero is a permissible rounding result.

Example

Example 1

The value to be rounded is 30.13.

You have defined the following list of pack sizes:

1, 10, 30, 150, 1500

In the packaging specification you have specified 20% round up and 10% round down as the rounding tolerance interval. The percentages refer to the quantity to be rounded.

This results in the following rounding tolerance interval:

  • Upper rounding limit = value to be rounded plus 20% of the value to be rounded = 30.13 + 6.026 = 36.156.

  • lower rounding limit = value to be rounded minus 10% of the value to be rounded = 30.13 -3.013 = 27.117.

The system checks which of the defined pack sizes are within this rounding tolerance interval, beginning with the largest pack size. The largest pack size is 1500. The next multiples of this pack size are 0 and 1500. Since neither 0 nor 1500 lie within the rounding tolerance interval, the system checks the next smallest pack size, in this case 30. The next multiples are 0, 30, and 60. As 30 falls within the rounding tolerance interval, the system chooses 30 as a valid rounding result.

Example 2

The value to be rounded is 45.16.

You have defined the following list of pack sizes:

1, 10, 30, 150, 1500

You have defined 30 as the smallest permissible pack size.

In the packaging specification you have specified 10% round up and 10% round down as the rounding tolerance interval.

This results in the following rounding tolerance interval:

  • Upper rounding limit = value to be rounded plus 10% of the value to be rounded = 45.16 + 4.516 = 49.676.

  • Lower rounding limit = value to be rounded minus 10% of the value to be rounded = 45.16 - 4.516 = 40.644.

The system checks which of the defined pack sizes are within this rounding tolerance interval, beginning with the largest pack size. Since the smallest of the permissible pack sizes does not lie within the rounding tolerance interval, the system rounds to the next multiple of the smallest permissible pack size.

The smallest permissible pack size is 30, the next multiples are 30 and 60. Since the value to be rounded is 45.16 and closer to 60 that to 30, the rounding result in this case is 60 (in other words, two packs of size 30).

More Information

For more information about packaging specifications, see SAP Library for SAP Supply Chain Management on SAP Help Portal at Start of the navigation path http://help.sap.comInformation published on SAP site Next navigation step SAP Extended Warehouse Management (SAP EWM) Next navigation step Handling Unit Next navigation step Packaging Specification End of the navigation path.