Skip to Content
0

C4C Account Team: Replicate employees from SAP, which are stored as customer/account

Dec 05, 2017 at 09:45 AM

164

avatar image

Hello Community,

we have the demand to replicate partners from SAP to C4C into the account team tab of a customer.

Usually we know what to do, but in two projects we have the following case: Employees which are assigend to the customer e.g as sales employee, are stored itself as small customer / accounts because there are no person datasets or HR module.

a) Handling of employees this way seems common in many ERP systems, so is there any way to map these CUSTOMERS into the C4C account team as EMPLOYEE object?

I was thinking about a new custom field in employee in which I store the ERP ID of customer object to get an relation to the employee. But in CPI Mapping I cannot find a way to connect these. Because for KNVP data mapping only includes a rolecode (PARVW) and the number of partner (KUNN2). So according to the rolecode the mapping can find a roletype (employee, customer, contact person). But if mapping recognizes my rolecode as customers, how can I ever map into employees?

Please correct me if I'm wrong.

Here we have same question, but could'nt find an answer in there
https://archive.sap.com/discussions/thread/3829580

b) For replicating contact person relations (contact person object is assigned in partner data SAP), I just have to adapt relationship mapping and they will occur in relationship tab, right?

Many thanks & Regards,

Stefan Schmitt, FIS

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Stefan Schmitt Dec 06, 2017 at 12:02 PM
1

Ok we have found solution ourself:

We had to change mapping for BusinessPartnerReplication in CPI (Table KNVP - Fields

PartnerInternalIDTypeCode, BusinessPartnerRelationshipCatagoryCode, PartyRoleCode)

Here you can see the sales area partner data part of the incoming Payload in C4C after changing the mapping:

</PartnerFunction>
<PartnerFunction actionCode="04">
<BusinessPartnerRelationshipCatagoryCode>RG</BusinessPartnerRelationshipCatagoryCode>
<PartnerInternalID>800000</PartnerInternalID>
<DefaultIndicator>false</DefaultIndicator>
</PartnerFunction>
<PartnerFunction actionCode="04">
<BusinessPartnerRelationshipCatagoryCode>WE</BusinessPartnerRelationshipCatagoryCode>
<PartnerInternalID>800000</PartnerInternalID>
<DefaultIndicator>false</DefaultIndicator>
</PartnerFunction>
<PartnerFunction actionCode="04">
<BusinessPartnerRelationshipCatagoryCode>WE</BusinessPartnerRelationshipCatagoryCode>
<PartnerInternalID>821505</PartnerInternalID>
<DefaultIndicator>false</DefaultIndicator>
</PartnerFunction>
<PartnerFunction actionCode="04">
<BusinessPartnerRelationshipCatagoryCode>Z1</BusinessPartnerRelationshipCatagoryCode>
<PartnerInternalID>6000000292</PartnerInternalID>
<PartnerInternalIDTypeCode>927</PartnerInternalIDTypeCode>
<DefaultIndicator>false</DefaultIndicator>

</PartnerFunction>
<PartnerFunction actionCode="04">
<BusinessPartnerRelationshipCatagoryCode>ZH</BusinessPartnerRelationshipCatagoryCode>
<PartnerInternalID>821505</PartnerInternalID>
<DefaultIndicator>false</DefaultIndicator>
</PartnerFunction>
<PartnerFunction actionCode="04">
<PartyRoleCode>ZV</PartyRoleCode>
<PartnerInternalID>821079</PartnerInternalID>
<PartnerInternalIDTypeCode>3</PartnerInternalIDTypeCode>
<DefaultIndicator>false</DefaultIndicator>

</PartnerFunction>

First bold paragraph is the contact persons. These have to be mapped ionto Relations of C4C with PartnerInternalIDTypeCode = 927.

Second bold paragraph shows the employee which is stored as customer in SAP. So in mapping we defined that if partner role ZV comes in we set PartnerInternalIDTypeCode = 3. Import here is that we don't map the BusinessPartnerRelationshipCategoryCode but the PartyRoleCode so C4C wants to assign an employee. To find the right employee in C4C you have to add his SAP customer number into his external number (in Administrator -> ID Mapping -> Employee )

For your information

  • PartnerInternalIDTypeCode = empty -> customer -> C4C relation
  • PartnerInternalIDTypeCode = 927 -> contact person -> C4C relation
  • PartnerInternalIDTypeCode = 3 -> employee -> C4c account team
Share
10 |10000 characters needed characters left characters exceeded