cancel
Showing results for 
Search instead for 
Did you mean: 

jCoClientConnection test

Former Member
0 Kudos

Hi,

I'm trying to connect the PDK to one of our R/3 systems and seem to have run into a snag. When running the system viewer, everything works. When running the jCo destination viewer, everything works. When running the System Test, the "Check for launching WinGUI and PlatinGUI transactions" works and the "Check for launching WebGUI transactions, EasyWebTransactions and BW 2.x objects" works. BUT... when running the JCOClientConnection test, I get this:

Test failed: Getting JcoClientService ...

Variant: jCo connection test for DEVCLNT300

Client successful created

Error while getting connection:

Stack trace:

com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Open file 'saprfc.ini' failed: 'No such file or directory'

Client logon data

USER = null

I don't know what to do from here. I read one post that said something about applying patches, but what kind of patches are there for the PDK? Where would I find this file?

TIA (thanks in advance).

Kevin

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hey Matthias,

I installed the new SAP jCo 2.1.2, following all the instructions and I'm getting a little bit of a different error now. It says:

Test failed: Getting JcoClientService ...

Variant: jCo connection test for DEVCLNT300

Client successful created

Error while getting connection:

Stack trace:

<b>com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: :2W:002</b>

Client logon data

USER = null

At least it's not telling me that saprfc.ini does not exist, but now I have to figure out what 2W:002 means.

Maybe this wil help a bit.

Check these out...

http://service.sap.com/connectors/ (SAP Java Connector)

and

http://service.sap.com/notes/

note #: 413708, 516636, 683100 (these could be helpful)

Kevin

Former Member
0 Kudos

Hi Kevin,

Try doing the user mapping to the SAP system, using UserManagementComponent.UserMappingAdmin and then run the JCOClientConnection test.

Vivek

Former Member
0 Kudos

Hey Vivek,

Do you have any examples of what is supposed to be inside the UserManagementComponent.UserMappingAdmin? I have tried to look for examples but have had trouble finding any.

TIA.

Kevin

Former Member
0 Kudos

Hi Kevin:

Try giving the port no. and host info to the hosts and

services files at C:\WINNT\system32\drivers\etc.

Thanks,

Prasad Nutalapati

Former Member
0 Kudos

SWEEEEEEET, I have now been able to connect to my R/3 systems... thanks a ton!!!

-kevin

Former Member
0 Kudos

I'm running windows xp, could you give me an example of what you did within your hosts and services files? Not sure what you mean in your reply (should I list the IP address, localhost name, and then the port number for each R/3 instance?) This should go in both the hosts and the services file I assume.

Thanks in advance,

Kyle

Former Member
0 Kudos

Hi Kevin,

no, sorry, dont have a solution or explanation. But at least I am struggling with the same contrarieties. I found out that the PDK (5.0.5) is looking for that file in %tomcat%\bin. Creating this file (an empty saprfc.ini in that folder) leads to another exception: "Destination '' not found in saprfc.ini"

This indicates imo that the sapjco.jar methods dont use the landscape definitons, especially the jcodestinations.xml. Or at least these data are not sufficent to create the connection. If you discover a solution for this problem please let me know, so as I do for my part.

Greets.

Matthias