Chapter 6

Section 6.7

Reviewing the Sample Projects

Additional Sample Project Scenarios

6.7Additional Sample Project Scenarios

The following section describes an additional scenario involving Transactional Remote Function Calls (tRFCs)

6.7.1About Sending IDocs to SAP R/3 Using tRFCs

This section describes the procedure to send IDocs to SAP R/3 using the

IDOC_INBOUND_ASYNCHRONOUS RFC OTD and the BAPI eWay.

The RFC OTD used to send/receive IDOCs

The figure below shows the RFC OTD, IDOC_INBOUND_ASYNCRONOUS created via the SAP BAPI OTD Wizard.

Figure 88 RFC OTD

Web Service Methods

OTD Methods

In the OTD Editor you can see that this OTD has marshal, unmarshal methods, as well as an executeAsyncronous method which takes a string EID (event ID) as a parameter.

Sending or receiving IDOCs to or from SAP is an asynchronous operation. This OTD uses the executeAsyncronous method to send IDOCs in a Java Collaboration.

In the Project explorer, as seen in Figure 88, you see the following web service methods on the OTD:

eWay™ Adapter for SAP BAPI User’s Guide

116

Sun Microsystems, Inc.

Page 116
Image 116
Sun Microsystems SAP BAPI manual Additional Sample Project Scenarios, About Sending IDocs to SAP R/3 Using tRFCs