cancel
Showing results for 
Search instead for 
Did you mean: 

Error durig FTP Command Execution

former_member182034
Active Contributor
0 Kudos

Hi All,

I run the SE38 --> RSFTP002

and putting below parameters

User: ENGO
Pass: xxxxx
Host: 195.212.13.22 10001
Command: put c:/ftp.txt /In_test/ftp.txt

it takes 10 minutes when execute and got bellow error.

Execute FTP Command

put c:/ftp.txt  /In_Test/ftp.txt
NIECONN_BROKEN:TCP/IP Network Connection Broken in getreply()
TCP/IP error, connection terminated

FYI .... i m facing this issue in my office LAN while it is working fine when i execute it from my home mean

different connection(DSL).

how can i resolve this issue and where is fault?

advance thanks,

majamil

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member307974
Discoverer
0 Kudos

Hello, I have had the exact same problem.

To fix it, use the following command:

"set passive on"

The reason is articulated in http://slacksite.com/other/ftp.html .

former_member307974
Discoverer
0 Kudos

This message was moderated.

former_member182034
Active Contributor
0 Kudos

still does not resove this issue...

thanks for replying

Former Member
0 Kudos

Dear Majamil,

Is the static ip set under same subnet? The static IPs should be of the same subnet for some apps to resolve it.

For example:

IP: 192.168.0.1

Subnet Mask: 255.255.255.0

Gateway(same): 192.168.1.1

IP: 192.168.0.2

Subnet Mask: 255.255.255.0

Gateway(same): 192.168.1.1

Regards,

Veera

former_member587782
Discoverer
0 Kudos

it will not solve your problem but:

1. RFC-Destination SAPFTP transfers data via frontend (Sapgui) whereas SAPFTPA transfers data via server

2. I have similar problems in an own programm where I transfer dozens of files one by one. Sometimes I get an error after 30 files sometimes after 200

Former Member
0 Kudos

Dear Majamil,

Is the IP address given available in your office LAN? Are you able to ping that IP address?

I hope the firewall is aso not blocking the required FTP port.

Please check the above and if solved, mark the question as answered

Regards,

Veera

former_member182034
Active Contributor
0 Kudos

Hi Veer R;

Is the IP address given available in your office LAN?

Basically the FTP server exist in out of city and also that is on Live IP.

Are you able to ping that IP address?

ping request result is Timeout continuously while FTP server(ftp://195.212.13.22:10001) opened successfully in IE and i can access all folders which are on FTP server.

firewall is not disturbing to FTP port.

all parameters in variant are following

User: ENGO
Pass: xxxxx
Host: 195.212.13.22 10001
Command: put c:/ftp.txt /In_test/ftp.txt
FRC Destination: SAPFTP
Compress: N

regards,

Former Member
0 Kudos

Dear Majamil,

Then I feel it is a proxy issue. You may be accessing the site using an HTTP / FTP enabled proxy in your LAN. I am not sure whether proxy tunneling is supported.

Regards,

Veera

former_member182034
Active Contributor
0 Kudos

Hi All,

there is not proxy implemented in my LAN. i simply purchased a DSL connection and DSL model is connected with LinkSys Router and Static IP assigned to laptops we did not define any proxy on it....

FYI.... i remotely access a system from other company where from ping to 195.212.13.22 is replying and also accessible the FTP server. when i execute same SE38 process then i got same error and sometime got Invalid Arguments.

Abaper is executing successfully above process from their home.... i m in trouble because if abaper is doing any mistake in program then this FTP program did not execute from anywhere.. and if there is any network issue then above program did not execute from anywhere..

waiting good response

regards,

majamil

Former Member
0 Kudos

Dear Majamil,

Did you try with Backslashes? as in :

put c:\ftp.txt \In_test\ftp.txt

Also, about your workstation firewall. Is it allowing the program SAPFTP to execute?

Did you check your SAPFTP RFC using RSFTP005?

Regards,

Veera

former_member182034
Active Contributor
0 Kudos

Hi ,

Dear, there are execution and output following:

put c:\ftp.txt \In_test\ftp.txt

and

put c:/ftp.txt /In_Test/ftp.txt

Execute FTP Command

put c:\ftp.txt  \In_Test\ftp.txt
NIECONN_BROKEN:TCP/IP Network Connection Broken in getreply()
TCP/IP error, connection terminated

and some time i got this error,

Execute FTP Command

put c:/ftp.txt  /In_Test/ftp.txt
open c:/ftp.txt errno 22: Invalid argument

about your workstation firewall.

Firewall is Disable in client end and also server end.

Is it allowing the program SAPFTP to execute

when i put SAPFTP in run then i executed mean it display FTP prompt.

Did you check your SAPFTP RFC using RSFTP005?

SA38 --> RSFTP005

SAPFTP check

Check RFC destination SAPFTP..
... OK.
Ping RFC destination SAPFTP...
... OK.
Check RFC destination SAPFTPA.
... OK.
Ping RFC destination SAPFTPA..
... OK.

and also check from SM59 where connection test completed successfully.

regards,

Former Member
0 Kudos

Dear Majamil,

Can you try this instead of your original command and tell me?:

User: ENGO

Pass: xxxxx

Host: 195.212.13.22 21

Command: put c:/ftp.txt /In_test/ftp.txt

What I am trying here is to replace the port 10001 with the default ftp port 21. The FTP Server software that you have configured might be listening to the default port 21. Just wanted to check that.

Regards,

Veera

former_member182034
Active Contributor
0 Kudos

Hi Dear,

i executed with following parameter but result is below.

User: ENGO
Pass: xxxxx
Host: 195.212.13.22 21
Command: put c:/ftp.txt /In_test/ftp.txt

Attempt to set up connection to 195.212.13.22 21 failed.

any other solution... waiting ur good response

thanks for ur cooperation.

regards,

Former Member
0 Kudos

Dear Majamil,

Why dont you try without mentioning any port at all. And can you try configuring your FTP Server to listen to port 21. Are you using a freeware like FileZilla, which is simple and easy to use?

Regards,

Veera