Skip to content

vatri/java-to-sap-connection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

java-to-sap-connection

Connect Java application to SAP and fetch a table.

Requirements:

  1. SAP JCO ZIP with JAR and DLL files (make sure you have downloaded correct architecture)
  2. DLL path added to PATH system environment variable
  3. JDK and JRE 8

How to run

  • Run "git clone [THIS REPO URL]" in your CMD/terminal
  • Open the folder in IDE
  • Add JAR to build path
  • Update connection parameters in SapConn.java source file
  • Open your SAP R/3 system and create Z_JCO_TEST function module with following params - import: PI_PARAM (char); TABLE: PO_OUT (structure with fields MANDT, NAME and BIRTH)
  • Compile and run using IDE tools
  • Open http://localhost:8080/
  • Enter your SAP password and hit enter
  • Now you should get JSON with list of all employees from HR module

About

Connect Java application to SAP and fetch a table.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages