Skip to Content

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

How to Track System Message Event


I created Form using Screen Painter. I want to make some validation on Form closing event.

How to Track for SAP system message (Do you want save changes? YES, No, Cancel) YES part. and i want to make some validation on that event.

Is it possible?


Ganesh k

Former Member
Former Member replied

Dear Ganesh Karunakaran,

Please try solution as follwing sample code:

Private Sub SBO_Application_ItemEvent (.....

Dim res As Integer

        Select Case pVal.EventType

            Case et_FORM_CLOSE:
            '// terminate the add on application
            res = SBO_Application.MessageBox("test", 2, "OK", "Cancel")
            If res = 1 Then
            ElseIf res = 2 Then
            End If
        End Select
    End If
End Sub

Best Regards

Jane Jing

SAP Business One Forums team

Edited by: Jane Jing on Sep 2, 2008 4:40 AM

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