Camel Timer-> SAP ABAP RFC call(via Camel Processor) -> FileSystem
I wrote a SpringBoot+Apachecamel Application to demonstrate how to call SAP's ABAP function' via Camel Processor and store the result at file system.
copy jco jars, .dll (for windows), and .so(for linux) files to lib directory as below shown
- Windows
set SAPSYSTEM=<sap system name>
set ASHOST=<jco client ashost>
set SAPCLIENTID=<sap system clientId>
set USERNAME=<sap username>
set PASSWORD=<sap password>
- Linux
export SAPSYSTEM=<sap system name>
export ASHOST=<jco client ashost>
export SAPCLIENTID=<sap system clientId>
export USERNAME=<sap username>
export PASSWORD=<sap password>
run test
mvn -Dtest=sample.camel.SampleJCOClientApplicationTests test
run program
mvn spring-boot:run
You will see ABAP function's result at console and it will also be stored at file directory sapoutput