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

Java interfacing - Newbie question

Hi,

We currently have some existing Java client applications which have been written to interface with our existing ERP solutions, one being JDE and another being a bespoke one.

We are about to begin a move toward using SAP as an ERP and would like, initially, to keep these front end applications but connect them to SAP.

We are right at the start here, with zero sap experience, so would appreciate some advice on the SAP tools we should be looking at to achieve this. We are assuming SAP supports the concept of calling business functions, such as "get customer" and "create sales order" and so on, via some kind of Java base API/Interface.

Could someone point us in the right direct?

Any working demo installs (minisap?) with example code would also be good.

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 22, 2011 at 05:00 AM

    Hi,

    SAP provides Jco(Java Connector ) API to connect SAP from Java side. To achieve this

    i) Download SAP JCo connector from service market place(It contains SAP jco.jar files with examples) https://websmp207.sap-ag.de/connectors

    ii) In-order to connect to SAP you need to have BAPI(Business Application Programming interface) in SAP System. Usually BAPI is written by ABAP Programmer. Hence contact them.

    iii) Once you have BAPI, you can use the same in Java Program.

    Also lots & lots of threads are there in SDN. Try to search.

    Thanks,

    Arun

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 12, 2011 at 08:06 AM

    The use of SAP Java Connector (Jco) is the "classic" connection method between Java and ABAP.

    You would call a BAPI and use one of its methods via JCo.

    However you should also have look at the possibility to create so called ABAP Proxies in your ABAP System.

    An ABAP Proxy acts as a wrapper arround a BAPI. The advantage of an ABAP Proxy is that it can be exposed as a WebService.

    So on Java side you can use known technology (call a WebService) to connect to ABAP.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks,

      I'll look at the Proxy ABAP interface

      My main issue now is getting the JCo jars! Everything I have downloaded and installed so far is trial. However, the link to download the JCo is in the Sap Marketplace. Although registration is free, you need a customer ID. Since I'm using the trial I do not have a customer ID. So I am in a catch 22, I can't trial it because I'm not a customer!

      Anyone know how I can get the jars?

  • author's profile photo Former Member
    Former Member
    Posted on May 12, 2011 at 04:51 PM

    Do you have the SAP Netweaver Development Studio installed ?

    Here you can find the sapjco.jar in the ../eclipse/plugins folder.

    On my PC it is in ...\eclipse\plugins\com.sap.mw.jco_2.0.0.080222130515

    SAP Netweaver Development Studio can be downloaded from SDN by the way.

    Add a comment
    10|10000 characters needed characters exceeded

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.