send large IDOC to SAP

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:

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.

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

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

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

Why not split the Idoc en serveral small ones?

How does this reduce memory usage?