Skip to Content
author's profile photo Former Member
Former Member

SAP Connections

I have been having some serious problems trying to get a connection to SAP from the SAPNetweaver. I have done some research, but nothing solved my problem. There are a lot of different notes out there, but no simple explanation on how to get it to work.

I would like this Message to be the "End All" for questions regarding SAP connections and I hope all of you can help. "No Links", man am I tired of trying to follow the secondary links. Just full explanations. No links to the SAP Developers Manual, every description was just short of having enough information.

PLEASE HELP.

Here is the scenario:

I have applications that require connections to SAP BAPIs. I want the people that are accessing these applications to run the BAPIs with there own credentials. I have the SAP Netweaver installed, but am using an older SAP EIS. I was using Tomcat with the JCO classes. I had to create a different connection for each call, but was able to pass the users credentials from a login page that I created. Now I am porting the application to Netweaver.

Questions:

1) What is SAPs preferred connection to BAPIs if I want to pass the credentials of the user to run the BAPIs?

JCO, JRA, Other?

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on Oct 13, 2005 at 07:20 PM

    hi,

    we hv to use JCO only.did u create the sld for your web server?update us on this.

    regards,

    guru

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I also get the following error. I've seen this written about before, but can not solve it. Once I get it, is there any way of clearing it without having to restart the J2ee Service

      sapjcorfc.dll already loaded in another classloader

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2005 at 06:05 PM

    To add to the scenario, I am using SAP Netweaver Developer studio on my client for development.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2005 at 04:21 PM

    To add, this is a connection from J2EE to SAP RFC.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2005 at 04:53 PM

    If you do not want to include the JCO.jar in you application, you can make a weak link to it within you application-j2ee-engine.xml.

    I got this from another posting from Bhavik Devisha (Thank you) but here is a step by step.

    From the SAP Netweaver Developer Studio:

    Prerequisites:

    1) Web Archive

    2) Application Archive

    Steps

    1) Expand your Application Archive (EAR) and double click on the application-j2ee-engine.xml.

    2) In the "General" tab select "References" and click on "Add"

    3) In secondary window click on the "Select Library/interface/service" button.

    4) Put a check in the box next to the package "com.sap.mw.jco" and click the "OK" button.

    NOTE:

    Make sure that if you update the package and libraries on the server, that you also do it on your client development box. This way you are using the same versions and you won't run into conflicts based on deprecations and such.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi nAthan,

      Thats true. Just add Additional libraries you required at design time. And for runtime you need to make a reference in application-j2ee-engine.xml file as you have explained in above post.

      For the first question, you can write your code to create connection pool and you can also specify the pool size at runtime in your code.

      Regards,

      Bhavik

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.