on 01-31-2005 3:00 PM
Hello all,
I would like to know what is the event when I close an order in sap form.
Tks for your help.
Laetitia
Hi Laetitia,
I think catching form close Item event works. Because as I found, when choosing Close menu, a message box will send out saying that do you want to cancel/close form. When you click the button, a form close event will be sent.
In this case, you could do this with the code below.
Private Sub m_oApplication_ItemEvent(ByVal FormUid As String, pVal As SAPbouiCOM.ItemEvent, BubbleEvent As Boolean)
Select Case pVal.EventType
Case et_FORM_CLOSE
MsgBox "Catch!" ' please add your code here.
End Select
End Sub
If this solution does not fit your situation, you can catch the menu event directly. Please refer to the code below.
Private Sub m_oApplication_MenuEvent(pVal As SAPbouiCOM.IMenuEvent, BubbleEvent As Boolean)
If pVal.BeforeAction = True Then
Select Case pVal.MenuUID
Case "1286"
' Do whatever you want here.
End Select
End If
End Sub
Hope these two solutions work.
Best Regards,
Nicky He
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One way of doing it would be to watch for the followng ItemPress events:
SAP close button ( ItemUID = 2 )
SAP Ok button ( ItemUID = 1 ), ( when FormMode = OK )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
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.