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.


#TechXchangePresenter
 View Only
Expand all | Collapse all

Idoc

  • 1.  Idoc

    Posted Mon March 06, 2006 02:29 PM

    Hi! All

    How to convert an xml (which is in RosattaNet format) file to IDOC.
    please help me am new to SAP integration. After that the SAP sends us an IDOC which again has to be converted back to XML.
    please help me


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards


  • 2.  RE: Idoc

    Posted Mon March 06, 2006 05:52 PM

    Please go tru the SAP Adapter userguide for details of transformation/conversion.

    Use the SAP adapter builtin IDOC core services like
    transformHierarchyToFlat (creates IDOC’s format) map RNet XML to IDOC structure and send to outboundprocess
    transormFlatToHierarchy(creates IDOC-XML format) map the structure to your canonical XML.

    HTH,
    RMG


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Idoc

    Posted Mon March 06, 2006 09:13 PM

    Just some basics for the SAP inbound/outbound implementations:

    Inbound to SAP:
    1.The xml data can be send as an input to the pub.sap.idoc;decode service.
    2.use pub.sap.transport.ALE:outboundProcess service which sends the IDOC to the respective SAP client.

    Outbound from SAP:
    1.Use the pub.sap.idoc.transformFlatToHierarchy
    2.Map the boundNode to the webMethods representation of the IDOC structure.
    3.Once you have the webMethods form of IDOC, you can manipulate with the doc.
    Note:In case of outbound documents,routing rules needs to be created and webMethods listener needs to be configured.


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 4.  RE: Idoc

    Posted Tue March 07, 2006 03:12 PM

    Narsing,

    Based on your reply i have one question regarding Inbound to SAP

    Is decode step required? or can we use like this

    Inbound to SAP:
    1.pub.sap.idoc.transformHierarchyToFlat (creates IDOC flat RFC format)
    2.use pub.sap.transport.ALE: OutboundProcess service which sends the IDOC to the respective SAP system.

    Please clarify.

    TIA,
    RMG


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: Idoc

    Posted Tue March 07, 2006 05:34 PM

    RMG,
    The steps you had mentioned can be followed.
    pub.sap.idoc.transformHierarchyToFlat accepts the boundNode as the input(webMethods document representing the IDOC).
    pub.sap.idoc:decode service accepts the xml string as the input.
    Output for both the services is the same. Correct me if i am wrong.


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards


  • 6.  RE: Idoc

    Posted Tue March 07, 2006 05:55 PM

    Thanks for the clarification,
    yes both above examples should work the same,but unless we have xmldata IDOC-SAP XML specification decode will work.But mostly i have seen using tranformHierarchyToFlat and then invoke outbound service.

    HTH,
    RMG


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 7.  RE: Idoc

    Posted Tue June 27, 2006 03:44 PM

    Hi,
    Could some one tell me whether there are any specific structures for IDOC? If so what are the names of those structures?
    And what does canonical document mean?


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards


  • 8.  RE: Idoc

    Posted Tue June 27, 2006 03:46 PM

    IDOC - medical professional who helps take care of your vision


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 9.  RE: Idoc

    Posted Tue June 27, 2006 03:54 PM

    Iam sorry. Iam learning…
    As far as I know SAP system recognizes IDOC (Intermediate documents).
    Are there any specific structure for these documents.
    IF i have a Purchaseorder flatfile or EDI and i convert it into IDOC to post it into SAP, does it have a format or a specific structure ??

    Thank you


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 10.  RE: Idoc

    Posted Tue June 27, 2006 05:48 PM

    I couldn’t resist the pun…

    IDOC - [url]http://en.wikipedia.org/wiki/Idoc[/url]

    I leave the rest to the SAP pros out there…


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards


  • 11.  RE: Idoc

    Posted Wed June 28, 2006 04:36 PM

    Stepheny,

    SAP provides many IDOC’s with predefined structures. You can extend these IDOC types to customize for your own purpose or you can create new IDOC types from scratch. For example, ORDERS05 is the IDOC type used for purchase orders. SAP transaction WE60 will allow you to view IDOC formats.


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 12.  RE: Idoc

    Posted Wed June 28, 2006 07:08 PM

    Thanx for ur reply. I wanted this answer. So many have replied me saying tht they didnt understand the Question. Thankyou


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards