on 2016 Mar 18 4:11 AM - last edited on 2024 Feb 04 3:33 AM by postmig_api_4
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
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);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
25 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.