SAP Knowledge Base Article - Public

2317499 - Realignment Run Does Not Derive Territories Properly

Symptom

You created a realignment Run, but it is not deriving the territories as expected.

Environment

SAP Hybris Cloud for Customer

Reproducing the Issue

Suppose that you have a realignment run with the following criteria:

If Country = US

Territory = XYZ (XYZ represents the name of the territory).

And that you have account 123 with Country = US (123 represents the Account ID).

When you go to:

  1. Go to the Customers work centre.
  2. Select the Accounts view.
  3. Open account 123.
  4. Click the Actions button.
  5. Choose  the Derive Territory option.

Territory is not set to XYZ.

Cause

The operator for the Rule Valid From and Rule Valid to attribute is not set correctly.

Resolution

In order for the territory to be derived avoid using the operator Equal to for the Rule Valid From and Rule Valid to column in the rules.

Rule engine has no context available and thus can not interpret Rule Valid From, for the engine every column is just a value which,
needs to be compared with the account's attribute or with today's date using the operator specified with the value.

You have to use the operators Greater or Equal and Less or Equal.

Keywords

Realignment Run, Realignment rules, Operator, Valid From, Territory Rules. , KBA , LOD-CRM-TM , Territory Management , How To

Product

SAP HYBRIS C4C ADDINS 1802 ; SAP HYBRIS C4C ADDINS 1805 ; SAP Hybris Cloud for Customer 1702 ; SAP Hybris Cloud for Customer 1708