cancel
Showing results for 
Search instead for 
Did you mean: 

RawCustomer not getting created

Former Member
0 Kudos

Hi Team,

I'm trying to integrate SAP with Hybris Datahub (using hybris 5.4). Able to receive the DEBMAS IDOC to datahub successfully.

However, I'm getting the below issue while IDOC is getting processed. RawCustomer is not getting created. Can someone please help?

2015-03-18 15:11:30,281 [DEBUG] [c.h.d.s.m.IdocToRawModelMappingService] DigesterRules for com.hybris.datahub.sapcustomer.Debmas07ToRawCustomerMappingService : [com.hybris.datahub.sapcustomer.Debmas07RawCustomerDigesterRule@1cdd3bf6]

2015-03-18 15:11:30,282 [DEBUG] [c.h.d.s.m.DigesterRule] New Segment found: Namespace=, Name=E1KNA1M

2015-03-18 15:11:30,283 [DEBUG] [c.h.d.s.m.DigesterRule] New Segment found: Namespace=, Name=E1KNA11

2015-03-18 15:11:30,283 [DEBUG] [c.h.d.s.m.DigesterRule] Segment E1KNA11 removed.

2015-03-18 15:11:30,283 [DEBUG] [c.h.d.s.m.DigesterRule] New Segment found: Namespace=, Name=E1KNVVM

2015-03-18 15:11:30,283 [DEBUG] [c.h.d.s.m.DigesterRule] Segment E1KNVVM removed.

2015-03-18 15:11:30,283 [DEBUG] [c.h.d.s.m.DigesterRule] S*egment E1KNA1M removed.*

2015-03-18 15:11:30,283 [DEBUG] [c.h.d.s.m.DigesterRule] RawFragmentDataKeyNameList: [E1KNA1M-KUNNR]

2015-03-18 15:11:30,283 [DEBUG] [c.h.d.s.m.DigesterRule] RawFragmentDataKeysValueMap: {}

Number of rows in RawModel: 0

2015-03-18 15:11:30,283 [INFO] [c.h.d.f.i.DefaultRawFragmentFacade] Loading raw fragments data: 0

It seems like the segments are getting ignored and removed due to validations. Any help?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

It seems like sapcustomer extension loaded with error.

[ERROR] [c.h.d.e.l.i.DefaultExtensionLoaderService] Error unmarshalling extension configuration file sapcustomer-datahub-extension.xml

I was using hybris 5.4.0.1. Now I copied the sapcustomer jar from Hybris 5.4, it created the Rawcustomer attributes now.

former_member224482
Active Contributor
0 Kudos

Here is a few URLs to check in sequence :

  1. Verify RawCustomer exists : http://localhost:8080/datahub-webapp/v1/item-classes/raw/item-types/

  2. Verify RawCustomer has many attributes : http://localhost:8080/datahub-webapp/v1/item-classes/raw/item-types/RawCustomer/attributes

  3. Verify RawCustomer & status in the pool populated by ECC : http://localhost:8080/datahub-webapp/v1/pools/SAPCUSTOMER_INBOUND_POOL/items/RawCustomer.xml

  4. Verify CanonicalCustomer after composition : http://localhost:8080/datahub-webapp/v1/pools/SAPCUSTOMER_INBOUND_POOL/items/CanonicalCustomer.xml

From the information above, #2 would have no attributes. This means that the sapcustomer extension loaded with errors and was ignored. It is most likely missing mandatory properties from the local.properties. The missing properties should be found in the tomcat log as an error.

Former Member
0 Kudos

Hi Robin,

Thanks. It seems like sapcustomer extension loaded with error.

[ERROR] [c.h.d.e.l.i.DefaultExtensionLoaderService] Error unmarshalling extension configuration file sapcustomer-datahub-extension.xml

I was using hybris 5.4.0.1. Now I copied the sapcustomer jar from Hybris 5.4, it created the Rawcustomer attributes now.

Now in the 3th step (Verify RawCustomer & status in the pool populated by ECC). RawCustomer got created, but always showing the status as 'PENDING' and CononicalCustomer is not created. Any possible issues?

former_member224482
Active Contributor
0 Kudos

There is no issue here. Any raw data will be in status pending until a composition phase is triggered. Please read the Data Hub status wiki : Item Statuses and Lifecycle

Former Member
0 Kudos

Thanks. I have missed to specify autocompose properties for datahub.

Any reason why datahub always expects customer account group to be 'DEBI' ? Is it a standard account group in SAP?

former_member224482
Active Contributor
0 Kudos

I looked on the documentation and the reason is not specified : https://wiki.hybris.com/display/release5/sapidocintegration+Data+Hub+Extension section "Map IDocs with Type = "DEBMAS07" with Different KTOKD"

former_member224482
Active Contributor
0 Kudos

Is the account group(KTOKD) of the customer(DEBMAS) either "DEBI" or "0170" ? All other account groups will result into having the DEBMAS IDOC ignored.

Could you provide a sample xml of the DEBMAS IDOC ?

Former Member
0 Kudos

Hi Robin,

Thanks for replying.

We have tried with the 'DEBI' account group as well, but still same issue.

Any reason why datahub always expects account group to be 'DEBI' ?

Regards, Karthick G

Former Member
0 Kudos

Here is the sample IDOC

 <IDOC BEGIN="1">
     <EDI_DC40 SEGMENT="1">
         <TABNAM>EDI_DC40</TABNAM>
         <MANDT>..</MANDT>
         <DOCNUM>...</DOCNUM>
         <DOCREL>702</DOCREL>
         <STATUS>30</STATUS>
         <DIRECT>1</DIRECT>
         <OUTMOD>2</OUTMOD>
         <IDOCTYP>DEBMAS07</IDOCTYP>
         <MESTYP>DEBMAS</MESTYP>
         <SNDPOR>..</SNDPOR>
         <SNDPRT>..</SNDPRT>
         <SNDPRN>..</SNDPRN>
         <RCVPOR>..</RCVPOR>
         <RCVPRT>..</RCVPRT>
         <RCVPRN>..</RCVPRN>
         <CREDAT>20150318</CREDAT>
         <CRETIM>105857</CRETIM>
         <SERIAL>..</SERIAL>
     </EDI_DC40>
     <E1KNA1M SEGMENT="1">
         <MSGFN>004</MSGFN>
         <KUNNR>0000199996</KUNNR>
         <ANRED>Mr.</ANRED>
         ..
         ..
         <KTOKD>DEBI</KTOKD>
         <LAND1>..</LAND1>
         <NAME1>Test Hybris</NAME1>
         <ORT01>Test City</ORT01>
         <SORTL>TEST234567</SORTL>
         <SPRAS>D</SPRAS>
         ..
         <SPRAS_ISO>DE</SPRAS_ISO>
         <E1KNA11 SEGMENT="1"></E1KNA11>
     </E1KNA1M>
 </IDOC>