Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

checkbox value in service contract

I am unable to get the present value of the existing checkbox in the form of service contract.

I am using the following command however unsuccessfully

Dim oEditText As SAPbouiCOM.EditText

Dim FlagSegunda As String = ""

oEditText = oMktForm.Items.Item ("81"). Specific

FlagSegunda = oEditText.Value

When I use this parameter shows the error below

Unable to cast COM object of type 'System .__ ComObject' in type interface '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: There is no support for this interface (Exception from HRESULT: 0x80004002 (E_NOINTERFACE) ).

Tags:
Former Member
Former Member replied

Resolved, following method used

Dim oEditFlag as CheckBox

Dim FlagSegunda as String = ""

If oEditFlag.Checked = True Then

                FlagSegunda = "Y"

            Else

                FlagSegunda = "N"

            End If

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question