cancel
Showing results for 
Search instead for 
Did you mean: 

LCRSAPREFC and SAPSLDAPI not working correctly

Former Member
0 Kudos

Hello Experts,

I have a new problem. I want to configure the RFC connections SAPSLDAPI and LCRSAPRFC for the first time. I have two technical systems. "GI5" is an IDES system, so the connections still exist an I changed them. But they are not working correctly.

I did the SLDCHECK and everything works fine. The SLD is running.

My PI system is PI 7.01 on SLES 11.

hostname: saptest8

SID: GT8

instance: 00

Error text SAPSLDAPI in the IDES System GI5:

SID: GI5 hostname: sapides5 instance: 00

Connection Error

Error when opening an RFC connection

ERROR: hostname 'saptest8' unknown

LOCATION: SAP-Server sapides5_GI5_00 on host sapides5 (wp 1)

DETAIL: NiHsLGetNodeAddr: hostname cached as unknown

COMPONENT: NI (network interface)

COUNTER: 35

MODULE: nixxhsl.cpp

LINE: 223

RETURN CODE: -2

SUBRC: 0

RELEASE: 700

TIME: Mon Mar 21 09:39:19 2011

VERSION: 38

Error text LCRSAPRFC IDES System GI5:

Connection Error

Error when opening an RFC connection

ERROR: hostname 'saptest8' unknown

LOCATION: SAP-Server sapides5_GI5_00 on host sapides5 (wp 1)

DETAIL: NiHsLGetNodeAddr: hostname cached as unknown

COMPONENT: NI (network interface)

COUNTER: 40

MODULE: nixxhsl.cpp

LINE: 223

RETURN CODE: -2

SUBRC: 0

RELEASE: 700

TIME: Mon Mar 21 09:44:11 2011

VERSION: 38

The other system is the "GT5" system. The SAPSLDAPI works correctly.

Error text of lcrsapfrc:

Cancel

timeout during allocate / CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456 Timeout bei

ERROR: timeout during allocate

LOCATION: SAP-Gateway on host saptest8.intern.gobas.de / sapgw00

DETAIL: no connect of TP LCRSAPRFC_GT8 from host 0.0.0.0 after 20 sec

COMPONENT: SAP-Gateway

COUNTER: 65

MODULE: gwr3cpic.c

LINE: 6202

RETURN CODE: 242

SUBRC: 0

RELEASE: 701

TIME: Mon Mar 21 09:53:45 2011

VERSION: 2

Have anyone an idea what to do? Why is the hostname unknown an how can I solve this problem?

Thanks for any reply,

Sebastian

Edited by: S.Simon89 on Mar 21, 2011 10:05 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sebastian,

For creating RFC Destination LCRSAPRFC and SAPSLDAPI do the follwoing:

1. In sm59 create an RFC Destination( LCRSAPRFC and SAPSLDAPI ) of type T

2. Under Technical Settings tab check Registered Server Program

3. Once 2 is selected enter the Program ID in the Technical Settings tab

4. All other settings remains same

Now for creating the Program ID. Do the follwoing:

1. Create a JCo RFC Provider(Runtime) in Visual Admin or NWA. One for each LCRSAPRFC and SAPSLDAPI (say LCR1 and API1).

2. Provide the following while creating the Provider name:

a) Gateway host (Use IP address if do not know host name)

b) Gateway service

c) Server Count (ex 20)

d) Specific Application server details (server host/IP, username(Jco User - ex: PI_JCO_RFC), password etc)

3. Once created use this name (say LCR1 and API1) as Program ID in the RFC Destinations (in sm59) for LCRSAPRFC and SAPSLDAPI.

It should work. Let me know if you have any queries.

Regards,

Souvik

Former Member
0 Kudos

Thanks for your reply. It seems to be very helpful. But I´m new in this topic and I don't know how I can do this in the visual admin or netweaver administrator. Can you give me the exact path where I can do this? I am german an unfortunetly i can only use the nwa in german language. So it is somtimes hard to find the right path because everything is called a little bit different.

Thanks!

Edited by: S.Simon89 on Mar 21, 2011 11:10 AM

