11-09-2017 6:37 PM - edited 02-04-2024 12:13 AM
Hi,
I’m currently writing code to mod the procurement wizard. When the user arrives on panel 4, automation will happen to a matrix gird. When the automation done, a message box will appear. Below I have same code of the event I’m watching and a message box I’m displaying. Do you know which if statement I need to mod to ensure the code only executes once?
Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
If pVal.FormType = "540010007" And pVal.ItemUID = "_wiz_next_" And pVal.EventType = 1 And pVal.BeforeAction = False Then
If (oSOForm.PaneLevel = 4) Then
'some code
'then display message box
SBO_Application.MessageBox("My Message", 1, "Ok", "Cancel", "")
End If
End If
End Sub
Regards,
William
User | Count |
---|---|
102 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.