Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FTP foreground

Former Member
0 Likes
995

Can the FTP solution that is described within this forum be run in foreground mode or does it have to be background. When I do a lcd command its pointing to my local pc and not the SAP app server where the file resides. I'm just trying to FTP a file from the App server to a non sap server.

Thanks and will reward points for any help.

Richard

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
932

u can run in foreground as well as in background...FTP works in both the sessions. In FTP u need to specify the ip address, user name, password so as that particular location file will be accessed.

Message was edited by:

Ramesh Babu Chirumamilla

Can the FTP solution that is described within this forum be run in foreground mode or does it have to be background. When I do a lcd command its pointing to my local pc and not the SAP app server where the file resides. I'm just trying to FTP a file from the App server to a non sap server.

Thanks and will reward points for any help.

Richard

7 REPLIES 7
Read only

Former Member
0 Likes
933

u can run in foreground as well as in background...FTP works in both the sessions. In FTP u need to specify the ip address, user name, password so as that particular location file will be accessed.

Message was edited by:

Ramesh Babu Chirumamilla

Read only

Former Member
0 Likes
932

As per my understanding, the requirement is to transfer file from one server to other. To do so, please proceed as below:

1. Use FM: FTP_CONNECT twice, once to connect Source server and Once to Destination Server.

2. Use FM: FTP_COMMAND with command: put <source dir/file> <dest dir/file>.

3. Use FM: FTP_DISCONNECT to close the connections.

Hope this helps.

Manish

Read only

0 Likes
932

Nice Manish

Just a copy paste from this link:

:):):)

Regards

Eswar

Read only

0 Likes
932

Does anyone know why its pointing to my local SAP WorkDIR as the ftp source and not the app server. Thats why I asked if this needs to be run in background.

Also, I don't have 2 distinct servers to connect to. My program is already running on the SAP App server.

Does anyone have any actual working examples. All the examples posted just show connecting and doing a FTP command.

Thanks

Read only

0 Likes
932

Hi Richard

Though we are running in foreground, i just know that we need to connect to both servers to execute the command.

This will be useful even when the servers use LOAD BALANCING concept. Suppose the application server has a group of servers, the request can execute in a particular server so using the above method we can point to the right server and execute the commands.

Kind Regards

Eswar

Message was edited by:

Eswar Rao Boddeti

Read only

Former Member
0 Likes
932

Hi,

Programs : <b>RSFTP010, RSFTP020, RSFTP030</b>.

Among the three RSFTP020 has all the FTP paramaters as input and

is more user friendly.

Input paramaters and their use is

User

Password

Host

Command 1 lcd

Command 2 cd

Command 3 put

Destination SAPFTP

Regards

Sudheer

Read only

0 Likes
932

I want to FTP from the SAP app. server to a foreign server. Whenever I do a lcd it points to my SAP WORKDIR on my local PC.