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

Regd: Funxn Module FTP_CONNECT

Former Member
0 Likes
1,121

Hi All,

Currently we are trying to connect to a ftp folder and save an XML file in that folder.

The problem is when we use the FM <b>'FTP_CONNECT'</b> and gave the relevent I/P also its giving a error msg as

<b>"User ftpuser has no access authorization for computer 212.20.72.195"

Message no. 04202</b>, we tried for notes in SAP Notes search aslo but cud not find any related notes for that.

can any one giv us the exact way to create the RFC Destination for this in SM59 and the way to procedd.

Help and Suggestions will be much appreciated.

Thanks & Regds.

Ganesh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
913

Hai Ganesh,

When you define an RFC server program(usually an executable on a server) as RFC destination, you choose either 'START' or 'Registration'.

'Start' means the SAP application sending anything to this destination will trigger this program, while registration means this program will already be running (like a service ) and have already registered itself to SAP server.

Once you have defined your RFC destination as of type 'registration', you should execute this exe with the syntax

"pgmname.exe -a<ProgramID>

-g<Gateway Host>

-x<Gateway Service>

" where programID shall be the same as the RFC destination name (I think) and gateway host and service is from the app server where you are registering this destination,

to have it started as a service and registered as the destination to the SAP server (which you can afterwards see in SMGW txn).

If you want this program to be started when something is sent to this RFC destination from SAP, make it of type 'START'.

Also Just look these links..

Regards,

Srikanth.

4 REPLIES 4
Read only

Former Member
0 Likes
914

Hai Ganesh,

When you define an RFC server program(usually an executable on a server) as RFC destination, you choose either 'START' or 'Registration'.

'Start' means the SAP application sending anything to this destination will trigger this program, while registration means this program will already be running (like a service ) and have already registered itself to SAP server.

Once you have defined your RFC destination as of type 'registration', you should execute this exe with the syntax

"pgmname.exe -a<ProgramID>

-g<Gateway Host>

-x<Gateway Service>

" where programID shall be the same as the RFC destination name (I think) and gateway host and service is from the app server where you are registering this destination,

to have it started as a service and registered as the destination to the SAP server (which you can afterwards see in SMGW txn).

If you want this program to be started when something is sent to this RFC destination from SAP, make it of type 'START'.

Also Just look these links..

Regards,

Srikanth.

Read only

Former Member
0 Likes
913

goto SM59

push create button

give some name for destination

give the host name and system no

for testing the connection , u can use Test connection button

chk this link for some info

http://help.sap.com/saphelp_nw04s/helpdata/en/78/20244134a56532e10000000a1550b0/content.htm

Read only

Former Member
0 Likes
913

1)Make your RFC destination have Activation type as "Start on Explicit host".

2)Give your host name.

3)Before you make a call to FTP_CONNECT, you have to encrypt the password of your UX id using CALL FUNCTION 'HTTP_SCRAMBLE'.

This should work. All the best!

Read only

Former Member
0 Likes
913

Did you ever get this resolved?

I am having the same issue.

Regards