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

Using jco to acess sap database

Hi all...

we are very new to SAP development.

our aim is use SapDatabase as below.

j2meclient-(http)->sapwebas -(usingjco) ->sap database

now the problem is where to write jco program to fetch the database.

Plzzz help us out in this

Thanks and regards

Preethi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2006 at 12:12 PM

    Hi Preethi,

    I need more Information about your scenario.

    Do you use the WAS only because of the jCo?

    If so then you can develop the application on client side, as a WAS is not necessary for jCo communication.

    Regards,

    Edgar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2006 at 03:01 PM

    hello preethi,

    you can write a servlet service to run on WAS that will

    invoke the BAPI from your backend server using JCO. from

    your client you can POST your data to that service using

    HTTP then.

    if you want to directly access the DB server rather than

    BAPI, you have to use java sql.

    good luck.

    jo

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi folks,

      Write a simple Remote Enabled Function Module in the backend.

      This function module should have the logic to interact with the database. It could be as simple as just getting the data from the Front end using JCo and pushing it into the respective table and reteriving from the same (when the RFC is executed).

      In your Servlet, use JCo to connect to this R/3 System and Execute the Function Module giving the respective parameters. (Refer SAP JCo java docs for the usage of APIs). You can definitely achieve your business functionality with the APIs of JCo.

      Good Luck.

      Regards

      Ak.

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.