Trade plan rate hierarchy with global lot attribute values

Article • 7/24/2023 • 7 min read

When you create a new sales order, the system automatically determines the trade plan rate to be applied. To understand how a trade plan rate is selected for a sales order line, consider the following example. Let’s say you have created a sales order for customer C001, with a sales order line for item IT01:

The following rates for item IT01 exist on the Trade Plan Rates page. Please note that the rate lines that match the selected item number, customer, trade business group, and trade product group are displayed in this image. Any lines that do not meet these criteria have already been filtered out and are not shown in the image provided.

To determine which rate from the trade plan rates list will be selected for the order line, the system follows a filtering process. All trade plan rate lines that are not applicable to the current order (line) will be filtered out. To understand the criteria for determining which trade plan rate line is picked, please refer to the following information:

Source type

Source address

Only rate lines that have the same source address code as the customer on the order header or no source address code are valid.

Item type

Global lot attributes

Only rate lines that have the same global lot attributes as the order line or no global lot attribute values are valid.

In a scenario where a rate line has the same first global lot attribute as the order line but differs in the remaining global lot attributes, and another rate line has the same first global lot attribute as the order line but has no other global lot attributes in the rate line, the second line is considered valid.

Variant code

Only rate lines that have the same variant code as the item on the order line or have no variant code are valid.

Unit of measure

Rate lines that have any unit of measure code or have no unit of measure are valid. But the rate lines that have the same unit of measure as the base unit of measure for the item on the order line are considered first. Based on the filtering process, the following scenarios determine how the trade rate is selected based on the unit of measure code:

Shipment method

Only rate lines that have the same shipment method as the item on the order line or have no shipment method are valid.

Location

Only rate lines that have the same location code as the item on the order line or have no location code are valid.

Starting date

The following image explains the trade plan rate line filtering process, prioritizing certain fields and values in those fields from most important to least important. The system performs step-by-step checks, as mentioned in the image. The most important fields in this filtering process are Source Type, Source Address, and Item Type, which are evaluated in the first, second, and third steps to filter rate lines with the values mentioned as most important. Subsequently, the system proceeds to the fourth step, comparing the values in the Global Lot Attributes fields with the global lot attributes on the order line. If a match is found, the system proceeds to the fourth step. In case all the global lot attributes are empty on the rate line, the remaining trade plan rate lines (which passed the initial steps) are checked for values that are most important in the subsequent steps.
Lastly, if multiple lines still exist after examining all the steps, the system considers the trade plan rate line with the most recent starting date for further processing.

When no lines remain, trade rates will not be used on the order line.

Applying all the above steps to the valid rate lines we had in our example, would filter out the pink lines in the image below, resulting in 1 remaining (grey) price line.
Explanation:
Step 1: Since rate lines with the source type as Customer exist, 8 lines are filtered out.
Step 2: Since rate lines with the source address as USA exist, the rate lines with no source address are filtered out.
Step 3: Since rate lines with the item type as Item exist, 3 lines are filtered out.
Step 4: Since rate lines with the same global lot attributes as the order line, 3 lines are filtered out.
Steps 5, 6, & 7: Since the remaining rate lines exist with the same variant code, unit of measure, and shipment method as the order line, the system moves further to the next step.
Step 8: Since rate lines with the location code as EAST exist, 1 line is filtered out.

Implying the steps mentioned above, the pink lines in the following image are filtered out of the trade plan rate lines in our example. The reason why they are not valid (in combination with our order example) is highlighted in red.

The trade rate that will be used in the order line is 5 USD.