cancel
Showing results for 
Search instead for 
Did you mean: 

Download a file from CRM WebUI to a folder in a remote server

Former Member
0 Kudos

Hi all,

I have a requirement where I have to download a file from an internal table to a folder in a remote server.

Of course, GUI_DOWLOAD wonu2019t work.

The server will be always the same, so the popup asking for the path is not going to be useful for me.

They just want it automatic when an activity is saved, so I have to place my code in the EH_ONSAVE of BT125H_TASK component without interaction more than pressing the save button.

Any idea on how to do this thru code?

Thanks in advance.

Kind regards,

Guillermo

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Ivan,

Remote servers are accesible from PC, so it can work with GUI_DOWNLOAD un SAP GUI.

Howeber, please, take into account that GUI_DOWNLOAD will NOT work in the WebUI environment. It will give an exception 6 = UNKNOWN ERROR.

That's why I am opening this thread, to find a way to do the same that GUI_DOWNLOAD does in SAP GUI, but from the WebUI.

Any other idea?

Thanks and regards,

Guillermo

0 Kudos

Hi guillermo,

So you need to use the FTP way. Have a look to the kink in my last post.

Please give points if answer helps.

Thanks,

Ivá

0 Kudos

Hi Guillermo,

It's the remote server accesible from all the pcs? If yes you can use this FM just using the

remote_server path.

If not, you can use ftp access. For this you can install an FTP server on the remote server and then use the FTP Funtion modules to store the information on the remote server.

You can have a look to this wiki:

http://wiki.sdn.sap.com/wiki/display/ABAP/WorkingwithFTP+Server

Please give points if answer helps.

Thanks,

Ivá