2007 May 25 8:10 AM
Hi All,
I urgently require a program, which can upload or download text file from application Server.
Please help me through code.
Thnks
Rohit
2007 May 25 8:13 AM
Hi
Use
<b>OPEN DATASET v_file_listings FOR INPUT IN TEXT MODE ENCODING NON-UNICODE. "Opening the files
READ DATASET v_file_listings INTO single_line. "Reading the content of file into line
CLOSE DATASET v_file_listings. "Closing the files</b>
Or
Use Tcodes : <b>CG3Y/CG3Z</b>
Regards,
Sree
Hi All,
I urgently require a program, which can upload or download text file from application Server.
Please help me through code.
Thnks
Rohit
2007 May 25 8:11 AM
Check T-code
CG3Y - to download file from application server.
CG3Z - to upload file from presentation server to application server.
Regards,
Santosh
2007 May 25 8:13 AM
Hi
Use
<b>OPEN DATASET v_file_listings FOR INPUT IN TEXT MODE ENCODING NON-UNICODE. "Opening the files
READ DATASET v_file_listings INTO single_line. "Reading the content of file into line
CLOSE DATASET v_file_listings. "Closing the files</b>
Or
Use Tcodes : <b>CG3Y/CG3Z</b>
Regards,
Sree
2007 May 25 8:14 AM
2007 May 25 8:20 AM
Hi,
=> You can download/upload data from Application server using the statements <i><b>OPEN_DATASET & CLOSE_DATASET.</b></i>
DATA FNAME(60) VALUE 'myfile'.
OPEN DATASET FNAME FOR INPUT.
IF SY-SUBRC = 0.
WRITE / 'File opened'.
.....
ELSE.
WRITE / 'File not found'.
ENDIF.This example opens the file "myfile" for reading. From here, the file is open in read access mode as per your requirement. Similarly, you can open it for WRITE mode.
=> Use the transaction <i><b>CG3Y for downloading & CG3Z for uploading</b></i> the file from application server. This can also be used in programming via <i><b>CALL TRANSACTION</b></i> statement.
CALL TRANSACTION 'CG3Z' AND SKIP FIRST SCREEN
USING LT_TABLE.This sort out your query.
PS Plz close the thread by rewarding each reply and marking the thread Sovled..
2007 May 25 8:30 AM
HI,
CALL FUNCTION 'GUI_UPLOAD'
CALL FUNCTION 'GUI_DOWNLOAD'
THAT IS ALL
2011 Aug 02 12:43 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |