Professional Documents
Culture Documents
How To Assign Contact Person To Business Partner in SAP S4HANA
How To Assign Contact Person To Business Partner in SAP S4HANA
S/4HANA
A contact person is maintained in S/4 Hana under t-code BP. The relationship
between Customer/Vendor and Contact person is maintained under BP
subheader 'Relationships'.
Please follow the steps below to create a contact person and assign it to a
customer/vendor in S/4 HANA:
Now please save this relationship. You will see the contact person BP will be
synchronized to contact person via CVI.
In order to check the contact person number in table KNVK after CVI go to t-
code MDS_LINKS and search for 'contact person' number mapped
to 'Business partner' number.
Now after getting contact person number you can use it in other applications
such as purchasing partner function etc.
------------------------------------********************-----------------------------------*********************-----------------
Introduction:
I work on the LO-MD-BP component for SAP S/4HANA Cloud and I have had several customers
queries about how to maintain the Sales Partner Function CP Contact Person in Customer Master
Data and how to determine the Contact Person ID via the CDS Views in SAP S/4HANA Cloud.
To create a contact person which can be used as Partner Function you need to follow the
following steps:
To see the KNVP number, when adding the Contact Person as a CP Partner function press the F4
help button in the field for inputting the contact person number.
1.Open the customer BP . Lets say 1000067.
2.Select the BP role 'Customer'.
3.Go to 'Sales and Distribution' section.
4.Under the 'Partner Functions' tab, enter the partner function 'CP', then click on the
search help of 'Number' field.
5. Click on find with Customer 1000067, all the customer contacts will be displayed in the
result. Here you can check that the new customer contact created from for e.g.:
5000078 has the internal number '0000000051'.
So you can enter the ID 51 for partner function CP. This is the contact person ID linked to contact
BP ID 5000078.
This information is also mentioned in SAP Knowledge Base Article 2576618 - How to use a
contact person in SAP S/4HANA.
How to Determine Contact Person ID and relationship between Contact Person ID and
Contact BP ID via CDS Views?
As S/4HANA cloud migration does not support on assignment of contact person to customer BP, it
is suggested to do mass maintenance after BP relationship is created by migration object
Customer.
Therefore, it is required to get the contact person ID with its contact BP ID after Migration Object
Customer is imported and before mass maintenance.
To achieve this and determine the relationship between Contact Person ID and Contact BP ID, a
custom CDS View must be created based on released CDS Views.
1. First make use of I_BUSINESSPARTNER CDS View to determine all Customers in the
System. The equivalent DB Query would be Select BUT100.PARTNER from BUT100
where BUT100.RLTYP = ‘FLCU01’ as Customer BP ID.
The below URI will not be helpful in this scenario as Partner Function information is stored in table
KNVP whereas Contact Person information is stored in KNVK.
sap/opu/odata/sap/API_BUSINESS_PARTNER/A_CustomerSalesArea(Customer='1816',SalesOrga
nization='1710',DistributionChannel='10',Division='00')/to_PartnerFunction
"RelationshipNumber" : "506",
"BusinessPartnerCompany" : "1000067",
"BusinessPartnerPerson" : "50000078",
"ValidityEndDate" : "\/Date(253402214400000)\/",
"ValidityStartDate" : "\/Date(1559606400000)\/",
"IsStandardRelationship" : false,
"RelationshipCategory" : "BUR001".
However, Business Partner Person (Contact Person BP ID) cannot be passed via API or maintained manually in
App Maintain Business Partner as system expects the Contact Person ID.
Therefore, we can conclude that we can determine Contact Person ID either by using F4 help in App Maintain
Business Partner or via CDS Views.