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: 

RFC_ERROR_LOGON_FAILURE

Former Member
0 Kudos

Hi Forum,

I am trying to consume a BAPI from JAVA. For this, i copied a SAPJCO.JAR and two dlls by the name sapjco.dll and librfc.dll from SAP Market place. When i make a call to SAP, i am getting an error

"RFC_ERROR_LOGON_FAILURE" - : Name or password is incorrect (repeat logon)

I am very sure that the user name and password that i provided are correct. I tried with different user names which have administrator rights. I feel that there is some extra authentication required to connect to SAP remotely.

Can any one ever faced this problem ? Please help me in this regard.

4 REPLIES 4

Former Member
0 Kudos

Have you already recorded a Authority Trace (Txn ST01), when calling this FM from Java?

Also, keep in mind, that the user has to be authorized to call FMs from the according Function Group...

Edited by: Mike Schernbeck on Jan 31, 2008 12:03 PM

Former Member
0 Kudos

Hi,

Pls check the length of the username/password fields you are passing against those of the server. A mismatch in this also can cause the problem.

Regards,

Renjith Michael.

0 Kudos

Go to the transaction SM59 in SAP,

take R3 connections and select the RFC Destination which you are using and try to 'REMOTE LOGON'. IF it is not login to the server, they try to change the user name and password in the logon&security tab and also check the IP Nmae in technical settings

Former Member
0 Kudos

Hi,

I switched on the trace but i couldn't find any logs.

Also, i checked the length of user name and password. There is no mismatch in that also.

Mike.