SAP DCOM Connector, return type of DimAs
Peter Hopfgartner
hopfgartner at rolmail.net
Mon Apr 15 04:04:27 EDT 2002
Dear members of the Python community,
is there anybody, who used Python successfully to connect to SAP through a
DCOM Connector?
My current problem is:
I get the COM project through:
# Rufe die COM-Komponente auf
self.sap_com = win32com.client.Dispatch('SAP.BAPI.1')
(... connect successfully to SAP ... )
self.porders = self.sap_com.GetSAPObject('PlannedOrder')
self.header = self.sap_com.DimAs(self.porders, 'Create',
'HeaderData')
self.header = self.porders.DimAs('Create','HeaderData')
Then, I would like to insert some data through self.header.Value, but this
is seen only as an integer from Python.
In Visual Basic the data is inserted as
header.Value("Material") = 123456
In Visual Basic everything works fine.
All COM objects are early bounded, as described in Hammonds (excellent)
Python on Win32 book.
I'm using ActiveState Python 2.2 on Windows 2000 Server.
If anybody could help me he will earn my eternal gratitude.
Peter
More information about the Python-list
mailing list