cancel
Showing results for 
Search instead for 
Did you mean: 

How to download file from XI directories?

Former Member
0 Kudos

In Al11, how can we download the file to local and upload to server?

Any t-code for this?

Many thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

uploading file to server....from local machine to application server

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/uploading%2bfiles%2bto%2bsap%2bservers%2...

Former Member
0 Kudos

How about download file to local machine, any ideas?

former_member192295
Active Contributor
0 Kudos

Hi,

Follow blow steps

1. Select file under directory (dbl click on directory, after that files will be display)

2. Goto List-->Export--> choose file download type (which format u required)

3. After that one dialog box will come give path, the file will be download in given path

Former Member
0 Kudos

This is quite useful to upload file to server.

Former Member
0 Kudos

Hi.

there is a free tool called WINSCP, install that and add the server details to it, you can do all unix and windows OS commands with this tool.

Regards,

Karna...

Answers (4)

Answers (4)

former_member193376
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi

please refer to the link below:

https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/uploading%252bfiles%252bto%252bsap%252bs...

This tcode:SXDA_TOOLS can be used to upload and download.

Former Member
0 Kudos

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

Former Member
0 Kudos

In XI, we can not use CG3Z and CG3Y to upload and download file. While in ECC, we can use this two t-code.

I tried to use "ARCHIVFILE_CLIENT_TO_SERVER" function module, but return error the source file can not open.

Edited by: lin tao on Feb 10, 2009 4:31 PM

Former Member
0 Kudos

Hi Lin,

"I tried to use "ARCHIVFILE_CLIENT_TO_SERVER" function module, but return error the source file can not open."

The error has been thrown, becoz the target directory that you have given in the path was not created, or may be becoz of the unauthorised permissions to that directory.

Former Member
0 Kudos

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.