Overview
The sap2java open source project provides a developer-friendly API for working with the Open Enterprise Foundation's SAP Java Connector
. The project also includes a useful tool for the automatic generation of Java data object classes from an SAP remote-enabled function (RFC) interface. The iJAG group has modified the sap2java source code to expand its functionality to include handling of more complex RFC interfaces than the original project allowed. The source code requires occasional enhancement as additional SAP data types not currently accommodated are used by SAP RFC developers.
Generate Java Data Object Classes from an SAP Remote-enabled Function Interface
- In Eclipse, check out or update the sap2java project. Refer to the iJAG FAQ for instructions on checking out or updating an Eclipse project.
Make sure you have the sap2java project checked out:
- Check out the sap2java project from svn (go to idd-svn/sap2java/trunk and check it out)
- Create the site dir under the project and copy the ApplicationLocal.properties file from site-templates into it; Edit the file to reflect your local setup
If you already have it checked out, make sure it's up to date by doing Team > Update.
Generate proxy classes for SAP RFCs, in the sap2java project:
- Open up src/com/sap/bapi/mapper
- Right click testSAP2Java and go to Run As...
- Create a new Java application run profile (if there isn't already one from a previous run)
- Click the Arguments tab
- Add 3 params in the box:
- The directory in your project where proxies need to go, e.g.
Unknown macro: {workspace-dir}/vpis/src
- The package name of the generated proxies, e.g. edu.mit.vpis.proxy
- The name of the rfc
- Click run
This will generate proxies in your actual app directory, which you may need to refresh (to see them).
Revision History
(latest on top)
Date |
Documentation Updated By |
Description of Change |
---|---|---|
16-Aug-2007 |
Amy King |
Original Version |