SAP2Java 1.0.3 API

com.sap.bapi.listener
Class SAPClientBase

java.lang.Object
  |
  +--com.sap.bapi.listener.SAPClientBase
All Implemented Interfaces:
SAPBase
Direct Known Subclasses:
SAPClientBapiCompanyCodeGetDetails, SAPClientBapiCompanyCodeGetList, SAPClientBapiCustomerGetList

public class SAPClientBase
extends java.lang.Object
implements SAPBase

This class implements the SAPBase class and is the base class for all classes that want to handle calls Java to R3 (inbound).


Field Summary
 
Fields inherited from interface com.sap.bapi.listener.SAPBase
getterPrefix, inputPrefix, outputPrefix, setterPrefix, SID
 
Constructor Summary
SAPClientBase(java.lang.String host, java.lang.String clientID, java.lang.String userName, java.lang.String passWord)
          Method SAPClientBase.
 
Method Summary
 void buildAlias()
          Method buildAlias.
 com.sap.mw.jco.JCO.Function createFunction(java.lang.String name)
          Looks up the function module definition from the R3 repository.
 void execute(java.lang.String functionName)
          Execute the function module in R3.
 void execute(java.lang.String functionName, java.lang.Object inputParams, java.lang.Object[] tableParams)
          Execute the function module in R3.
 java.lang.Object[] getInput()
          Method getInput.
 java.lang.Object[] getOutput()
          Method getOutput.
static java.lang.String getPackageName()
          Method getPackageName.
 java.lang.Object[] getTables()
          Method getTables.
 void handleRequest(com.sap.mw.jco.JCO.Function function)
          The implementation is provided if the class extends JCO.Server .
 void setInput(java.lang.Object out)
          Method setInput.
static void setPackageName(java.lang.String packageName)
          Method setPackageName.
 void setTables(java.lang.Object[] tab)
          Method setTables.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAPClientBase

public SAPClientBase(java.lang.String host,
                     java.lang.String clientID,
                     java.lang.String userName,
                     java.lang.String passWord)
              throws BAPIException
Method SAPClientBase.

Parameters:
host -
clientID -
userName -
passWord -
Method Detail

createFunction

public com.sap.mw.jco.JCO.Function createFunction(java.lang.String name)
Looks up the function module definition from the R3 repository. Once this returns it gets the meta data associated with the function (Import, Export, Table parameters). This method is automatically called . Method createFunction.

Returns:
JCO.Function

execute

public void execute(java.lang.String functionName)
             throws BAPIException
Execute the function module in R3. Takes the name of the function module as the parameter Note: The input / table parameters should be populated before calling this. Method execute.

BAPIException

execute

public void execute(java.lang.String functionName,
                    java.lang.Object inputParams,
                    java.lang.Object[] tableParams)
             throws BAPIException
Execute the function module in R3. Takes the name of the function module, input and table values as parameters. Method execute.

Parameters:
functionName -
inputParams -
tableParams -
BAPIException

handleRequest

public void handleRequest(com.sap.mw.jco.JCO.Function function)
                   throws BAPIException
Description copied from interface: SAPBase
The implementation is provided if the class extends JCO.Server .

Specified by:
handleRequest in interface SAPBase
Parameters:
function -
Throws:
BAPIException

getInput

public java.lang.Object[] getInput()
Method getInput.

Returns:
Object[]

getTables

public java.lang.Object[] getTables()
Method getTables.

Returns:
Object[]

buildAlias

public void buildAlias()
Method buildAlias.


setTables

public void setTables(java.lang.Object[] tab)
               throws MappingException
Method setTables.

Parameters:
tab -
MappingException

setInput

public void setInput(java.lang.Object out)
              throws MappingException
Method setInput.

Parameters:
out -
MappingException

getPackageName

public static java.lang.String getPackageName()
Method getPackageName.

Returns:
String

setPackageName

public static void setPackageName(java.lang.String packageName)
Method setPackageName.

Parameters:
packageName -

getOutput

public java.lang.Object[] getOutput()
Method getOutput.

Returns:
Object[]

SAP2Java 1.0.3 API

This is a partial documentation. Send comments to-- sid_bhat@hotmail.com