Aug 18th 2003
You should have SAP JCO installed on your machine .
Just unzip the sap2java.1.0.5.jar in the <eclipse_home>\plugins\directory. The plugins directory will now have com.sap.plugin.Sid1.X.X directory in it. Copy your jco.jar/sapjco.jar file into this directory
The .jar file includes the SAP2Java 1.0 distribution.
How to use it
The plugin is a Create New Wizard plugin. You can invoke it by selecting File | New |
Other | SAP2Java Wizard|SAP2Java.
Enter the following values -
Container - Name of the project where you want to generate the java classes
R/3 Host Name: - Name of the SAP R3 system
Client: R/3 Client name
System no: R/3 system number
Username: Login Id of R/3 user
BAPI Name: Function module for which you want to generate java classes.
Package Name: Name of the package where you want to put all the generated java classes.
R/3 Host Name: 220.127.116.113
System no: 00
BAPI Name: BAPI_COMPANYCODE_GETDETAIL
Package Name: com.sap.generated
After running the wizard, java classes generated by SAP2Java will be added to the project.
Just recompile the entire application to get the .class files.
The Import Parameters are generated as Input+nameOfTheFunctionModule.java
The Export Parameters are generated as Output+nameOfTheFunctionModule.java
Tables/Structures are generated by the same name.
Sample code for an outbound/inbound calls included ( CustomListener.java ).
Siddhartha Bhattacharya firstname.lastname@example.org