cancel
Showing results for 
Search instead for 
Did you mean: 

exception Unable to cast COM object of type 'System.__ComObject'

Former Member
0 Kudos

Hi All,

I am getting this exception:

$exception

{"Unable to cast COM object of type 'System.__ComObject' to interface type 'SAPbouiCOM.EditText'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{AE1C43FF-0F2B-4130-A0B7-40E38D5EC60E}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002

(E_NOINTERFACE))."}

System.Exception {System.InvalidCastException}

when I try to read the content of a UDF into a EditText object...

The UDF in SAP is Alphanumeric; in my code, I am trying to read it as:

SAPbouiCOM.EditText u_airline = (SAPbouiCOM.EditText)udfForm.Items.Item("U_Airline").Specific;

Also, I need to read some Date fields in SAP... Any hint how should I read them using DI?

TIA,

Leo

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

object must be ComboBox