Simple tool generating ready-to-use Hibersap-annotated Java classes by reading SAP ERP ECC/S4 Function Module
Hibersap helps developers of Java applications to call business logic in SAP backends. It defines a set of Java annotations to map SAP function modules to Java classes as well as a small, clean API to execute these function modules and handle transaction and security aspects.
Hibersap's programming model is quite similar to those of modern O/R mappers, significantly speeding up the development of SAP interfaces and making it much more fun to write the integration code.
- direct access to target SAP ERP ECC/S4 instance (by VPN or LAN)
- SAP JCO3 libraries: download and extract to
libs/sapjco3
so that you havelibs/sapjco3/sapjco3.jar
Create a file with SAP ERP ECC/S4 destination settings like ECQ.jcoDestination
jco.client.ashost=HOST
jco.client.sysnr=00
jco.client.client=100
jco.client.user=USERNAME
jco.client.passwd=PASSWORD
jco.client.lang=en
As an example to generate Hibersap Java classes for SAP function module ZFUNCTION1
from destination ECQ
saved in ECQ.jcoDestination
file:
./gradlew run --args="-sapDestination ECQ -sapFunctionModule ZFUNCTION1"
gradle.bat run --args="-sapDestination ECQ -sapFunctionModule ZFUNCTION1"
Inside folder generated-sources
you'll get the generated Java classes.