Application Development and Automation 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: 
Read only

Upload and Download file through RFC called by java

Former Member
0 Likes
1,848

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
Read only

Former Member
0 Likes
1,226

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
Read only

Former Member
0 Likes
1,226

Hi,

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

Regards,

anand Mandalika.

Read only

Former Member
0 Likes
1,227

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

Read only

0 Likes
1,226

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

Read only

Former Member
0 Likes
1,226

Thanks all.

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

Read only

0 Likes
1,226

Can you close the thread and mark it as answered.

Regards

Raja

Read only

0 Likes
1,226

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

It helps other people responding to posts.

Cheers,

Brad