So, this question feels somewhat easy and complex at the same time, let me describe my scenario.
In my application, users can automatically discover SAP systems and in order to test the availability I'm using several methods, one of them is to perform a RFC_PING and possibly a RFC_SYSTEM_INFO. (verification methods are there for a reason, please do not suggest alternatives to this)
After some investigation in several forums, reading papers, etc, I found "JCO_LCHECK" that after you set that in 0, in theory you are saying that Logon check must not be performed, but unfortunately and to my surprise, I can say that is not what I'm experimenting.
My next step was looking inside the SAPJCO3 jar, I wanted to know how SAPJCO3 knows or verifies "JCO_LCHECK". I found that there is only one flag on class RfcOptions that if the property has the prefix "lcheck" sets the flag to true or false accordingly (as it is defined as a boolean) but still, after the execution JCO keeps saying that the provided username and password are not correct
Here are my properties
Properties connectProperties = new Properties();
connectProperties.setProperty(DestinationDataProvider.JCO_ASHOST, this.getHostname());
connectProperties.setProperty(DestinationDataProvider.JCO_SYSNR, this.getInstanceNumber());
connectProperties.setProperty(DestinationDataProvider.JCO_CLIENT, this.getClient());
connectProperties.setProperty(DestinationDataProvider.JCO_LCHECK, "0");
connectProperties.setProperty(DestinationDataProvider.JCO_USER, this.getUsername());
connectProperties.setProperty(DestinationDataProvider.JCO_PASSWD, this.getPassword());
connectProperties.setProperty(DestinationDataProvider.JCO_LANG, "en");
connectProperties.setProperty(DestinationDataProvider.JCO_POOL_CAPACITY, "3");
connectProperties.setProperty(DestinationDataProvider.JCO_PEAK_LIMIT, "10");
and my username and password are ""
Did anyone saw this actually working? have you guys managed to make it work? I tried already to not provide the user and password properties or set them to null but none of those action prove useful
Thank you,
Add comment