01-31-2008 10:59 AM
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.
01-31-2008 11:03 AM
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
01-31-2008 11:06 AM
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.
01-31-2008 11:13 AM
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
01-31-2008 11:14 AM
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.