You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

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.

Instructions for Use

Make sure you have the sap2java project checked out:

  1. Check out the sap2java project from svn (go to idd-svn/sap2java/trunk and check it out)
  2. 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:

  1. Open up src/com/sap/bapi/mapper
  2. Right click testSAP2Java and go to Run As...
  3. Create a new Java application run profile (if there isn't already one from a previous run)
  4. Click the Arguments tab
  5. 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
  1. 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

Revision History

(latest on top)

Date

Documentation Updated By

Description of Change

16-Aug-2007

Amy King

Original Version

  • No labels