Chapter 6

Section 6.6

Reviewing the Sample Projects

Building and Deploying the prjIDocInbound Sample Project

public com.stc.codegen.util.TypeConverter typeConverter;

public void inputMATMAS( com.stc.sapale.iDOC_MATMAS04_4X_46C.IDOC_MATMAS04_4X_46C input, com.stc.sapale.iDOC_MATMAS04_4X_46C.IDOC_MATMAS04_4X_46C output, com.stc.connector.appconn.file.FileApplication FileClient_1 )

throws Throwable

{

FileClient_1.setByteArray( input.marshal() ); FileClient_1.writeBytes();

}

}

6.6.4Create the Business Process

The next step in the sample is to create the bpIDocInbound eInsight Business Process in which the business rules are defined.

Steps required to create the Business Process include:

1Right-click your new Project in the Enterprise Designer’s Project Explorer, and select New > Business Process from the shortcut menu. The eInsight Business Process Designer appears and BusinessProcess1 is added to the Project Explorer tree. Rename BusinessProcess1 to bpIDocInbound.

2Drag a IDOC_INBOUND_ASYNCHRONOUSReceive operation, located under the RFC_IDOC_INBOUND_ASYNCHRONOUS OTD to the Business Process canvas. The following two Activities are created:

ŠRFC_IDOC_INBOUND_ASYNCHRONOUS.IDOC_INBOUND_ASYNCHRON OUSReceive.Receive

ŠRFC_IDOC_INBOUND_ASYNCHRONOUS.IDOC_INBOUND_ASYNCHRON OUSReceive.Reply

Figure 70 bpIDocInbound Business Rule

3From the Business Process toolbar, click the Branching Activities icon and drag a Decision from the drop-down list.

eWay™ Adapter for SAP BAPI User’s Guide

100

Sun Microsystems, Inc.

Page 100
Image 100
Sun Microsystems SAP BAPI manual Steps required to create the Business Process include, BpIDocInbound Business Rule