Java and SAP Business One SDK DI API Tutorial (Part One)

This is the first of a series of tutorials, that will show you how to use DI API in your Java application.

Prerequisites

Before we start, there are a few things you’ll need installing on your development machine:

Java Platform (JDK)

The latest, the better. Grab a copy from http://www.oracle.com/technetwork/java/javase/downloads/index.html

SAP Business One DI API

This package contains Java libraries that we will be using to connect to SAP server. If you have SAP Business One Client already installed on your PC, you should also have DI API. Go to C:\Program Files\SAP\SAP Business One DI API\JCO\LIB (64-bit installation) or C:\Program Files (x86)\SAP\SAP Business One DI API\JCO\LIB (32-bit installation) and check if you have the following files:

sap0005

If you do, great! If you don’t have SAP Business One Client installed, you can just grab the DI API installer from Packages or Packages.x64 folder on SAP B1 installation media. Run the installer and when you get to the Setup Type, select Custom.

sap0002

On the component selection screen, make sure that JCO is selected. This is the Java connector that we’ll need. Go through the rest of the wizard and finish the installation.

sa0004

Integrated Development Environment

This is optional and entirely up to you, which IDE, if any, you’ll be using. For the purpose of this tutorial, I will be using Netbeans.

 

Go to Part Two

You may also like...

3 Responses

  1. Ajay kumar says:

    where can i get DI API?

    • Rafał Adam Rozmus says:

      I’m not aware of any public direct link where you can download DI API. You need access to SAP Business One installation media. If you’re not working for SAP Partner or SAP customer, then it will be nearly impossible to get a copy of DI API.

      • Ajay Kumar says:

        Thanks Rafał Adam Rozmus . Can you Please Share me any Document or Url for steps to connect Java and SAP B1 along with DI API Connection.

Leave a Reply

Your email address will not be published. Required fields are marked *