I am working on a project using JCo and I am calling the BAPI_CUSTOMER_CHECKPASSWORD function module to validate the input customer and password. First of all I created an Internet user ID, type = 'KNA1', and password via transaction su05. I then clicked on Initialize and it created me a password. I then go to trans. se37 and test the above function module to verify everything is OK but I keep getting a return code of EIB003. I went back to su05 and changed the password but I still get return code of EIB003. Any ideas about what I can do to get a successful return code?
For the most part, using SAP's Function Builder to test BAPIs is a fairly straightforward excercise. However, one major caveat when using this application is that you must be very aware of case sensitivity for the parameters you are entering. BAPI_CUSTOMER_CHECKPASSWORD illustrates this caveat beautifully. The password field used by the Internet User facility (SU05) is case sensitive. This means that whatever case used when creating the password must be replicated exactly when testing in the CHECKPASSWORD BAPI. However, the default behavior of the Function Builder when testing a BAPI is to set all parameter values to upper case. This means that if your password was created entirely in lower case, the Function Builder will change the entered password value to upper case, thus causing the password to become invalid when attempting to authentiate against the SAP Internet User facility.
In order to get around this, simply check the 'Upper/Lower case' box at the top of the 'Test Function Module: Initial Screen'. This will tell the Function Builder to treat all of your parameters as case sensitive when testing against a BAPI.
Dig Deeper on SAP Java and J2EE
Related Q&A from Austin Sincock
How to provide an SAP R/3 4.5B application server with a Web service interface Continue Reading
A reader wants to know how to consume a Web service from an SAP 4.6c R/3 application server. Continue Reading
Are you a Java/J2EE developer interested in SAP? This expert tip lists the most relevant SAP modules and technologies for you. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.