|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.connector.Connector
com.ibm.di.connector.sapr3.aleidoc.SapALEIDocConnector
public class SapALEIDocConnector
The SAP R/3 and ERP ALE IDoc Server Connector.
The connector enables external applications, using TDI, to access SAP
Intermediate Documents (IDocs) sent from an SAP R/3 or ERP client system. It
supports the following TDI Connector Modes: Iterator The connector
supports design time schema query via querySchema(java.lang.Object)
. When parsing is
enabled the input attribute mapping must be created manually based on the
IDoc message type being processed.
The configuration parameters of the connector are described below. IDoc
Server SAP Gateway Host
The SAP Gateway host name or IP address for the R/3 RFC connection.
IDoc Server SAP Gateway Service
The SAP Gateway service name for R/3 RFC connection. Standard naming
convention is the string "sapgw" appended with the SAP System Number. i.e. A
SAP System with System number "00" would normally have a gateway service of
"sapgw00".
IDoc Server Program ID
The SAP JCo Server external program identifier. This is used when configuring
the SAP RFC destination to be used by logical system that will represent the
TDI IDco Server Connector in SAL ALE distrbution models.
IDoc Server Program ID
The SAP JCo Server external program identifier. This is used when configuring
the SAP RFC destination to be used by logical system that will represent the
TDI IDco Server Connector in SAL ALE distrbution models.
IDoc Server Unicode Connection?
The SAP JCo Server needs this set when the client SAP R/3 or ERP system
requires a unicode RFC connection.
IDoc Server Optional Connection Parameters
The SAP JCo Server optional RFC connection parameters. Delimite with space
char. i.e. "jco.server.trace=1 jco.server.sysnr=00"
IDoc Server Poll Time
The Connector waits for incoming IDoc requests to be created on an internal
Inbound IDoc queue. This is the period of time between checks on the queue
for new Inbound IDoc requests. This time is also used in the TID Management
processing when waiting for a particular transaction to be confirmed by the
SAP Client and the connectors Iterator mode functionality.
IDoc Client Number
The SAP JCo Client RFC connection parameter that identifies the SAP System
client identifier from which IDoc requests are made on the Connector.
IDoc Client User
The SAP JCo Client RFC connection parameter that identifies the SAP User
Account used to authenticate the RFC connection.
IDoc Client Password
The SAP JCo Client RFC connection parameter that identifies the SAP User
Account's password used to authenticate the RFC connection.
IDoc Client Lang
The SAP JCo Client RFC connection parameter that identifies the RFC
connection logon language.
IDoc Client Hostname
The SAP JCo Client RFC connection parameter that identifies the client SAP
R/3 or ERP system's hostname or IP address.
IDoc Client System Number
The SAP JCo Client RFC connection parameter that identifies the client SAP
R/3 or ERP system number.
IDoc Client SAP Gateway Servicer
The SAP JCo Client RFC connection parameter that identifies the SAP Gateway
service name for R/3 RFC connection. Standard naming convention is the string
"sapgw" appended with the SAP System Number. i.e. A SAP System with System
number "00" would normally have a gateway service of "sapgw00".
IDoc Client SAP Gateway Host
The SAP JCo Client RFC connection parameter that identifies the SAP Gateway
host name or IP address for R/3 RFC connection.
IDoc Client Max Connections
The maximum allowed SAP JCo Client RFC connections in the internal JCo Client
Connection pool.
IDoc Client Optional Connection Parameters
The SAP JCo Server optional RFC connection parameters. Delimite with space
char. i.e. "jco.client.trace=1 jco.client.use_sapgui=1" pool.
IDoc As XML Only?
If set then only one attribute will be provided to represent the IDoc. This
attribute's value is an XML representation of the IDoc. pool.
Process SAP RFM Requests?
If set then any Remote Function Module calls made on the JCo Server will be
handled. The result is an attribute in the TDI entry who's value is an XML
represenation of the RFM invoked. pool.
Parse IDoc or RFM XML?
If set then any if the attributes representing the IDoc or RFM call as XML
are available, then they will be parsed with the appropriate TDI XML parser
attached. The only parser options are the DOM, SAX and XSLT TDI parsers.
Enable JCo Middleware Trace Logging?
If set then the JCo trace listener will be instantiated and attached to the
JCo IDoc Server. The trace messages and their level will be contained within
the TDI trace mechanism.
JCo Middleware Trace Level
Sets the minimum JCo trace level allowed to be captured by the TDI trace
mechanism.
JCo Middleware Trace File Path
Sets the path where the JCo trace files will be dumped.
Field Summary | |
---|---|
static java.lang.String |
ATTR_ARCKEY
|
static java.lang.String |
ATTR_CHILD_SEG_PREFIX
|
static java.lang.String |
ATTR_CIMTYP
|
static java.lang.String |
ATTR_CREDAT
|
static java.lang.String |
ATTR_CRETIM
|
static java.lang.String |
ATTR_DESC_SEG_PREFIX
|
static java.lang.String |
ATTR_DIRECT
|
static java.lang.String |
ATTR_DOCNUM
|
static java.lang.String |
ATTR_DOCREL
|
static java.lang.String |
ATTR_DOCTYP
|
static java.lang.String |
ATTR_EXPRSS
|
static java.lang.String |
ATTR_IDOC_AS_XML
|
static java.lang.String |
ATTR_IDOC_TID
|
static java.lang.String |
ATTR_IDOCTYP
|
static java.lang.String |
ATTR_LENGTH_STRING
|
static java.lang.String |
ATTR_MANDT
|
static java.lang.String |
ATTR_MESCOD
|
static java.lang.String |
ATTR_MESFCT
|
static java.lang.String |
ATTR_MESTYP
|
static java.lang.String |
ATTR_OUTMOD
|
static java.lang.String |
ATTR_RCVLAD
|
static java.lang.String |
ATTR_RCVPFC
|
static java.lang.String |
ATTR_RCVPOR
|
static java.lang.String |
ATTR_RCVPRN
|
static java.lang.String |
ATTR_RCVPRT
|
static java.lang.String |
ATTR_RCVSAD
|
static java.lang.String |
ATTR_REFGRP
|
static java.lang.String |
ATTR_REFINT
|
static java.lang.String |
ATTR_REFMES
|
static java.lang.String |
ATTR_RFM_AS_XML
|
static java.lang.String |
ATTR_SCHEMA_LENGTH
|
static java.lang.String |
ATTR_SCHEMA_NAME
|
static java.lang.String |
ATTR_SCHEMA_SYNTAX
|
static java.lang.String |
ATTR_SERIAL
|
static java.lang.String |
ATTR_SNDLAD
|
static java.lang.String |
ATTR_SNDPFC
|
static java.lang.String |
ATTR_SNDPOR
|
static java.lang.String |
ATTR_SNDPRN
|
static java.lang.String |
ATTR_SNDPRT
|
static java.lang.String |
ATTR_SNDSAD
|
static java.lang.String |
ATTR_STATUS
|
static java.lang.String |
ATTR_STD
|
static java.lang.String |
ATTR_STDMES
|
static java.lang.String |
ATTR_STDVRS
|
static java.lang.String |
ATTR_SYNTAX_STRING
|
static java.lang.String |
ATTR_TABNAM
|
static java.lang.String |
ATTR_TEST
|
protected java.util.Properties |
clientConnProps
|
static java.lang.String |
CONFIG_PARAM_IDOC_XMLONLY
|
static java.lang.String |
CONFIG_PARAM_PARSE_IDOC_XML
|
static java.lang.String |
CONFIG_PARAM_QUEUE_POLE_TIME
|
static java.lang.String |
CONFIG_PARAM_RFM_XML
|
static java.lang.String |
JCO_TRACE_PATH
|
static java.lang.String |
LINE_SEP
|
boolean |
mDebugEnabled
|
static java.lang.String |
NO
|
static java.lang.String |
OFF
|
static java.lang.String |
ON
|
protected com.sap.mw.idoc.IDoc.Repository |
sapALEIDocRepos
|
protected SapIDocServerImpl |
sapALEIDocServer
|
protected SapIDocServerListener |
sapALEIdocSrvrListener
|
protected com.sap.mw.jco.IRepository |
sapALEIRepos
|
protected java.util.Properties |
serverConnProps
|
static java.lang.String |
UNKNOWN_TID
|
static java.lang.String |
YES
|
Fields inherited from class com.ibm.di.connector.Connector |
---|
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER |
Constructor Summary | |
---|---|
SapALEIDocConnector()
Default constucter for SapALEIDocConnector object. |
Method Summary | |
---|---|
java.lang.String |
getJcoServerProgId()
|
ConnectorInterface |
getNextClient()
This method is to called for Server modes. |
Entry |
getNextEntry()
Returns a TDI entry that represents either an SAP client IDoc or RFM request. |
SapIDocServerListener |
getSapALEIdocApp()
|
com.sap.mw.idoc.IDoc.Repository |
getSapALEIDocRepos()
|
SapIDocServerImpl |
getSapALEIDocServer()
|
com.sap.mw.jco.IRepository |
getSapALEIRepos()
|
java.util.Properties |
getServerConnProps()
|
java.util.Map |
getTidIDocMap()
|
java.lang.String |
getVersion()
Returns the version of the connector based on source repository variables. |
void |
initialize(java.lang.Object o)
This method is called once after the connector configuration file has been provided by the caller. |
boolean |
isConnParamValueValid(java.lang.String key,
boolean mandatory)
Checks if a Connector configuration parameter is valid for use. |
java.lang.Object |
querySchema(java.lang.Object o)
This method is to populate the available connector variables for input and output mapping into AL work entry attributes. |
void |
reconnect()
This method is to called for all modes. |
void |
replyEntry(Entry requestResult)
This method is to called for Server modes. |
void |
selectEntries()
This method is to called for both Iterator and Server modes. |
void |
terminate()
This method is to called for all modes. |
void |
terminateServer()
This method is to called for all modes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.di.connector.ConnectorInterface |
---|
deleteEntry, findEntry, getConfiguration, getContext, getFindEntryCount, getFirstFindEntry, getMaxDuplicateEntries, getName, getNextFindEntry, getParam, getPushbackEntry, getRawConnectorConfiguration, isDeltaSupported, isExceptionFatal, isIOException, modEntry, modEntry, pushback, putEntry, queryOperations, queryReply, reconnect, registerScriptBeans, setConfiguration, setContext, setCurrent, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface |
Field Detail |
---|
public static final java.lang.String LINE_SEP
public static final java.lang.String UNKNOWN_TID
public static final java.lang.String ATTR_SCHEMA_NAME
public static final java.lang.String ATTR_SCHEMA_SYNTAX
public static final java.lang.String ATTR_SYNTAX_STRING
public static final java.lang.String ATTR_SCHEMA_LENGTH
public static final java.lang.String ATTR_LENGTH_STRING
public static final java.lang.String ATTR_IDOC_TID
public static final java.lang.String ATTR_IDOC_AS_XML
public static final java.lang.String ATTR_ARCKEY
public static final java.lang.String ATTR_MANDT
public static final java.lang.String ATTR_CREDAT
public static final java.lang.String ATTR_CRETIM
public static final java.lang.String ATTR_DIRECT
public static final java.lang.String ATTR_REFMES
public static final java.lang.String ATTR_REFGRP
public static final java.lang.String ATTR_STDMES
public static final java.lang.String ATTR_STD
public static final java.lang.String ATTR_STDVRS
public static final java.lang.String ATTR_REFINT
public static final java.lang.String ATTR_EXPRSS
public static final java.lang.String ATTR_DOCTYP
public static final java.lang.String ATTR_DOCNUM
public static final java.lang.String ATTR_DOCREL
public static final java.lang.String ATTR_IDOCTYP
public static final java.lang.String ATTR_CIMTYP
public static final java.lang.String ATTR_MESCOD
public static final java.lang.String ATTR_MESFCT
public static final java.lang.String ATTR_MESTYP
public static final java.lang.String ATTR_OUTMOD
public static final java.lang.String ATTR_RCVSAD
public static final java.lang.String ATTR_RCVLAD
public static final java.lang.String ATTR_RCVPFC
public static final java.lang.String ATTR_RCVPRN
public static final java.lang.String ATTR_RCVPRT
public static final java.lang.String ATTR_RCVPOR
public static final java.lang.String ATTR_SNDSAD
public static final java.lang.String ATTR_SNDLAD
public static final java.lang.String ATTR_SNDPFC
public static final java.lang.String ATTR_SNDPRN
public static final java.lang.String ATTR_SNDPRT
public static final java.lang.String ATTR_SNDPOR
public static final java.lang.String ATTR_SERIAL
public static final java.lang.String ATTR_TABNAM
public static final java.lang.String ATTR_STATUS
public static final java.lang.String ATTR_TEST
public static final java.lang.String ATTR_RFM_AS_XML
public static final java.lang.String ATTR_CHILD_SEG_PREFIX
public static final java.lang.String ATTR_DESC_SEG_PREFIX
public static final java.lang.String CONFIG_PARAM_QUEUE_POLE_TIME
public static final java.lang.String CONFIG_PARAM_IDOC_XMLONLY
public static final java.lang.String CONFIG_PARAM_RFM_XML
public static final java.lang.String CONFIG_PARAM_PARSE_IDOC_XML
public static final java.lang.String JCO_TRACE_PATH
public static final java.lang.String YES
public static final java.lang.String NO
public static final java.lang.String ON
public static final java.lang.String OFF
protected SapIDocServerListener sapALEIdocSrvrListener
protected java.util.Properties serverConnProps
protected java.util.Properties clientConnProps
protected com.sap.mw.jco.IRepository sapALEIRepos
protected com.sap.mw.idoc.IDoc.Repository sapALEIDocRepos
protected SapIDocServerImpl sapALEIDocServer
public boolean mDebugEnabled
Constructor Detail |
---|
public SapALEIDocConnector()
Method Detail |
---|
public java.lang.String getVersion()
getVersion
in interface VersionInfoInterface
public void initialize(java.lang.Object o) throws SapALEIDocConnectorException
initialize
in interface ConnectorInterface
initialize
in class Connector
o
- TDI config object. Not used.
SapALEIDocConnectorException
- When an error happens during class initialization.public boolean isConnParamValueValid(java.lang.String key, boolean mandatory)
key
- -
The key for the Connector configuration parameter being
checked.mandatory
- -
flag indicating if the Connector configuration parameter is
obligatory.
public Entry getNextEntry() throws SapALEIDocConnectorException
getNextEntry
in interface ConnectorInterface
getNextEntry
in class Connector
SapALEIDocConnectorException
- When an error occurs.ConnectorInterface.selectEntries()
public java.lang.Object querySchema(java.lang.Object o) throws SapALEIDocConnectorException
querySchema
in interface ConnectorInterface
querySchema
in class Connector
o
- TDI schema object. Not used.
SapALEIDocConnectorException
- When an error occurs.Entry
,
Vector
public void selectEntries() throws SapALEIDocConnectorException
selectEntries
in interface ConnectorInterface
selectEntries
in class Connector
SapALEIDocConnectorException
- When an error occurs.public ConnectorInterface getNextClient() throws SapALEIDocConnectorException
getNextClient
in interface ConnectorInterface
getNextClient
in class Connector
SapALEIDocConnectorException
- When an error occurs.public void replyEntry(Entry requestResult)
replyEntry
in interface ConnectorInterface
replyEntry
in class Connector
requestResult
- the information as an Entrypublic void terminateServer()
terminateServer
in interface ConnectorInterface
terminateServer
in class Connector
public void terminate()
terminate
in interface ConnectorInterface
terminate
in class Connector
public void reconnect() throws SapALEIDocConnectorException
reconnect
in class Connector
SapALEIDocConnectorException
Connector.initialize(Object)
public SapIDocServerListener getSapALEIdocApp()
public com.sap.mw.idoc.IDoc.Repository getSapALEIDocRepos()
public SapIDocServerImpl getSapALEIDocServer()
public com.sap.mw.jco.IRepository getSapALEIRepos()
public java.util.Properties getServerConnProps()
public java.util.Map getTidIDocMap()
public java.lang.String getJcoServerProgId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |