IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  How do I seperate a doc into multiple files?

    Posted 02/10/11 05:12 PM

    Hi,

    I have a situation where I will be receiving an IDOC that has multiple files in it. Each file is seperated by EDI_DC. How can I loop through each IDOC, then publish each individual file?

    thanks


    #webMethods
    #edi
    #Integration-Server-and-ESB


  • 2.  RE: How do I seperate a doc into multiple files?

    Posted 02/10/11 05:24 PM

    You cannot break each individual IDOC automatically…Basically you have to loop thru IDOC and create a temp_IDOC document (with each EDI_DC40 init) and with in the loop publish it and drop the temp IDOC.

    Another option would be you have to map each iteration of to target document (Canonical/EDI/XML depends on your requirement) and publish the canonical downstream etc…

    HTH,
    RMG


    #webMethods
    #Integration-Server-and-ESB
    #edi


  • 3.  RE: How do I seperate a doc into multiple files?

    Posted 02/10/11 05:30 PM

    Thanks for your response. But my question then is how can I distinguish within the loop? How do I tell the loop when to begin and end?


    #Integration-Server-and-ESB
    #webMethods
    #edi


  • 4.  RE: How do I seperate a doc into multiple files?

    Posted 02/10/11 05:55 PM

    Basically in your custom subscribed service,you have to loop on /IDOC and map (one to one of each each segment/fields including EDI_DC) to a temp document called (extract_singleIDOC) and publish it at that moment and drop the temp and it continue next iterations which will perform same above steps and once all iterations done it will end the loop.So make sure you have all the individual publishes happened.

    Sorry If I misunderstood your question above:

    HTH,
    RMG


    #webMethods
    #edi
    #Integration-Server-and-ESB


  • 5.  RE: How do I seperate a doc into multiple files?

    Posted 02/11/11 03:11 PM

    The thing is, we receive the document. In that document there are multiple records. Each individual record is seperated by a line that starts with EDI_DC. How can I seperate each record by this line?

    I apologize for the ambiguity of my question before.

    Thank you!


    #edi
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: How do I seperate a doc into multiple files?

    Posted 02/11/11 04:13 PM

    Are you receiving raw idoc file from SAP to a folder or ALE notification mechanism?

    Basically you should first parse the receiving IDOC (subscibed in the subscribed service:

    pub.sap.idoc:iDocToDocument and the document will have the IDOC list of documents.Make sense?

    HTH,
    RMG


    #webMethods
    #edi
    #Integration-Server-and-ESB