cancel
Showing results for 
Search instead for 
Did you mean: 

Datahub : How can i write complete custom Product IDOC and process it to hybris

Former Member
0 Kudos

Hi expert i have a requirement to process Master Product information to hybris via Data hub . But product information will not be coming from SAP ECC or ERP. we have another third system.

How do i write custom idoc and and process it to raw ,canonical and target

Could somebody please tell me what are the steps required for handling above scenario .

Accepted Solutions (1)

Accepted Solutions (1)

former_member224482
Active Contributor
0 Kudos
  1. Create an new extension.

  2. Create a bean class method using annotations : @Component, @Path, @POST, @Consumesfrom package javax.ws.rs. This is too process web requests. In fact, you are creating a spring http end point to receive your POST payload. This new @Path suffix will be concatenated to the root /datahub-webapp/v1/.

  3. Inject the channel "rawFragmentDataInputChannel" to your bean as class MessageChannel.

  4. Send List<RawFragmentData>as payload to the message channel so that Data Hub process those line as RawItems.

  5. Implement your code to translate your payload into a List<RawFragmentData>.

  6. Implement the Raw, Canonical, Target extensions using The Extension Archetype.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Farid,

The format of data you will be receiving from Non-SAP system will not be IDoc. IDoc inbound adapter is required only in case of SAP master data system. In this case, you will have to use custom inbound adapter.

Thanks, Arvind

Former Member
0 Kudos

Thanks for your reply Arvind. Could you please tell me what all the steps needed in processing if i write custom inbound adapter and process it to Hybris .