Application Development 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: 

SM59 RFC Help required.

Former Member
0 Kudos

Hi,

I want to save the file to my local machine when the output is issued. I want to use EDI.

Please help me in configuration.

I have configured the partner profile in WE20. I have created the File Port and specified the directory path as d drive.

I am not able to create the RFC connection in SM69 usint TCP/IP : connection type T.

Can anyone help me out?

point will be rewarded for help.

Thanks in advance.

8 REPLIES 8

Former Member
0 Kudos

Experts please help..

0 Kudos

hi

goto SM59

give the rfc name that must be same same as u r logical system name

so that system can generaate some default settings

choose activation type start on application server and give program path name

after give logon & security details

reward if u find use ful

Regards

Nagesh.Paruchuri

0 Kudos

Where can I get the program name?

I have done the things you have suggested but I am not sure what should be the program name and where can i get it.

pleasr mail back.

0 Kudos

hi

Type T destinations are connections to external programs that use the RFC API to receive 'Remote Function Calls'. You must specify the host name and the pathname of the program to be started. The communication method depends on how you select the program location:

'Explicit' selection

In this case, the program is started either by the standard gateway program for the system or by the explicitly specified gateway (gwrd) via 'remote shell'.

Ensure that the computer with the gateway process can access the specified computer by entering '/etc/ping <host name>'.

In order to be able to start a program on another computer using 'remote shell', the target system must fulfil certain conditions. The user ID of the gateway process must exist and a file called .rhosts must also be present in the user's home diretory. The file .rhosts must contain the name of the calling computer. To check this, logon to the computer containing the gateway process with the appropriate user ID and enter the command 'remsh <host name> <program name>'. The <host name> and <program name> must be the same as in SM59. (If you call an RFC server program without any parameters, the RfcAccept call always returns an error code (RFC_HANDLE_NULL) and the program terminates at once.)

'Server'

By entering the 'server', you start the program from the SAP application server.

First, ensure that the program can be accessed from the SAP application server and that the SAP application server has the authorization to start the program.

To check this, logon with the user ID of the SAP application server (e.g. c11adm). If possible, go into the 'work' directory of the SAP application server ('/usr/sap/.../D.../work') and try to start the RFC server program manually from there. (As in the above case, if you call an RFC server program without parameters, the RfcAccept call always returns an error code (RFC_HANDLE_NULL) and the program terminates at once.)

'User'

By entering the 'user', the program is started by 'SAPGUI', i.e. under the user's ID and environment.

Ensure that you can access the program with 'SAPGUI'/'SAPTEMU'.

Ensure that 'SAPGUI' has the authorization to start the program.

To check this, simply call the RFC server program in your environment.

The function call can also be asynchronous (CALL FUNCTION ... IN BACKGROUND TASK DESTINATION ...).

reward if u find use ful

regards

Nagesh.Paruchuri

0 Kudos

hi

Type T destinations are connections to external programs that use the RFC API to receive 'Remote Function Calls'. You must specify the host name and the pathname of the program to be started. The communication method depends on how you select the program location:

'Explicit' selection

In this case, the program is started either by the standard gateway program for the system or by the explicitly specified gateway (gwrd) via 'remote shell'.

Ensure that the computer with the gateway process can access the specified computer by entering '/etc/ping <host name>'.

In order to be able to start a program on another computer using 'remote shell', the target system must fulfil certain conditions. The user ID of the gateway process must exist and a file called .rhosts must also be present in the user's home diretory. The file .rhosts must contain the name of the calling computer. To check this, logon to the computer containing the gateway process with the appropriate user ID and enter the command 'remsh <host name> <program name>'. The <host name> and <program name> must be the same as in SM59. (If you call an RFC server program without any parameters, the RfcAccept call always returns an error code (RFC_HANDLE_NULL) and the program terminates at once.)

'Server'

By entering the 'server', you start the program from the SAP application server.

First, ensure that the program can be accessed from the SAP application server and that the SAP application server has the authorization to start the program.

To check this, logon with the user ID of the SAP application server (e.g. c11adm). If possible, go into the 'work' directory of the SAP application server ('/usr/sap/.../D.../work') and try to start the RFC server program manually from there. (As in the above case, if you call an RFC server program without parameters, the RfcAccept call always returns an error code (RFC_HANDLE_NULL) and the program terminates at once.)

'User'

By entering the 'user', the program is started by 'SAPGUI', i.e. under the user's ID and environment.

Ensure that you can access the program with 'SAPGUI'/'SAPTEMU'.

Ensure that 'SAPGUI' has the authorization to start the program.

To check this, simply call the RFC server program in your environment.

The function call can also be asynchronous (CALL FUNCTION ... IN BACKGROUND TASK DESTINATION ...).

reward if u find use ful

regards

varma_narayana
Active Contributor
0 Kudos

Hi Pranu..

We need not to Create an RFC Destination incase of File port. It will generate the file without any RFC Destination.

RFC Destination(type T) is needed if you want to Start any program at the Operating system level in this case.<b></b>

But still if u need to Create it Contact the Basis Admin to fix the Error in SM59.

reward if helpful.

0 Kudos

HI,

Thanks for the info. But while creating File Port, In the Outbound trigger tab: The field RFC Destination is mandatory.

What should I enter here then???

messier31
Active Contributor
0 Kudos

hi,

In sm59 select the Front-end workstation in Starton the RFC destination you have created and mention the name of program which will be use for file transfer.

try testing connection first in SM59 by clicking test connection on application toolbar.

Enjoy SAP.

Pankaj Singh.