Skip to Content
author's profile photo Former Member
Former Member

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

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 .

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Aug 11, 2016 at 07:14 PM
    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2016 at 09:41 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.