Skip to Content

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

How to Track System Message Event

Hi,

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?

Regards,

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
            '//ok
            
            ElseIf res = 2 Then
            '//cancel
            
            End If
            
            
                End
        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