11-21-2008 6:54 AM
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
11-21-2008 10:00 AM
Hi srinivas,
refer this rfc: TOCX_PC_UPLOAD_DOWNLOAD
regards,
Dhananjaya Reddy
11-21-2008 6:57 AM
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
11-21-2008 9:41 AM
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?
11-21-2008 7:01 AM
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
11-21-2008 9:43 AM
11-21-2008 10:00 AM
Hi srinivas,
refer this rfc: TOCX_PC_UPLOAD_DOWNLOAD
regards,
Dhananjaya Reddy
11-21-2008 10:07 AM
hAI siddartha,
Thank you for ur response, but I need documentation for this RFC, could u provide this.
11-21-2008 10:14 AM
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
11-24-2008 5:38 AM
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.
11-24-2008 3:56 AM
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..