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.  send large IDOC to SAP

    Posted Fri October 27, 2006 03:12 AM

    Hi All,

    is there any way i can call RFC in SAP and point to the IDOC in a folder.
    becuase sometimes i need to send larger IDOC( 35 MB ) .
    at present iam following below steps

    1)boundnode
    2)encodeSDATA
    3)TransformHieracheyTo Flat
    3)outboundRFC

    but this is causing to utlilize more JVM memory in my server .it even crashed for 35MB file.
    please suggest me in this.

    RRM:confused:


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


  • 2.  RE: send large IDOC to SAP

    Posted Fri October 27, 2006 07:28 AM

    I think you can try write the following code in a java service and then directly invoke a module by giving the necessary parameters.

    Something like this !
    /********************************/
    Values rfcParameters = new Values();

    // The parameters required for the function module that you are calling
    rfcParameters.put(“IDOC_NUMBER”,idocNumber);
    rfcParameters.put(“STATUS”, status);
    rfcParameters.put(“$rfcname”, rfcName);

    try{
    Service.doInvoke(“sap”,“invoke”,rfcParameters);
    }catch(Exception e){
    e.printStackTrace();
    }

    /********************************/

    To know what all should be passed as part of rfcParameters look into the User Guide.


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


  • 3.  RE: send large IDOC to SAP

    Posted Fri October 27, 2006 11:59 AM

    Hi,

    When I used outboundRFC I am getting this - " com.sap.mw.jco.JCO$Exception: Port ‘’ does not exist in the table of port descriptions" . Any idea how to resolve this ?

    Kishen


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


  • 4.  RE: send large IDOC to SAP

    Posted Fri October 27, 2006 02:32 PM

    in that java code you are calling RFC but how can we point the IDOC to the RFC.
    is there any way i can call RFC and point to the file in disk.

    thank you,
    RRM


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


  • 5.  RE: send large IDOC to SAP

    Posted Mon October 30, 2006 12:27 PM

    Try Puting PATHNAME with its value in the parameters and see whether its working or not.
    Something like -
    Values.put(“PATHNAME”, “Path Of the Document”);

    Kishen


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


  • 6.  RE: send large IDOC to SAP

    Posted Mon November 20, 2006 12:18 PM

    Why not split the Idoc en serveral small ones?


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


  • 7.  RE: send large IDOC to SAP

    Posted Mon November 20, 2006 03:55 PM

    How does this reduce memory usage?


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