Skip to Content

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

Open

Hi

I create a menu and assign 9 forms its ok but when i execute the programme first all are open after 1 0r 2 mins no one form is open .What is the problem?Is there any time out?

Former Member
Former Member replied

Also you need to close the form using ItemPressed Event Handler:

Public Sub SBO_ManageItemEvent( _
            ByVal FormUID As String, _
            ByRef pVal As SAPbouiCOM.ItemEvent, _
            ByRef BubbleEvent As Boolean _
)
  Dim oForm As SAPbouiCOM.Form
  Try
    oForm = SBO_Application.Forms.Item(FormUID)
  Catch ex As Exception
    oForm = Nothing
  End Try

  If Not oForm Is Nothing Then
    Select Case oForm.TypeEx
       Case "YOUR_FORM_TYPEX"
            If pVal.EventType = BoEventTypes.et_ITEM_PRESSED Then
              If pVal.ItemUID.Equals("btnGoBack") Then
                oForm.Close()
              End If
            End If
...
End Sub

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question