samiullah_qureshi
Active Contributor
0 Kudos

Following are the steps to create the Prog Id(destination) using the NWA:

1. In your web browser, enter the URL of SAP NetWeaver Administrator using the following pattern:

http://<host>:<port>/nwa

2. Choose Configuration Management u2192 Infrastructure u2192 Jco RFC Provider.

3. Choose Create.

4. It is recommended that the following pattern should be used for naming the destination

SLDAPI_<SAPSID>/LCRSAPRFC_<SAPSID>, where SAPSID is the system identifier of the AS Java system.

4. Enter the connection and transport parameters as required.

In the Program ID field of rfc destination in ABAP, enter the same program ID as the one you entered when you created an RFC destination for the SLD/LCRSAPRFC ABAP API on the AS Java side.

Former Member
0 Kudos

Thanks for your reply.

And exactly at this point is the problem. I'm using PI 7.01 an not 7.1. My screen is totally differnet then yours. I can see the LCRSAPRFC_GT8 and SAPSLDAPI_GT8, so they are named in the right way. But I can't edit them.

Former Member
0 Kudos

You are not able to edit them since you might not have proper access. Please ask Basis team to provide proper create access to your login ID. As far as I remember it is SAP_RS_NWA_Admin or SAP_NWA_Full needs to be asigned to your SAP username.

Once this is provided follow the steps mentioned above by Samiullah Qureshi and use the parameters mentioned in my previous post.

Former Member
0 Kudos

No that isn´t the problem. I'm admin and have "sap_all" rights. And I gave my user all roles which relate to SAP PI. So that can't be the problem.

samiullah_qureshi
Active Contributor
0 Kudos

I think u r facing problem becoz u r on SAP PI 7.0 EHP1(7.01). Prior to PI 7.1, we dont have NWA. We have to use the Visual Admin for all those setting. I exactly dont remember where u can find these destinations using VA.

Please check ur destinations using VA and change, if require. Also, make sure same RFC destination(Program Ids) are used in the RFC destinations in ur R3 under registered programs.

Former Member
0 Kudos

Hi..

I dint see you were using 7.01.. i thought 7.1 ehp 1! My Bad.... No NWA in <7.1.

in this case please follow the steps which I mentioned in my first post.

Login to Visual admin and do the follwoing:

1. Open Services under Cluster

2. Select JCo RFC Provider option

3. In the right side three tabs will be there (Runtime, Properties, Addidtional Info)

4. In the Runtime Tab create the Program ID to be used in sm59 (The steps are mentioned in my previous posts)

{Path for creation should be - - - > \Services\Jco RFC Provider}

If you are not aware on how to access Visual Admin please get in touch with your Basis Team and they will provide you with userid and passwords (Database level access is required as far as I know).

Thinks this should solve your problem.

Regards,

Souvik

Former Member
0 Kudos

I tried it but everythign was fine. SAPSLDAPI_GT8 and LCRSAPRFC_GT8 are entered before too.

But now I get this error??

Cancel

max no of 100 conversations exceeded / CPIC-CALL: 'ThSAPCMRCV' : cmRc=17 thRc=45

ERROR: max no of 100 conversations exceeded

LOCATION: CPIC (TCP/IP) on host saptest8

COMPONENT: CPIC (TCP/IP) with Unicode

COUNTER: 710

MODULE: r3cpic_mt.c

LINE: 10791

RETURN CODE: 466

SUBRC: 0

RELEASE: 701

TIME: Mon Mar 21 15:48:54 2011

VERSION: 3

And in the IDES System "GI5" the hostname is still unkown.

What shall I do now?

Edited by: S.Simon89 on Mar 21, 2011 3:52 PM

Former Member
0 Kudos

Can you try with the actual IP address instead of the host name "GI5"

Former Member
0 Kudos

Thank you! This was the problem. I thought there is no difference between hostname an IP buth is seems to be so.

Answers (1)

Answers (1)

samiullah_qureshi
Active Contributor
0 Kudos

Please check the Program Ids maintained in RFC dest SAPSLDAPI and LCRSAPRFC are same as the program ids maintained on SAP PI java stack.