Sub topic 3
Person, organization and group: business partner categories
This chapter assumes you know what a business partner is and how it replaces the separate customer and vendor masters. It also assumes you know the role concept at a high level, and that you can read a table key and a transaction screen. The chapter covers what the category is, how it changes the data you maintain, and how to choose one for a real scenario.
What a category is
A business partner category is the basic type of a partner. It answers one question: is this partner a natural person, a legal entity, or a collection of people?
SAP delivers three categories:
| Category | Key | Typical use |
|---|---|---|
| Person | 1 | Individual customers, sole traders, contact persons, employees acting as partners |
| Organization | 2 | Companies, public authorities, associations, most customers and suppliers |
| Group | 3 | A set of persons or organizations treated as one unit |
The key is stored in field TYPE of the header table BUT000. The OData service API_BUSINESS_PARTNER exposes it as BusinessPartnerCategory.
The category is separate from the role and from the grouping:
- The category describes what the partner is.
- The role describes what the partner does in a process, such as customer, supplier or contact.
- The grouping controls the number range and some field behavior.
A partner has one category, one grouping, and one or more roles.
How the category changes the data
The category decides which general data fields exist on the partner. The common structure, which includes the partner number, the grouping, addresses, bank details and roles, is the same for all three. The name block and a few attributes differ.
| Aspect | Person | Organization | Group |
|---|---|---|---|
| Name fields | First name, last name, title | Name 1 to Name 4 | Name 1 and Name 2 |
| Header fields in `BUT000` | `NAME_FIRST`, `NAME_LAST` | `NAME_ORG1` to `NAME_ORG4` | `NAME_GRP1`, `NAME_GRP2` |
| Specific attributes | Birth date, gender, marital status, correspondence language | Legal form, industry, founding date | Group type |
| Typical roles | Customer, supplier, contact person | Customer, supplier, bank, and others | Rarely customer or supplier |
The tab layout in transaction BP follows the same pattern. A person shows a Person section on the address and identification tabs. An organization shows organization name fields. For a person, the display name is built from the first and last name. For an organization, it comes from the name fields.
The search terms BU_SORT1 and BU_SORT2 and the matchcode names MC_NAME1 and MC_NAME2 are derived from these name fields. Searches by name therefore work the same way for every category.
Category and CVI
When a partner has a customer or supplier role, Customer/Vendor Integration (CVI) copies data into the classic tables. The category affects how the name arrives there. A person's first and last name are mapped into the name fields of the customer or supplier record, and an organization's names are mapped directly. You do not maintain these name fields in the classic record. The partner is the source.
Choosing a category
The choice follows the legal and business reality of the partner, not how you plan to use it.
Some practical rules:
- Use Organization for businesses. A company, a school, a municipality or a branch with its own legal identity is an organization. This covers the large majority of customers and suppliers in a B2B system.
- Use Person for individuals. A consumer who buys from you, or a freelancer who invoices you under their own name, is a person. In retail or utilities, persons often outnumber organizations.
- Use Group for collections. Examples are a household, a project team, or a consortium that you want to address as one unit but that has no legal identity of its own. Groups rarely carry customer or supplier roles. If you find yourself creating groups to act as customers, check whether an organization fits better.
- Model people at companies as persons with a relationship. A purchasing manager at a customer is a person partner with the contact person role, linked to the organization through a relationship. Do not type the manager's name into the organization's name fields. Relationships are covered in a later chapter.
A sole trader is the usual gray case. If the trader does business under a registered company name, use an organization. If they trade under their personal name, use a person. Your tax and legal teams may have a rule for this, so ask before you load a large set of such partners.
The category cannot be changed
You cannot change the category of an existing partner. The category determines which fields and database structures are used, and SAP does not offer a conversion in transaction BP. If you chose wrongly, the usual repair is to create a new partner with the right category, move the business over, and block the old one.
Several things make a wrong choice expensive. Documents, open items and assignments already point to the partner number. Customer and supplier records created by CVI carry the old partner's data. Reports that filter by category will silently exclude the partner.
Category and roles
A role definition can restrict which categories may use it. The contact person role, for example, makes sense only for persons. If you try to add a role to a partner whose category is not allowed for that role, the system rejects it. This is one reason you may see a role missing from the role list for a partner. The role is not hidden by an error. It is not valid for that category.
The standard customer and supplier roles allow both persons and organizations. This is why the same API payload structure works for either, apart from the name fields.
Creating partners of each category through the API
The category is the first field you set when you create a partner through the API. The name fields you send depend on it.
A person:
POST /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner
Content-Type: application/json
x-csrf-token: <token fetched with a prior GET using x-csrf-token: fetch>
{
"BusinessPartnerCategory": "1",
"BusinessPartnerGrouping": "BP01",
"FirstName": "Maria",
"LastName": "Example",
"to_BusinessPartnerRole": [
{ "BusinessPartnerRole": "FLCU00" }
]
}The grouping BP01 is only an example. Groupings and their number ranges are defined in each system's customizing, so use a value that exists in yours. For an organization, replace FirstName and LastName with OrganizationBPName1, and set the category to "2". If you send person names with category 2, or organization names with category 1, the call fails or the names are ignored. Check the response and do not assume the call worked.
To read back only persons, filter on the category:
GET /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner?$filter=BusinessPartnerCategory eq '1'&$select=BusinessPartner,FirstName,LastName,BusinessPartnerGrouping&$top=5
Accept: application/jsonChecking the category mix in your system
A quick count by category shows how your system's partners are split. It is also a sanity check after a migration, because an unexpected number of groups or persons usually points to a mapping mistake.
REPORT zbp_category_count.
SELECT type, COUNT(*) AS cnt
FROM but000
GROUP BY type
ORDER BY type
INTO TABLE @DATA(lt_count).
cl_demo_output=>display( lt_count ).Expect mostly 2 in a B2B system. A large number of 1 entries is normal in consumer businesses. A non-zero count of 3 deserves a look to confirm the groups are intentional.
Common mistakes
- Treating a contact as part of the organization. Putting a person's name in an organization name field produces a partner that cannot be a proper contact person and cannot be searched by last name.
- Using Person for companies with a personal name. A company named after its founder is still an organization.
- Loading all partners as category 2 for convenience. Individual customers then have no first and last name fields, and form letters and salutations break.
- Assuming a group is a customer group. The Group category is a partner type. A customer group, as used in sales statistics and pricing, is a classification on the sales area data of a customer. The two are unrelated.
Exercise
A retailer wants to record a consumer who buys online, and also the buyer at one of its corporate customers, who will be the contact for order questions. Which categories and roles would you use, and how do you link them?
Show answer
Create the consumer as a Person (category 1) with a customer role. Create the corporate customer as an Organization (category 2) with a customer role. Create the buyer as a Person (category 1) with the contact person role, and link that person to the organization through a relationship. Do not enter the buyer's name in the organization's name fields.
Exercise
A partner was created as an Organization, but it should have been a Person. Documents already exist for it. Can you change the category in transaction BP, and what do you do instead?
Show answer
No. The category cannot be changed after creation. Create a new partner with category Person, move the business over, and block the old partner so it is not used again.