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.  Business connector

    Posted 07/31/03 11:56 PM

    Hello,
    I have to poll xml file from a network and invoke into business
    connector before I send it to SAP.I use getFile service
    to retrieve the file.But couldn’t get the service name to move
    the file to SAP.Could you suggest one.
    Thanks
    BSC


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


  • 2.  RE: Business connector

    Posted 08/01/03 04:21 PM

    BSC,

    I am not sure what you are asking. What type of file is this? What will SAP do with this file once it gets it? Do your need to send the physical file to SAP (FTP), trigger a RFC, or send it via ALE as an IDOC?

    If you provide more details, we could better help you.

    Thanks,


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


  • 3.  RE: Business connector

    Posted 08/01/03 10:29 PM

    Hi Andrew,
    Type of file - XML
    SAP RFC should be triggered once the file is taken from network.
    Also the file from network will be moved to Archive once it is passed to SAP.
    I am looking for these services so that I can schedule them.


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


  • 4.  RE: Business connector

    Posted 08/02/03 12:14 AM

    BSC,

    This is probably an oversimplified list of steps that you would need to handle getting the XML file contents to SAP.
    In general it is important to note that the file is never physically sent to SAP and everything is done in-memory. You would probably use FTP or other customized Java code to work with the physical file (moving to Archive, deleting etc.) after processing the contents in SAP.

    getFile - Retrieves the file from the file system in to BC as bytes.
    pub.string:bytesToString - Converts bytes to a string.
    stringToDocument - Parses the text string representing an XML document into a Document object (node).
    pub.web:documentToRecord - Converts a parsed XML document(node) to an IData object(ordered key/value pairs representation of the XML in BC).
    Map - Now you have elements and values of the XML data in the pipeline and you need to map the values from the Idata object to the inputs of the RFC(which you get from the “Function Signature”) that you want to call.
    Invoke RFC - Call the RFC using the “Function Signature” that was created. See 2nd Note below on how to do this.

    Notes:
    -I recommend you use the error handling techniques well described in the article [url=“wmusers.com”]wmusers.com. You would put the list of services above in the try sequence.

    -In order to trigger a RFC on SAP, you will need a “Function Signature” which you generate in the Administrator part of BC. Follow chapter 4 of the SAP adapter documentation as there are several steps to this. You’ll need a SAP alias and an outbound map of the RFC you intend to call in order to trigger an RFC on SAP.

    Good Luck.


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


  • 5.  RE: Business connector

    Posted 08/02/03 02:25 AM

    Thanks very much Andrew.I will let you know how it goes!


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


  • 6.  RE: Business connector

    Posted 11/21/03 02:51 PM

    I would like to call RFC or BAPI on SAP R/3 4.6.
    I don’t understand how to call that in SAP BC Developper.
    There are no samples.
    The program must be in C language on HPUX11i.
    Do you have the same that ?


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