ERPConnect.RFCServer
Namespace: ERPConnect
Assembly: ERPConnectStandard20.dll
RFCServer represents a running server, that can handle incoming RFC calls from a superposed SAP system
Inheritance
Implements
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
RFCServer()
Initializes a RFCServer object
RFCServer(bool)
Initializes a new instance of the RFCServer class
Parameters
nonUnicodeIsBigEndian
bool
Indicates, whether non-Unicode systems are treated as big endian systems
RFCServer(string, string, string)
Initializes a RFCServer object
Parameters
gatewayHost
string
Name of the Gateway host
gatewayService
string
Name of the Gateway service ("sapgwXX" -> XX = system number)
programId
string
Program ID as defined in SM59
RFCServer(string)
Initializes a RFCServer object
Parameters
connectionString
string
Connection String
RFCServer(string, string, string, SNCSettings)
Initializes a RFCServer object
public RFCServer(string gatewayHost, string gatewayService, string programId, SNCSettings sncSettings)
Parameters
gatewayHost
string
Name of the Gateway host
gatewayService
string
Name of the Gateway service ("sapgwXX" -> XX = system number)
programId
string
Program ID as defined in SM59
sncSettings
SNCSettings
Settings for SNC
Properties
CanReceiveIdocs
Defines, whether the server object should be able to receive idocs.
Property Value
GatewayHost
Name of the gatewayhost
Property Value
Remarks
Have a look at ERPConnect.RFCServer.Start?text=ERPConnect.RFCServer.Start
for a complete example.
GatewayService
Name of the gateysevice ("sapgwXX" replace XX by the SAP system number)
Property Value
Remarks
Have a look at ERPConnect.RFCServer.Start?text=ERPConnect.RFCServer.Start
for a complete example.
IsRunning
Defines, whether the server thread is running at the moment
Property Value
Remarks
Have a look at ERPConnect.RFCServer.Start?text=ERPConnect.RFCServer.Start
for a complete example.
IsUnicode
Defines whether the partner system is a unicode system
Property Value
LastTID
Transaction ID of last incoming call
Property Value
LogDir
If this directory is set, every call will be saved there in a XML file
Property Value
Logging
Defines, if the calls will be logged to local trace file.
Property Value
ProgramID
ProgrammID as definied in the RFC destintion (Transaction SM59)
Property Value
Remarks
Have a look at ERPConnect.RFCServer.Start?text=ERPConnect.RFCServer.Start
for a complete example.
Protocol
Gets or sets the communication protocol/API
Property Value
RegisteredFunctions
A collection of all RFCServerFunction objects that the connected SAP system can call.
Property Value
Remarks
Have a look at ERPConnect.RFCServer.Start?text=ERPConnect.RFCServer.Start
for a complete example.
SAPEncodingInfo
Gets information about data encoding
Property Value
SNCSettings
Gets or sets the settings for SNC
Property Value
Methods
CancelRegisteredServers()
Ends all servers that are registered with the given Program ID at the SAP Host
Dispose()
\~RFCServer()
Log(string)
Parameters
message
string
Start()
Starts the server.
Remarks
Please make sure to have all server functions defined, before starting the server.
Start(bool)
Starts the server.
Parameters
blocking
bool
Defines whether the server should run in an own thread (false) or not (true).
Remarks
Please make sure to have all server functions defined, before starting the server.
Stop()
Stop the running server
Remarks
Have a look at ERPConnect.RFCServer.Start?text=ERPConnect.RFCServer.Start
for a complete example.
Authorizing
Authorizing is fired, when the RFC Server is authorizing an incoming function call. If this event has no subscribers, all calls are authorized. Otherwise AuthorizingEventArgs.IsAuthorized must be set to 'true' to authorize a call.
Event Type
IncomingCall
IncomingCall is fired, when the SAP system call the RFC server
Event Type
IncomingIdoc
IncomingIdoc is fired, when the SAP system calls the RFC Server to send an idoc
Event Type
InternalException
An error occured within the server object while the server is running
Event Type
Logged
Event Type
Started
Fires after the server has been started
Event Type
Stopped
Fires after the server has been stopped
Event Type
TRFCCheckTID
TRFCCheckTID is fired, when the SAP system wants the client to check, if a call can be sent.
Event Type
TRFCCommit
TRFCCommit is fired, when the SAP system wants to have an Transaktion comitted
Event Type
TRFCConfirm
TRFCConfirm is fired, when the SAP system a transaction to be rolled back due to an error.
Event Type
TRFCRollback
TRFCRollback is fired, when the SAP system a transaction to be rolled back due to an error.
Event Type
UnknownIncomingFunction
UnknownIncomingFunction is fired, when the SAP system calls a function module that is not contained in the RegisteredFunctions collection.
Event Type
RFCServer.OnUnknownIncomingFunction