Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
h1. sap2java Overview

The sap2java project provides an API similar to SAP NetWeaver's proxy generation wizard.  We have modified the source code of sap2java-1.0.5 to expand its functionality to include handling of more complex RFC interfaces than the original project allowed.

h1.  Instructions for Use

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. {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).

Other references:

http://sourceforge.net/projects/eclipsesap2java