Sub topic 12
Relationships and contact persons
This chapter assumes you know the business partner categories and roles from earlier chapters, how CVI links partners to customers and suppliers, and how to open a partner in transaction BP.
What a relationship is
A relationship is a link between two business partners. It has a category, a direction, and a validity period. The most common one for sales and purchasing is the contact person relationship, category BUR001, "Has contact person".
A contact person is a business partner of category Person. The person is not stored as a field inside the company's record. The company and the person are separate partners, and the relationship connects them.
How the data is stored
Relationship headers are stored in table BUT050. Each row holds the two partner numbers (PARTNER1 and PARTNER2), the relationship category (RELTYP), and the validity dates. For a contact person relationship, PARTNER1 is the organization and PARTNER2 is the person. Table BUT051 holds the extra contact person data, such as function and department.
SELECT partner1, partner2, date_from, date_to
FROM but050
WHERE reltyp = 'BUR001'
INTO TABLE @DATA(lt_contacts)
UP TO 10 ROWS.Creating a contact person in transaction BP
- Open the organization in change mode.
- Choose the Relationships tab.
- Create a relationship and select the category Contact Person.
- Enter an existing person partner, or create a new person from the dialog.
- Maintain the function, department, and address, then save.
The contact person can use the organization's address as a workplace address. The person can also have a separate address. Contact person data such as function and department belongs to the relationship, so the same person can have different data under two companies.
Link to the classic tables
CVI also synchronizes contact person relationships. For a partner with a customer or supplier role, the contact data is written to the classic contact person table KNVK. Classic functions such as sales documents and correspondence read contact persons from there. If the contact person does not appear in a sales document, check the relationship first. Then check whether the synchronization completed.
Common errors
- Wrong direction. Creating the relationship from the person side can give the wrong partner order. Start from the organization.
- Expired validity. A relationship whose end date has passed is not synchronized as an active contact.
- Duplicate people. If you create a new person each time instead of reusing an existing one, the same individual ends up with several partner numbers. Search first.
- Missing role on the organization. The relationship exists, but nothing reaches
KNVKif the organization has no customer or supplier role.
Exercise
A sales clerk says a contact person added in transaction BP does not show up in a sales order. The relationship exists in BUT050. Name two things to check.
Show answer
Check that the relationship's validity period is still open, and check that the organization has the customer role so CVI can synchronize the contact person to the classic contact person table KNVK. Also confirm that the synchronization finished without errors.