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.

 View Only
  • 1.  SAP adapter outbound transactions

    Posted Mon July 21, 2003 08:58 PM

    Regarding the Transactions under the routing tab,
    IDOCs that are sent from the SAP R/3 system to wM gets logged under the transactions tab under routing in the server admin.

    But, when I map a XML document to an IDOC and send it to the SAP R/3 server
    via ALE R/3 transport, I don’t see the transaction in the server GUI.The IDOC goes to the SAP system successfully thru the ALE.OutboundProcess service.

    Are the outbound IDOCS (outbound from wM) transactions routed through partner manager?
    If NO, is there a way to route them thru the Partner manager?


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


  • 2.  RE: SAP adapter outbound transactions

    Posted Tue July 22, 2003 11:03 AM

    Bhaskar,

    It is my undersatnding that the ALE.OutboundProcess does not route the transaction through Partner Manager but instead sends the IDOC directly to SAP.

    If you need to route it the partner manager, you could use “wm.PartnerMgr.gateway.runtime:InboundProcess” service. This will cause your IDOC to be logged into the partner manager. You will still need a routing rule created: sender, receiver and message Type parameters be sent, and I am guessing the partner manager will then “route” your message back to the original flow that you wrote earlier to actually pass the IDOC into SAP. The transaction is logged but will be slowed down by these additional steps.

    Hope this helps,


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


  • 3.  RE: SAP adapter outbound transactions

    Posted Tue July 22, 2003 01:03 PM

    Andrew,

    Thanks for your response.

    I did try the other method to route through the partner manager, the IDOC gets sent to the SAP system.

    But, when I try to view the transaction as xml under the routing rules tab in the server admin
    the following error gets generated.

    " java.lang.ArrayStoreException

    at pub.sap.idoc.decodeSDATA(idoc.java(Compiled Code)) "

    View as html and Values work fine.

    I am not sure if this error is caused because of forcefully trying to route it through the Partner Manager.

    Thanx!!!
    Bhaskar


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


  • 4.  RE: SAP adapter outbound transactions

    Posted Tue July 22, 2003 03:52 PM

    Bhaskar,

    I haven’t looked at our IDOC flows in while but I recall having to use “pub.sap.idoc:encodeSDATA” after the pub.sap.idoc:transformHierarchyToFlat to take care of the SDATA part of the IDOC. This may help you store the transaction correctly in the MessageStore and subsequently view the transaction as XML.

    I am not too sure about this but it’s worth a try.

    HTH.


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


  • 5.  RE: SAP adapter outbound transactions

    Posted Wed July 23, 2003 09:00 AM

    Andrew,

    Actually I have tried using the two flows below to route the IDOC through the Partner manager.

    1)pub.sap.idoc:transformHierarchyToFlat
    pub.sap.idoc:encodeSDATA
    pub.sap.transport.ALE:InboundProcess

    2)pub.sap.idoc:transformHierarchyToFlat
    pub.sap.idoc:encodeSDATA
    wm.PartnerMgr.gateway.runtime:InboundProcess

    But while viewing the transaction as xml, it is failing(array exception) in the service sap.idoc:view and the decodeSDATA step under the xml branch.

    I am not sure if I am missing something here.

    Thanks…


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


  • 6.  RE: SAP adapter outbound transactions

    Posted Thu July 24, 2003 09:52 AM

    Bhaskar,

    You should report this issue with webMethods support. They should be able to provide additional help to you.

    Good Luck.


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


  • 7.  RE: SAP adapter outbound transactions

    Posted Wed September 08, 2004 08:10 AM

    Hi,

    I have configured SAP adapter for outbound IDocs, and am quite sucessful,
    i am now stuck at sending IDocs to SAP, can some one tell me how to do it from
    webMethods, in case there are any standard set of steps to be followed, i would
    appreciate.
    Thanks in Advance
    Kris


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