Sub topic 13
Configuring groupings, number ranges and role mapping
This chapter covers the customizing that decides how a business partner (BP) gets its number, which customer or supplier account group it receives, and which roles the system creates. It assumes you know transaction BP, the difference between categories, roles and groupings, and what CVI does. It also assumes you can use the IMG (SPRO) and know what a number range object is. It gives an overview of the settings and does not replace the IMG documentation in your release.
What you configure and where
Three layers of settings work together:
- BP groupings and BP number ranges. These sit in the BP customizing and are independent of customers and suppliers.
- Roles and role categories. A BP role is the business-facing label. A role category is the technical class that CVI recognizes.
- CVI mapping. These settings translate between BP concepts (grouping, role) and the classic concepts (customer or supplier account group, number range).
The IMG paths below use these shortened names:
| Area | IMG path (abbreviated) |
|---|---|
| Groupings and number ranges | Cross-Application Components > SAP Business Partner > Business Partner > Basic Settings > Number Ranges and Groupings |
| BP roles | Cross-Application Components > SAP Business Partner > Business Partner > Basic Settings > Business Partner Roles |
| CVI mapping | Cross-Application Components > Master Data Synchronization > Customer/Vendor Integration > Business Partner Settings |
Menu names differ slightly between releases, so search the IMG for "Number Ranges and Groupings" if a path does not match.
BP groupings and number ranges
A grouping is a key that you assign when you create a BP. It does three jobs:
- It selects the number range interval for the BP number.
- It controls whether the number is internal (the system assigns it) or external (the user enters it).
- It can influence field control and defaults, such as which fields are required.
Configuration has two steps:
- Define the number range intervals. Each interval has a two-character key, a from and to number, and an external flag. Example values, which are only an illustration:
| Interval | From | To | External |
|---|---|---|---|
| 01 | 0000000001 | 0999999999 | No |
| 02 | 1000000000 | 1999999999 | No |
| X1 | A000000000 | ZZZZZZZZZZ | Yes |
- Define groupings and assign intervals. Create a grouping such as
BP02, give it a short name, and assign an interval. You can also set it as the default grouping for a BP category.
The BP number field is character-based, 10 positions long. External intervals can therefore contain letters, but internal intervals must be numeric.
Several groupings can share one interval. This is useful when you want different field control but one continuous numbering.
Number range intervals are client-specific data. A transport of the grouping assignment does not carry the interval itself. Create or transport the intervals deliberately in each system, or the grouping will point at an interval that does not exist.
Role categories and roles
A role category is a technical key delivered by SAP. CVI looks at the role category, not the role name. The categories relevant here are:
| Role category | Meaning | Usual BP role |
|---|---|---|
| FLCU00 | Customer, FI view (company code data) | FLCU00 |
| FLCU01 | Customer, sales view (sales area data) | FLCU01 |
| FLVN00 | Supplier, FI view (company code data) | FLVN00 |
| FLVN01 | Supplier, purchasing view (purchasing organization data) | FLVN01 |
You can define your own BP roles, for example a role ZCUST1, and assign it one of these categories. A BP that holds a custom role with category FLCU01 is then treated as a sales customer.
Adding a role with a customer or supplier category is what triggers CVI to create the customer or supplier record. If a BP exists but no such role has been added, there is nothing on the classic side.
Role mapping in the CVI direction settings
CVI settings are split by direction, and each direction has its own entries. For customers, the entries are:
- Define BP role for direction BP to customer. Lists which BP roles (by role category) lead to a customer being created.
- Define BP role for direction customer to BP. Defines which BP role the system creates when a customer is created or migrated. Typically FLCU00 for the FI view and FLCU01 for the sales view.
- Define number assignment for direction BP to customer. Maps a BP grouping to a customer account group.
- Define number assignment for direction customer to BP. Maps a customer account group to a BP grouping.
The supplier side has the same four entries, with FLVN00 and FLVN01. In both directions, the field assignment settings also exist for individual fields, but you rarely change them.
Keep the two number assignment directions symmetric. A BP created with grouping BP02 that maps to account group KUNA should come back as grouping BP02 when the customer is read in the other direction. Otherwise, a customer migrated from the classic side lands in a different grouping from the one a user selects in BP.
Aligning the number ranges
CVI offers two numbering strategies, and your number ranges must support the one you choose:
- Same numbers. The BP number, the customer number, and the supplier number are identical. This is the usual recommendation, because reports, interfaces and users see one number for one partner.
- Different numbers. The customer and supplier numbers come from their own ranges. This is more flexible, but users must always map between numbers.
For same numbers, the following must hold:
- The BP number range interval and the customer or supplier account group's number range must cover the same interval.
- When the BP is created first, the BP side generates the number if internal. The account group's number range must then be external, so the number is accepted instead of generated again.
- Customer and supplier ranges for the same BP must not overlap in a way that gives the number to two different partners.
If you plan for dual roles, which a later chapter treats in detail, then a single BP number serves as the customer number and the supplier number. This is only practical when both account group intervals include the BP number.
Checking the result
After configuring, create a test BP with each grouping and role combination and inspect the result. A quick report shows how groupings are used on the customer side:
REPORT z_bp_grouping_usage.
SELECT b~bu_group, COUNT( * ) AS partners
FROM but000 AS b
INNER JOIN cvi_cust_link AS c
ON c~partner_guid = b~partner_guid
GROUP BY b~bu_group
ORDER BY b~bu_group
INTO TABLE @DATA(lt_usage).
cl_demo_output=>display( lt_usage ).The report counts, per BP grouping, the partners that have a linked customer. A grouping with partners in BUT000 but none here is a candidate for a missing role or missing mapping.
Common mistakes
- Account group number range left internal. The customer is created with a new number that differs from the BP number, or the creation fails.
- A mapping missing for one direction. Creating customers in BP works, but migration or an API call from the classic side fails.
- Intervals not transported. The grouping exists in the test system but points to an interval that was never created there.
- Overlapping intervals across groupings. Two groupings that share an external range can make a manually entered number collide with one already in use.
- Changing a grouping after use. The grouping on an existing BP is generally not meant to be changed freely. Plan groupings before creating data.
Exercise
You create a BP with grouping BP02 and add role FLCU01. The BP number is generated internally as 1000000042, but the customer is created with a different number, and users complain about two numbers for one partner. Which two settings do you check first?
Show answer
First, check the number assignment mapping for direction BP to customer, to confirm that BP02 maps to the intended customer account group. Second, check the number range of that account group. For same numbers it must be external and must cover the BP interval that contains 1000000042. If it is internal, the customer receives its own number.