|
Sun Adapter for SAP BAPI API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.stc.connector.sapbapiadapter.sapbapi.ConnectorClient com.stc.connector.sapbapiadapter.sapbapi.BapiClient
public class BapiClient
A class that encapsulates all the necessary objects essential to executing (t)RFC-enabled ABAP/4 Functions on SAP (client mode)
Field Summary |
---|
Fields inherited from class com.stc.connector.sapbapiadapter.sapbapi.ConnectorClient |
---|
XACT_COMMITROLLBACK_BAPI_STR, XACT_NONE_STR, XACT_TRFC_STR, XACT_XA_STR |
Constructor Summary | |
---|---|
BapiClient(SAPConnector sapconn)
Constructs a BapiClient object with the given properties. |
Method Summary | |
---|---|
void |
connect()
Creates a JCO Client connection to the Application Server. |
void |
disconnect()
Closes the JCO Client connection to the Application Server. |
boolean |
execute(com.sap.mw.jco.JCO.Function rfm)
Executes (calls) synchronously the BAPI/RFC function on the Application Server. |
boolean |
execute(com.sap.mw.jco.JCO.Function rfm,
java.lang.String eid,
java.lang.String queueName)
Executes (calls) asynchronously the BAPI/RFC function on the R/3 Application Server but in an ordered (queued) fashion. |
boolean |
executeAsynchronous(com.sap.mw.jco.JCO.Function rfm,
java.lang.String eid)
Executes (calls) asynchronously the BAPI/RFC function on the R/3 Application Server. |
boolean |
executeAsynchronous(com.sap.mw.jco.JCO.Function rfm,
java.lang.String eid,
java.lang.String queueName)
Executes (calls) asynchronously the BAPI/RFC function on the R/3 Application Server but in an ordered (queued) fashion. |
void |
setCollabModeBPEL()
|
Methods inherited from class com.stc.connector.sapbapiadapter.sapbapi.ConnectorClient |
---|
commit, getBapiOTDVer, getClient, getClientMaxDBRows, getClientTiDManager, getClientTransactionalMode, getConnector, getLastActivityTime, getLastError, getSAPConnector, getSystemID, getTidDatabase, init, isClientAvailable, isClientDirty, isClientTrfcEnabled, isTrfcEnabled, rollback, setBapiOTDVer, setClient, setClientDirty, setClientNeeded, setClientTransactionMode, setLastActivityTime, setLastError, setMaxDBRows, setSAPConnector, setSystemID, setTidDatabase |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BapiClient(SAPConnector sapconn)
BapiClient
object with the given properties.
Method Detail |
---|
public boolean execute(com.sap.mw.jco.JCO.Function rfm) throws SAPException
rfm
- Remote Function Module to execute.
SAPException
- com.stc.connector.sapbapiadapter.sapbapi.SAPException
Thrown if something went wrong during communication, marshalling, etc.public boolean executeAsynchronous(com.sap.mw.jco.JCO.Function rfm, java.lang.String eid) throws SAPException
confirmTID()
is automatically called (when the JCS
Transaction Manager commits) to allow R/3 to delete processed TIDs (Transaction ID)
from its tracking database.
rfm
- Remote Function Module to execute.eid
- The Event ID of the triggering event (via
getHashKey()
) to be used for this call.
SAPException
- Thrown if something went awry in the called function.public boolean executeAsynchronous(com.sap.mw.jco.JCO.Function rfm, java.lang.String eid, java.lang.String queueName) throws SAPException
confirmTID()
is
automatically called (when the JCS Transaction Manager commits) to allow R/3 to
delete processed TIDs (Transaction ID) from its tracking database.
rfm
- Remote Function Module to execute.eid
- The Event ID of the triggering event (via
getHashKey()
) to be used for this call.
If null, a synchronous RFC execute is done.queueName
- Queue to determine ordering. If null, a
tRFC (asynchronous) execute is done.
SAPException
- Thrown if something went awry in the called function.public boolean execute(com.sap.mw.jco.JCO.Function rfm, java.lang.String eid, java.lang.String queueName) throws SAPException
confirmTID()
is
automatically called (when the JCS Transaction Manager commits) to allow R/3 to
delete processed TIDs (Transaction ID) from its tracking database.
rfm
- Remote Function Module to execute.eid
- The Event ID of the triggering event (via
getHashKey()
) to be used for this call.
If null, a synchronous RFC execute is done.queueName
- Queue to determine ordering. If null, a
tRFC (asynchronous) execute is done.
SAPException
- com.sap.mw.jco.JCO.AbapException
Thrown if something went awry in the called function.public void connect() throws SAPException
SAPException
- com.stc.connector.sapbapiadapter.sapbapi.SAPException
Thrown if something went wrong during connection creation.public void disconnect() throws SAPException
SAPException
- com.stc.connector.sapbapiadapter.sapbapi.SAPException
Thrown if something went wrong during closing connection.public void setCollabModeBPEL()
|
Sun Adapter for SAP BAPI API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |