Skip to Content
Dec 03, 2018 at 02:59 PM

MessageBox and BubbleEvent

521 Views Last edit Dec 04, 2018 at 07:38 AM 2 rev


I am trying to open a MessageBox for some particular Customers in the A/R Invoice form (139). When pressing the button Add, a message box should ask, if the freight is allready added, if not, the invoice should not be added, otherwise yes.

Surprisingly, my code works, if I use the MsgBox from, but not the MessageBox from SAP. What do I need to know about the SAP message box?

Does anybody have an idea?

Does not work:

If SAPbouiCOM.IApplication.MessageBox("All OK", 2, "Yes", "No") <> 1 Then
    BubbleEvent = False
End If


If MsgBox("All OK", MsgBoxStyle.ApplicationModal Or MsgBoxStyle.YesNo, 
          "SAP") <> MsgBoxResult.Yes Then
    BubbleEvent = False
End If