Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Upload and Download file through RFC called by java

Former Member
0 Kudos

We are trying to download/upload file through rfc function called by java(JCO),In the rfc function,we use WS_DOWNLOAD,but it does not work.

Any one know about this,Please help ,thanks very much.

Message was edited by: gw gw

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi gw,

This question looks a little confusing to me.

WS_DOWNLOAD is used to download files from SAP to the presentation server (your PC). It will not work through RFC.

BUT, also if you want to access a function module via RFC is must be RFC enabled (as Anand pointed out).

AND WS_DOWNLOAD uses a PUSH approach. It pushes a file to the PC from ABAP. So even if the two points above weren't a problem it still would not be suitable for what you are doing.

Perhaps you could explain a little what you are trying to achieve.

Cheers,

Brad

6 REPLIES 6

Former Member
0 Kudos

Hi,

If I'm not mistaken, the Function Module that you use should be remote-enabled.

Regards,

anand Mandalika.

Former Member
0 Kudos

Hi gw,

This question looks a little confusing to me.

WS_DOWNLOAD is used to download files from SAP to the presentation server (your PC). It will not work through RFC.

BUT, also if you want to access a function module via RFC is must be RFC enabled (as Anand pointed out).

AND WS_DOWNLOAD uses a PUSH approach. It pushes a file to the PC from ABAP. So even if the two points above weren't a problem it still would not be suitable for what you are doing.

Perhaps you could explain a little what you are trying to achieve.

Cheers,

Brad

0 Kudos

And..

As java is doing the job (uploading/downloading files from presentation server), it dosent need to call a SAP RFC function thru JCO, it has its own file handling classes.

Regards

Raja

Former Member
0 Kudos

Thanks all.

As Raja said, We will handle the file by java class diretly.

0 Kudos

Can you close the thread and mark it as answered.

Regards

Raja

0 Kudos

Can you please close this thread (mark it as answered).

It helps other people responding to posts.

Cheers,

Brad