on 02-10-2009 6:42 AM
In Al11, how can we download the file to local and upload to server?
Any t-code for this?
Many thanks!
uploading file to server....from local machine to application server
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Go to se38 in pi and create a report
THIS IS FOR DOWNLOADING THE FILE
REPORT z_download_file.
DATA: v_file TYPE string.
TYPES: BEGIN OF st_data,
data TYPE string,
END OF st_data.
DATA : it_data TYPE STANDARD TABLE OF st_data,
wa_data LIKE LINE OF it_data.
PARAMETERS: p_input TYPE string DEFAULT 'YOUR AL11 PATH',
p_output TYPE string DEFAULT 'YOUR DESKTOP PATH'.
START-OF-SELECTION.
v_file = p_output.
CONDENSE v_file.
OPEN DATASET p_input IN TEXT MODE FOR INPUT ENCODING DEFAULT.
IF sy-subrc = 0.
DO.
READ DATASET p_input INTO wa_data-data.
IF sy-subrc = 0.
APPEND wa_data TO it_data.
ELSE.
EXIT.
ENDIF.
ENDDO.
ENDIF.
CLOSE DATASET p_input.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = v_file
IMPORTING
FILELENGTH =
TABLES
data_tab = it_data
.
-
FOR UPLOADING CREATE ANOTHER REPORT
REPORT Z_UPLOAD_FILE.
data: v_file type STRING.
data: begin of it_data occurs 0,
data type string,
end of it_data.
parameters: p_input type string default 'YOUR DESKTOP PATH',
p_output type string default 'YOUR AL11 PATH'.
start-of-selection.
v_file = p_input.
condense v_file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = v_file
TABLES
DATA_TAB = it_data
.
end-of-selection.
open dataset p_output in text mode for output encoding default.
if sy-subrc = 0.
loop at it_data.
transfer it_data-data to p_output.
endloop.
close dataset p_output.
else.
exit.
endif.
This will work,
make sure you enter your correct paths
Thanks
SG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello lin,
can you explain how solved the problem?, i need copy file from server to my local pc and i don't know how do it because the transactio CG3Y don't exist in XI..
thanks very much.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
please refer to the link below:
This tcode:SXDA_TOOLS can be used to upload and download.
Hi! Lin,
In AL11 Tcode you can view the files and directories belonging to various Application Server and suppose if you want to upload any file u need to go to Tcode: CG3Zand there you can see all the files which u have seen in the AL11 tcode.
Suppose if you want to send any file from Local desktop to XI application Server directory go to AL11 first view the File / directory is already present or not if not you can go the CG3Ztcode and there you can upload the file in that particualr directory.
Note:: this CG3Z process wil be done mainly on latest version or latest updated service packs.
Also If you r able to see the file in application server(using transaction AL11), you can download that file using transaction CG3Z as Michal told by specifying the path.
But inorder to do this in XI in File Sender Communication channel you need to select option NFS and If its in NFS(Windows file system), you can directly access that file using ip address of XI server(Take the help from basis to get the access)
In case if you have the authorization to login the application server and if it is maintained as Unix/Linux system, you can download the file using ftp and mget command.
ftp <Hostname>
then it will ask for User Id and Pwd.
then it will get logged-in.
Using 'cd' command, u can go the directory u want.
then by using 'mget/ get <filename> you can get the file.
I think now your issue is resolved.
Regards:
Amar Srinivas ELi
Edited by: Amar Srinivas Eli on Feb 10, 2009 9:34 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
For file download.
Go to the file directory using al11 transaction. Open the file details window, go to List->save/send->File, save as unconverted format(.dat, .txt, etc..) to your local drive.
To upload the file .
Use se37 transaction. select "ARCHIVFILE_CLIENT_TO_SERVER" function module. Then, give your source and target directories with uppercase/lowercase option being checked.
Regards,
Swetha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.