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: 

uploading and downloading a file to and from an application server

Former Member
0 Kudos

Hai Experts,

My aim is to upload and download a file to and from an application server. Can anybody give the suggestion and the complete scenario regarding this, where the file gets stored in application server and coding regarding this.

Thak you in advance

Regards

Srinivas

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi srinivas,

refer this rfc: TOCX_PC_UPLOAD_DOWNLOAD

regards,

Dhananjaya Reddy

9 REPLIES 9

Former Member
0 Kudos

use CG3Y and CG3Z tcodes to download files from application server to presentation server and viceversa

AL11 tcode to see the files on application server

0 Kudos

Hai sreekanth,

Thank you for your response, but I need to write an RFC to upload and download a file, could u provide documents to write coding and regarding this topic. you said "from application server to presentation server", I think here application server is R/3 and presentation sever is our local system isn't it?

Former Member
0 Kudos

Hi,

it is stored in the Application Server File in AL11.

You can select the Path from there and upload and donload your file.

For Uploading

OPEN DATASET <file name and path > IN TEXT MODE ENCODING DEFAULT FOR INPUT.

Downloading

OPEN DATASET <file name and path >FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

Regards

Sandipan

0 Kudos

Hai sandipan,

Could u provide coding for this.

Former Member
0 Kudos

Hi srinivas,

refer this rfc: TOCX_PC_UPLOAD_DOWNLOAD

regards,

Dhananjaya Reddy

0 Kudos

hAI siddartha,

Thank you for ur response, but I need documentation for this RFC, could u provide this.

0 Kudos

HI

ABAP upload/download file to application server2008-04-28 15:27To Upload file to application server use T-Code: cg3z

To Download file from application server use T-Code: cg3y

There are two ways to do it through program:

1. Submit the main programs of the above T-Codes and pass the source files and destinations files via selection screen.

2. Create a program with the following steps:

To Upload file to application server

a. Upload the file from presentation server to the internal table in your program by 'GUI_UPLOAD' functional module

b. Upload that internal table to application server by:

OPEN DATASAT

TRANSFER

CLOSE DATASET

To download file to application server

a. Download the application server file data into internal table of your program by the following statements:

OPEN DATASAT

READ DATASET

CLOSE DATASET

b. Downthat internal table into presentation server by 'GUI_DOWNLOAD' functional module

and also use this link,

http://hi.baidu.com/laziows/blog/item/bc4adbf9ef74525c252df2cd.html

0 Kudos

Hai,

using this procedure which type of files we can transfer, is it possible to transfer otherthan data files.

And is there any way to transfer files without internal table.

thank you

Regards

Srinivas.

Former Member
0 Kudos

Hi,


WRITING INTO AS FROM INTERNAL TABLE:
    OPEN DATASET v_phyfil_csv FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

writing into IT from App Ser:
OPEN DATASET v_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.

Thanks,

Krishna..