Sub topic 13
Configuring groupings, number ranges and role mapping
This chapter assumes you know transaction BP, business partner roles, and the basics of CVI. It also assumes you can open the configuration tool (IMG) with transaction SPRO. Table names and menu paths below are typical for S/4HANA. Check them against your release.
What you configure
Three settings decide how a new partner is numbered and which classic record it gets.
- A grouping controls the number range and the field status of a partner at creation.
- A number range is an interval of numbers. Each one is either internal (the system assigns the number) or external (the user types it).
- Role mapping tells CVI how a BP role corresponds to a customer or supplier account group.
Step 1: Define the grouping and its number range
In SPRO, open the business partner settings under Cross-Application Components, SAP Business Partner, Business Partner, Basic Settings.
- Define number ranges. Create an interval, for example 1000000000 to 1999999999, and mark it internal or external.
- Define groupings and assign number ranges. Create a grouping such as ZINT, give it a short name, and assign the interval. Set the external flag only if the interval is external.
Groupings are not transported with their number ranges. Create the ranges in each system, and keep the intervals identical across systems.
Step 2: Map the grouping to account groups
CVI needs to know which customer or supplier account group to use when a partner with a given grouping gets a customer or supplier role. Open the CVI settings and maintain these two mappings.
- Customer integration: BP grouping to customer account group.
- Vendor integration: BP grouping to supplier account group.
Then align the numbering. A common approach is to make the BP number and the customer or supplier number identical. For this, the BP range and the account group range must have the same interval. The same flag, internal or external, must be set on both ranges.
Step 3: Map roles
Role mapping is held in the CVI settings. It has two parts.
- Direction. Choose BP to customer or BP to supplier. A role such as FLCU00 (FI customer) or FLVN00 (FI supplier) triggers the sync. A pure contact role does not.
- Role assignment. Map each BP role to the customer or supplier role category. For example, FLCU01 (customer, sales) and FLCU00 (customer, financial accounting) both lead to a customer.
Also check that the roles you need are available in the BP role definition. Each role has a category and a screen sequence that controls which tabs show in transaction BP.
Step 4: Test the setup
- Create a partner in BP with your new grouping and the role FLCU00.
- Save it, then confirm that the customer exists, for example in transaction XD03.
- Compare the BP number with the customer number.
For a quick check in tables, this query lists the link between partner and customer:
SELECT b~partner, c~customer
FROM but000 AS b
INNER JOIN cvi_cust_link AS c
ON c~partner_guid = b~partner_guid
WHERE b~type = '2'
INTO TABLE @DATA(lt_customers)
UP TO 10 ROWS.Common errors
| Symptom | Likely cause |
|---|---|
| Customer is not created after save | Role not mapped, or the sync is not active |
| Number differs between BP and customer | Ranges are not identical, or only one of them is external |
| No number range found for grouping | Grouping has no assigned interval in this system |
| Error that the account group is missing | No grouping to account group mapping |
Exercise
A partner is saved with grouping ZINT and role FLCU00, but no customer record exists. Name two configuration items to check.
Show answer
Check that a mapping from grouping ZINT to a customer account group exists in the CVI settings. Check that the role FLCU00 is mapped to the customer direction. Also check that the number ranges of the grouping and account group do not conflict.