cancel
Showing results for 
Search instead for 
Did you mean: 

JCO LOGON FAILURE

Former Member
0 Kudos

Hello! I can't log on to sap system. What I have to configure?? I know my credentials are korrekt!!!

Thanks!!

mConnection =

JCO.createClient("100", // SAP client

"XXXX", // userid

"XXXX", // password

"DE", // language

"192.168.2.10", // application server host name

"00"); // system number

mConnection.connect();

When I start the connection:

JCo Version 2.0.12 (2005-06-20)

com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Name oder Kennwort

ist nicht korrekt (Wiederholen Sie die Anmeldung)

at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)

at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(Unknown Source)

at com.sap.mw.jco.JCO$Client.connect(Unknown Source)

at MainJavaFTP.<init>(MainJavaFTP.java:67)

at MainJavaFTP.main(MainJavaFTP.java:128)

Press any key to continue...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

have you checked if the user has been locked? This can happen if your loging fails 3 times. Another possibility might be that the user is not an RFC user.

T00th

Former Member
0 Kudos

Thank you for your answer! I can log on via SAP System. But when I start my Java JCo I can't log on. How can I be RFC user? What do I have to do?

Thanks!

Former Member
0 Kudos

Hallo Andrei,

Under SU01, you can manage your user. I am not familiar with where exactly you can check if the user is a dialog user or a service user, but I think this is under the "Logon Data" tab. I don't have access to an R/3 system right now so I cannot check.

I would suggest that you talk to your user/system administrator(s) about it.

T00th.

P.S - also try to get the latest version of JCo - 2.1.8 rather than the one you are using. 2.0 is quite old.

Edited by: Sameer Jagirdar on May 26, 2008 12:55 PM

Former Member
0 Kudos

I have just changed JCo from 2.0.12 to 2.1.8. Now I have such error:

JCo Version 2.1.8 (2006-12-11)

java.lang.NullPointerException

at MainJavaFTP.<init>(MainJavaFTP.java:93)

at MainJavaFTP.main(MainJavaFTP.java:128)

Press any key to continue...

Thanks!!

Former Member
0 Kudos

Can you post the code that you are using? I take it MainJavaFTP is your class. Maybe if you post the code, it might be easier as far as analysis goes..

T00th

Former Member
0 Kudos

I have just tested other FM and it works!! I think the problem is in my FM (BAPI_ISUPROFILE_IMPORT). How can I configure my FM that I can work with it? The FM is remote available.

Thanks!

Former Member
0 Kudos

Hello! I have now connection to BAPI and want to read a table. But I see nothing!! Can you help me?

JCO.Table table= function.getTableParameterList().

getTable("PROFILEVALUES");

for(int i=0; i<table.getNumRows(); i++){

table.setRow(i);

System.out.println("PROFILE");

}

Former Member
0 Kudos

Hi Andrei,

if you want to read a JCO.Table. The code should be like this:

JCO.Table table= function.getTableParameterList().getTable("PROFILEVALUES");

if (table.getNumRows()> 0)
{
  table.firstRow();
  do
    {
      System.out.println(tableData.getString("NAME_FIELD"));
    } 
  while (table.nextRow());
}

Best regards,

Mathieu

PS : reward points if helpful

Answers (0)