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?
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
SAP Business One Forums team
Edited by: Jane Jing on Sep 2, 2008 4:40 AM