The links to the following JAVA code provides a simple example of how JCo can be used to connect to SAP and
retrieve data via a BAPI function module. It then displays the data in a simple dropdown menu
using swing functionality.
To implement this example simply copy the code for the following two class into a class(.java)
file (i.e. within eclipse). Just follow links below for class code.
Java Class to retrieve data from SAP
Use Java to retrieve data from SAP and create instance of a swing application to display it
Swing Application Class
Displays array of material numbers as drop down box