Sun Microsystems eWay SAP BAPI User Manual
Page 79
Chapter 6
Section 6.5
Reviewing the Sample Projects
Building and Deploying the prjBAPIOutbound Sample Project
eWay™ Adapter for SAP BAPI User’s Guide
79
Sun Microsystems, Inc.
Figure 49 jcdFlightGetList Collaboration
8
The resulting collaboration should display the following code:
package prjBAPIOutbound;
public class jcdFlightGetList
{
public com.stc.codegen.logger.Logger logger;
public com.stc.codegen.alerter.Alerter alerter;
public com.stc.codegen.util.CollaborationContext collabContext;
public com.stc.codegen.util.TypeConverter typeConverter;
public void flightInput( ud1.CustBAPI_1621432015.CustBAPI input,
ud1.CustBAPI_1621432015.CustBAPI output, flight.Flight Flight_1 )
throws Throwable
{
Flight_1.getGetList().getImportParams().setAIRLINE( input.getTest1() );
Flight_1.getGetList().getImportParams().setMAX_ROWS( 3 );
Flight_1.getGetList().execute();
if (Flight_1.getGetList().hasRETURN()) {
for (int i1 = 0; i1 < Flight_1.getGetList().countRETURN(); i1 += 1) {
output.setTest1( "OUTPUT : Type = ".concat( Flight_1.getGetList().getRETURN( i1
).getTYPE() + " ID = " + Flight_1.getGetList().getRETURN( i1 ).getID() + " NUM = " +
Flight_1.getGetList().getRETURN( i1 ).getNUMBER() + " MESSAGE = " +
Flight_1.getGetList().getRETURN( i1 ).getMESSAGE() ) );
}
}
}
}