on 07-10-2015 9:14 AM - last edited on 02-04-2024 5:31 AM by postmig_api_4
Hi Expert,
I am trying ot send B2B Unit and B2B customer from SAP ECC to Hybris. I am following below link for send B2B unit and B2B customer.
https://wiki.hybris.com/display/release5/sapcustomer+Data+Hub+Extension https://wiki.hybris.com/display/release5/Replicating+Customers+and+Contact+Persons+from+SAP+ERP+to+h... https://wiki.hybris.com/pages/viewpage.action?title=sapidocintegration+Data+Hub+Extension&spaceKey=r...
I have seen the IDOC in log file with require fileds and values (Message Type: DEBMAS and accountid(KTOKD)=DEBI)
But observed no exception and progress observed in log file in CompositionCompletedEvent. I have attached the log file from standalone datahub server.
Please suggest.
Many Thanks in advance, nvijay
I am working with sapcustomer-5.5.1.0-RC7.d there I find:
<attribute>
<name>sessionLanguage</name>
<transformationExpression>languageIsoCode.toLowerCase()</transformationExpression>
<exportCode>sessionLanguage(Language.isocode)</exportCode>
<mandatoryInHeader>false</mandatoryInHeader>
</attribute>
without the null-check. Not sure, but I think the 5.5.1.0-RC7 is the latest public version?
So it seems the attribute E1ADR3MAS-E1BPAD3VL-LANGUP_ISO is null in the input data.
There are three ways to fix this:
wait for 5.6 which is due to release very soon
make sure the IDoc has this attribute populated
override the target system mapping for HybrisCoreB2BCustomer. It's a bit tricky but doable.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Which version are you using ?
It seems that the null check ' ? ' has been added afterward.
<name>sessionLanguage</name>
<transformationExpression>languageIsoCode?.toLowerCase()</transformationExpression>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It doesn't look like a publication to hybris was initiated, only the composition was done.
Try calling
http://localhost:8080/datahub-webapp/v1/pools/SAPCUSTOMER_INBOUND_POOL/publications
with message body
{"poolName":"SAPCUSTOMER_INBOUND_POOL",
"targetSystemPublications":[{"targetSystemName":"HybrisCore"}]}
The you should also see activity (impex being performed) on the console of the hybris instance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try another call with: {"poolName":"SAPCUSTOMER_INBOUND_POOL", "targetSystemPublications":[{"targetSystemName":"HybrisCore"}]}
B2BCustomer and B2BUnit are mapped to 2 different targetsystems.
Btw, you find the target systems if you look at the sapcustomer datahub extension with a decompiler, sapcustomer-datahub-extension.xml
It is not working with HybrisCore target system also but observered one exception in HybrisCoreB2BCustomer target system - 2015-07-10 16:47:55,559 [DEBUG] [c.h.d.s.i.PublicationActionHandler] Creating Target Items for type: 'B2BCustomer', and Target System: HybrisCoreB2BCustomer 2015-07-10 16:47:55,569 [WARN] [c.h.d.s.s.i.SpelExpressionProcessor] Could not transform by expression languageIsoCode.toLowerCase() SpelEvaluationException: EL1011E:(pos 16): Method call: Attempted to call method toLowerCase() on null context object Do you have more information on above exception. Many Thanks Nitin
I have added the canonicalcontact.xml file in zip link text
User | Count |
---|---|
7 | |
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.