Skip to Content

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.

image

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

To report this post you need to login first.

4 Comments

You must be Logged on to comment or reply to a post.

  1. Alvaro Tejada Galindo
    Ignacio:

    Everybody know that I’m not a Java fan…But this webblog really made my day -:D It seems fair easy to deploy an application…Very interesting…Hope I can try it one of these days -:)

    Got any interest on Flex development???

    Greetings,

    Blag.

    (0) 
    1. Ignacio Hernández Post author
      Sure Blag, I am studing Flex and others RIA platforms (like Microsoft Silverlight) too, JavaFX come like part of JDK 1.5 used in SAP NetWeaver 7.1, you don’t need other compiler, it’s inside!
      (0) 

Leave a Reply