Workaround for an error connecting to SAP using SAPjco.jar

Workaround for an error connecting to SAP using SAPjco.jar

When I connect to my SAP system from a Java application using SAPjco.jar, it throws the following exception:

"103) RFC_ERROR_LOGON_FAILURE: You are not authorized to logon to the target system (error code 1)."

I have a user ID and password through which I can access SAP system by the Web environment. To access the SAP system by SAPjco.jar, what type of user ID should be used? Is there any other access method to be used?

    Requires Free Membership to View

    When you register, you will start receiving targeted emails from my award-winning team of editorial writers. Our goal is to keep you informed on the hottest topics and biggest challenges faced by SAP professionals today.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSAP.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSAP.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

Make sure that your user has access to RFC_SYST in the user profile. You can use a dialog user, as long as that user can execute an RFC. Try executing the same RFC through SE37 to make sure you user can call that function module.

This was first published in December 2005