cancel
Showing results for 
Search instead for 
Did you mean: 

How to register external program (RFC)?

Private_Member_19084
Active Contributor
0 Kudos

Hi experts,

I never did this before, so I don't know really how it works.

I would like to register an external server program (LDAP).

The program is in /usr/sap/<sid>/SYS/exe/run/ldap_rfc.

So I did the following:

ldap_rfc -a/usr/sap/<sid>/SYS/exe/run/ldap_rfc -g<host> -x<sapgw>

After executing the command some information about the program apears.

And durring this time, the RFC connection is working.

But afer closing the command-line the RFC is gone.

So do I have to execute the command in background?
Or what is my mistake?

Kind regards

Accepted Solutions (1)

Accepted Solutions (1)

alwina_enns
Employee
Employee
0 Kudos

Hello Christian,

in the most cases the programs have its own registration procedure at the gateway. For LDAP you should check the documentation first, if and how you should register it. For example, documentation for LDAP configuration:

http://help.sap.com/saphelp_erp60_sp/helpdata/en/10/1a063a15c611d4b61f0000e835363f/content.htm

Regards,
Alwina

Private_Member_19084
Active Contributor
0 Kudos

Hi Alwina,

thank you for your help - AGAIN

I've already found this document, however, it is not described how to set up the RFC-Connection.

(especially the server program id).

Kind regards

Sriram2009
Active Contributor
alwina_enns
Employee
Employee
0 Kudos

Hello Christian,

if I understand the note correctly:

188371 - Configuring the LDAP Connector

you have to create the RFC destination manually and choose "Registered Program" for this destination, and the note does not say something regarding registration of ldap_rfc from OS level.

Regards,
Alwina

Private_Member_19084
Active Contributor
0 Kudos

Thats right Alwina,

but what do I have to enter in the ID-Field?

KR

alwina_enns
Employee
Employee
0 Kudos

the note says:

"As "Program ID" you should enter the name of the RFC destination"

on our test system it looks like this:

Private_Member_19084
Active Contributor
0 Kudos

what? no....I have to enter the ID, on which the ldap_rfc is registered, otherwise I am completly wrong

Because, how should the system know what has to be executed?

Private_Member_19084
Active Contributor
0 Kudos

Hi Sriram,

I've checked both notes, however the registration seems not working.

I am executing the correct command (based on note).

But for me it seems, as the command has to be executed in background.

alwina_enns
Employee
Employee
0 Kudos

on our test system it is working 🙂 and this is what the SAP note recommends

Private_Member_19084
Active Contributor
0 Kudos

And you have not registered the LDAP?

Can't be.

This means, if you create a further RFC deationsn (e.g. LDAP_TEST_2) and enter LDAP_TEST_2 as program ID, that it works.

And I would not believe this.

Kind regards

alwina_enns
Employee
Employee
0 Kudos

Hello Christian,

you have to follow the note 188371. You should create the destination manually, and then enter this destination in LDAP transaction. You should not register ldap_rfc from OS level.

Regards,
Alwina

Private_Member_19084
Active Contributor
0 Kudos

Hi Alwina,

but I have to register the program, otherwise the RFC is not working.

And also in the not it is written, that it has to be registered.

alwina_enns
Employee
Employee
0 Kudos

Hello Christian,

I have just tried it out on our test system. I have created a second RFC destination for LDAP connector in SM59, I have maintained it in LDAP transaction, I have deactivated a first one, and started my LDAP connector in LDAP transaction. As soon as I start it it registers itself at the gateway with my second destination, and the connection test for my second destination is working in SM59. I had nothing to do on OS level.

Regards,
Alwina

Private_Member_19084
Active Contributor
0 Kudos

Hi Alwina,

now I can follow you. You mean, that the ldap is doing the registration.

Unfortunatly not in our system

Private_Member_19084
Active Contributor
0 Kudos

So I got it, you had been right.

The LDAP is really doing the registration.

But my fault was, that I did enter the the host data and did click directly on activating (without saving before)

So first you have to save the data, otherwis it seems not to work (at least on our system).


Thank you for your help

alwina_enns
Employee
Employee
0 Kudos

Hello Christian,

then you should try to start it manually as described in the note above with the activated RFC trace and check, what should be wrong. Does the gateway allow the registration (reginfo file)?

Regards,
Alwina

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Make sure that the parameter gw/acl_mode is set in the system with correct value.

for reference.

http://scn.sap.com/thread/3472002

Private_Member_19084
Active Contributor
0 Kudos

it is, thx for the info

former_member211727
Participant
0 Kudos

Hi Christian,

If the system is on Windows, please try running the registration command as a service.

On Unix, run it in the background using & at the end of the command.

Thanks

Private_Member_19084
Active Contributor
0 Kudos

Hi Rahul,

so this is normal, that it is executed in background?
This is my question to be honest.

Kind regards

Sriram2009
Active Contributor
0 Kudos

Hi

Kindly go thru the SCN link

BR

SS

Private_Member_19084
Active Contributor
0 Kudos

(its linux)

Private_Member_19084
Active Contributor
0 Kudos

in other words, each registration has to run as a background process?

Former Member
0 Kudos

Hi Christian,

I think Goto SM59 -> Click on TCP/IP connections -> click Create -> Enter RFC destination -> Under technical setting chose registered server program

Note : Creating RFC Destinations in the ABAP System - Enterprise Reporting, Query, and Analysis - SAP Libra...

Note : As suggest sriram 2nd note is useful

Regards,

Dhuvaraganathan M.