Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
titleOn This Page
Table of Contents
indent2em
stylenone
typelist
separatorpipe

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

  1. Check out or update the sap2java Eclipse project.  If needed, refer to the iJAG FAQ for instructions on checking out an Eclipse project.
  2. In the sap2java project, open package

...

  1. src/com/sap/bapi/mapper.

...

  1. Right-click

...

  1. on

...

  1. class,

...

  1. testSAP2Java,

...

  1. and

...

  1. select

...

  1. "Run

...

  1. As..."

...

  1. from

...

  1. the

...

  1. context

...

  1. menu.

...

  1. Create

...

  1. a

...

  1. new

...

  1. Java

...

  1. Application

...

  1. run

...

  1. profile

...

  1. for

...

  1. testSAP2Java

...

  1. or

...

  1. open

...

  1. its

...

  1. previously

...

  1. created

...

  1. profile,

...

  1. then

...

  1. select

...

  1. the

...

  1. "Arguments"

...

  1. tab.

...

  1. In

...

  1. the

...

  1. "Program

...

  1. arguments"

...

  1. text

...

  1. area,

...

  1. add

...

  1. the

...

  1. following

...

  1. lines: 
Code Block

 

workspace_location ... the target project's source code directory (wrapped in double-quotes), e.g., "${workspace_loc}/myproject/src" 
package_name ... the package into which the generated classes will be written, e.g., edu.mit.myproject.proxy 
rfc_name ... the name of the RFC for which Java data object classes will be generated, e.g., Z_UT_MY_RFC

# 


  1. Click

...

  1. the

...

  1. "Run"

...

  1. button.

...

  1.   The

...

  1. requested

...

  1. Java

...

  1. data

...

  1. object

...

  1. classes

...

  1. are

...

  1. generated.

...

  1.   You

...

  1. may

...

  1. need

...

  1. to

...

  1. refresh

...

  1. your

...

  1. project

...

  1. to

...

  1. see

...

  1. the

...

  1. change.

...

Revision

...

History

...

(latest

...

on

...

top)

...

Date

Documentation Updated By

Description of Change

16-Aug-2007

...

Amy

...

King

Original Version