4.1.1 Attributes

ashost
Hostname connected to

sysnr
System number to connected to

lang
Language logged in

client
Client number logged in to

user
User name

passwd
Password

trace
Trace mode of connection - set to 0 or 1

connection
The current connection ID

gwhost
The host name (or IP address) of the SAP R/3 gateway server (usually listens on 3300).

gwserv
The port number of the SAP R/3 gateway server (usually listening on 3300).

tpname
The program name that is used as the registered name in the SAP R/3 gateway - by convention this is usually <hostname>.<programname>, but can be anything. this must correspond with the name in the registered RFC setup in transaction SM59.

trfc
The instance of an object that has the callback methods for tRFC handling. See this example:

class reg:

	def __init__(self):
		self.cnt = 0
		import os

...

	def TRFCCheck(self, srfc, tid):
		print "TID (TRFCCheck) is: #" + tid + "#"
		return False

	def TRFCCommit(self, srfc, tid):
		print "TID (TRFCCommit) is: #" + tid + "#"
		return

	def TRFCConfirm(self, srfc, tid):
		print "TID (TRFCConfirm) is: #" + tid + "#"
		return

	def TRFCRollback(self, srfc, tid):
		print "TID (TRFCRollback) is: #" + tid + "#"
		return

The class must have the 4 defined methods to handle the various stages of tRFC (Queued RFC). If the TRFCCheck method returns True, then the Registered RFC program is acknowledging that it has allready processed the transaction, so by default it should usually return False.