Professional Documents
Culture Documents
03 Java Connector RFC Provider Service SOL
03 Java Connector RFC Provider Service SOL
03 Java Connector RFC Provider Service SOL
1. Development Objectives
Creating a J2EE Project and using the SAP Java Connector (SAP JCO) process a
function call made from SAP R/3. The J2EE Project will contain an EAR
application and an EJB-JAR application. The EJB Project contains a Stateless
Session Bean with a processFunction () business method that will be called by the
JCO RFC Provider Service in WAS. The EJB JNDI name is the name of the
calling SAP R/3 function module Z_JCO_RFC_PROVIDER.
2. Result
As a result of the exercise you will be able to see the export parameter value of the
function module populated from J2EE.
3. Prerequisites
3-1 You have configured a RFC Destination in Visual Admin JCO Rfc
Provider tab and it is running.
3-2 You have configured a destination in SM59 and tested the link to the J2EE
Server.
3-3 The function module Z_JCO_RFC_PROVIDER is defined in SAP R/3.
3-4 You have opened the Netweaver Developer Studio, imported the projects
and selected the J2EE perspective.
4. Overview Developing
Z_JCO_RFC_PROVIDERBean
The Bean implementation class.
This contain the business method public
void processFunction(JCO.Funtion fn)
which is called by the JCO Rfc service.
function.setExportParameterList(export);
On successful execution the export parameter will have the value ‘From EJB’
populated from the EJB business method.
To View the values sent from SAP R/3 use the Visual Admin logviewer –