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

UPLOADING TO A SERVER

Former Member
0 Likes
660

i HAVE TEXT FILE ON MY DESKTOP. nOW i WANT TO UPLOAD THAT FILE ON THE SERVER. hOW i WILL DO THAT. aNYONE CAN GIVE ME CODE FOR THAT. THANKS.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
640

Hi Abhay,

This include 2 step..

1) upload file from desktop to internal table. Use function module GUI_UPLOAD to fetch data from desktop to internal table.

2) download the file from internal table to application server. below code is for downloading to app server

a) OPEN DATASET lv_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

IF sy-subrc IS INITIAL.

LOOP AT ut_file INTO lw_file.

b) TRANSFER lw_file TO lv_file.

ENDLOOP.

c) CLOSE DATASET lv_file.

MESSAGE s145(bb) WITH text-009.

ENDIF.

i HAVE TEXT FILE ON MY DESKTOP. nOW i WANT TO UPLOAD THAT FILE ON THE SERVER. hOW i WILL DO THAT. aNYONE CAN GIVE ME CODE FOR THAT. THANKS.

4 REPLIES 4
Read only

Former Member
0 Likes
641

Hi Abhay,

This include 2 step..

1) upload file from desktop to internal table. Use function module GUI_UPLOAD to fetch data from desktop to internal table.

2) download the file from internal table to application server. below code is for downloading to app server

a) OPEN DATASET lv_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

IF sy-subrc IS INITIAL.

LOOP AT ut_file INTO lw_file.

b) TRANSFER lw_file TO lv_file.

ENDLOOP.

c) CLOSE DATASET lv_file.

MESSAGE s145(bb) WITH text-009.

ENDIF.

Read only

0 Likes
640

CAN U GIVE ME THE COMPLETE CODE..

THANKS

Read only

Former Member
0 Likes
640

Hi,

Try using CG3Z transaction.

Thanks

Sandeep

Reward if helpful

Read only

Former Member
0 Likes
640

Execute the transaction CG3z.