cancel
Showing results for 
Search instead for 
Did you mean: 

Datahub - hybris to SAP order (partnerCode)

Former Member
0 Kudos
253

Hello all,

I am sending an order from hybris to datahub and to SAP.

I noticed that the partnerCode is empty in the datahub raw-items (/datahub-webapp/v1/raw-items/122)

Thus the partnerCode was not mapped correctly in datahub.

How do we ensure that the partnerCode is received correctly from hybris into datahub?

I am on 5.7.0.8

Accepted Solutions (1)

Accepted Solutions (1)

former_member224482
Active Contributor
0 Kudos

Look at the class de.hybris.platform.sap.orderexchange.outbound.impl.DefaultPartnerContributor, it is responsible for filling that value.

 final String b2cCustomer = b2CCustomerHelper.determineB2CCustomer(order);
 final String sapcommon_Customer = b2cCustomer != null ? b2cCustomer : order.getStore().getSAPConfiguration().getSapcommon_referenceCustomer();
 
 row.put(PartnerCsvColumns.PARTNER_CODE, sapcommon_Customer);
Former Member
0 Kudos

Many thanks for the hint.

I went through the codes and realized that my powertools custom storefront is a B2C channel. Hence it was trying to evaluate the partnerCodes as a B2C customer.

Had to update the powertools storefront into a B2B channel (https://wiki.hybris.com/display/accdoc/Installing+B2C+and+B2B+Accelerators+in+Parallel) Point 7 and Point 16

Answers (1)

Answers (1)

Former Member
0 Kudos

I went into the hmc > business process and looked at the messages

DEBUG [DefaultRawHybrisOrderBuilder]..... However i don't see partnerCode in the [DefaultRawHybrisOrderBuilder]..

What is the field that is missing in my customer in hybris? the customer was replicated from ERP though..

bikrambsinha
Participant
0 Kudos

Hi Jay,

Can you check the customer reference number mentioned under the base store configuration in HMC ?