Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos

Try this five minutes tutorial and run your first JavaFX application calling a BAPI


Prerequisites:
1. Install JavaFX Eclipse plugin in your Developer Studio 7.1 .
https://openjfx.dev.java.net/javafx-eclipse-plugin-install.html

2. Make the JavaFX HelloWorld tutorial
http://www.mrbool.com/articles/viewcomp.asp?comp=5549

JavaFX BAPI Call Tutorial:
1. Reference JCO library
Click right button over helloworld proyect at Package Explorer, Properties, Java Build Path, Libraries, Add External JARs, search sapjco.jar in your Developer Studio plugins folder ( something like "C:\Program Files\SAP\IDE\IDE71\eclipse\plugins\com.sap.mw.jco\lib" )

2. Create a Java class with Backend Call
Click Right button over helloworld proyect at Package Explorer, New, Class, name: BAPICall, put this class code and change attributes to connect to your SAP system:

3. Create JavaFX main file
Create BAPICall.fx JavaFX file ( like in new JavaFX file creation in Helloworld tutorial ), put this code:

4. Set JavaFX class to run.
In main menu: Run, Run..., JavaFX application, HelloWorld JavaFX, Arguments, Program arguments, change "HelloWorld" to "BAPICall", Apply and RUN!!!

5. Runtime:
You are going to call to BAPI_FLIGHT_GETLIST with an AirlineID filter.


JavaFX Reference
http://www.onjava.com/pub/a/onjava/2007/07/27/introduction-to-javafx-script.html
https://openjfx.dev.java.net/Learning_More_About_JavaFX.html

SAP JCo Client Programming Reference
http://help.sap.com/saphelp_nw04/helpdata/en/35/42e13d82fcfb34e10000000a114084/frameset.htm

4 Comments