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 connection failed in background

Former Member
0 Likes
1,420

Hi Folks,

I'm connecting from SAP system to a FTP server using the FTP program. When I'm connecting to the FTP server through the RFC destination SAPFTP its working fine i can connect to the server however I have to run the program in the background mode so I cannot use the SAPFTP rfc destination as it can run only on the foreground so in my case I'm using the RFC destination SAPFTPA as this is the RFC destination which can be used in the background mode.

The problem arises here when I'm using SAPFTPA in place of SAPFTP as I have to run the program in background. When I'm using the RFC dest SAPFTPA I'm getting an error saying "Attemp To Set Up Connection To 179.65.23.203 Failed" however the connection is successful when the RFC dest SAPFTP is used.

Please provide your valuable inputs.

Regards,

Santosh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
771

Hi Santosh,

This happens bcos when we use SAPFTPA, the application server connects to the other machine.

Normally the sap server is put under firewall / network restrictions. So probably you will have to

contact your basis team for figuring out that.

They will first login to the application server at the operating system and try to use ftp (using os ftp commands). If that will work, then ftp from SAP program will also work.

Regards,

Amit Mittal.

Hi Folks,

I'm connecting from SAP system to a FTP server using the FTP program. When I'm connecting to the FTP server through the RFC destination SAPFTP its working fine i can connect to the server however I have to run the program in the background mode so I cannot use the SAPFTP rfc destination as it can run only on the foreground so in my case I'm using the RFC destination SAPFTPA as this is the RFC destination which can be used in the background mode.

The problem arises here when I'm using SAPFTPA in place of SAPFTP as I have to run the program in background. When I'm using the RFC dest SAPFTPA I'm getting an error saying "Attemp To Set Up Connection To 179.65.23.203 Failed" however the connection is successful when the RFC dest SAPFTP is used.

Please provide your valuable inputs.

Regards,

Santosh

2 REPLIES 2
Read only

former_member194669
Active Contributor
0 Likes
771

You may need to write a small utility and runs in background and check


report zaRs message-id 04 line-size 132.

tables: rfcdoc.

data: rfc_mess(132),

call function 'RFC_PING' destination 'SAPFTPA'
  exceptions
    system_failure        = 1  message rfc_mess
    communication_failure = 2  message rfc_mess.

if sy-subrc ne 0.
  write: / 'Errors', rfc_mess.
endif.

Read only

Former Member
0 Likes
772

Hi Santosh,

This happens bcos when we use SAPFTPA, the application server connects to the other machine.

Normally the sap server is put under firewall / network restrictions. So probably you will have to

contact your basis team for figuring out that.

They will first login to the application server at the operating system and try to use ftp (using os ftp commands). If that will work, then ftp from SAP program will also work.

Regards,

Amit Mittal.