Showing results for 
Search instead for 
Did you mean: 

Datahub - hybris to SAP order (partnerCode)

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Active Contributor
0 Kudos

Look at the class, 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 ( 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..

0 Kudos

Hi Jay,

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