cancel
Showing results for 
Search instead for 
Did you mean: 

Gateway Problem

Former Member
0 Kudos

Hi, I´ve tried to execute RFC connection test through SM59 but an error is displayed

program AI_DIRECTORY_SID not registered

COMPONENT: SAP-Gateway

COD. RETORNO: 679

I read about this error in this thread but i don´t know what is the procedure to register the program

This is a dev_rd log error line

***LOG S00=> GwInitReader, gateway started ( 5240)

Thanks for your help.

Message was edited by:

Maria Moreno

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Maria,

check XI 3.0 Installation Guide. There you will find a section "Creating RFC Destinations in the ABAP and Java Environment" in the post installation steps.

There it is described how to create the JCo RFC destination in Java and ABAP.

Cheers,

Juergen

Former Member
0 Kudos

Thank you both, Marcelo I read the note but I have a doubt.

To register my program I need to access to a specific path in the cmd on windows, I found the rfcexec.exe but I can not execute my program server name there of course I am confused

My scenario:

RFC Destination Program: AI_RUNTIME_JCOSERVER

Program ID: AI_RUNTIME_NWS

HOST: nw04s

Instance ID: 02

In the Gateway Monitor AI_RUNTIME_JCOSERVER has Syst. Type: Registered Server instead of REGISTER_TP that 353597 note specified.

Thanks in advance

marcelo_sehnem
Explorer
0 Kudos

Hello Maria,

Sorry for the delay. Did you pay attention to the following details?

->The program ID must be identical (case-sensitive) with the program ID

used in the RFC destination.

->Note: the external RFC server program should not be terminated after

logout of the starting user; use the operating system options for this

(see saprouter start).

If so, what happens when you execute rfcexec, which error, etc.

Regards,

Marcelo Sehnem

Former Member
0 Kudos

Sorry for the delay too.

Mi problem was exactly that the

"->The program ID must be identical (case-sensitive) with the program ID

used in the RFC destination."

It is solved.

Thank you a lot!

Answers (1)

Answers (1)

marcelo_sehnem
Explorer
0 Kudos

Hello Maria,

As described in the online help saprfc.hlp (part of the RFC-SDK),

section 3.5 (Multiple client server programs), the gateway registration

of the external RFC server program is done as follows:

Start the external RFC server program <Program> (without <>) with the

following parameters:

<Program> -a<Program_ID> -g<SAP_Gateway_hostname> -x<Gateway_Service>

To register test program rfcexec (sample server program from RFCSDK)

under the program ID 'test' at the SAP host HOST via gateway sapgw00,

for example, start rfcexec as follows:

rfcexec -atest -gHOST -xsapgw00

The program ID must be identical (case-sensitive) with the program ID

used in the RFC destination (SM59, see below).

You can also enter these parameters via the configuration file

saprfc.ini (see the online documentation); only the parameter

-D<destination> is required when you start the RFC server program

Note: the external RFC server program should not be terminated after

logout of the starting user; use the operating system options for this

(see saprouter start).

Check SAP note 63930 for further details.

Hope it helps you.

Best regards,

Marcelo Sehnem