Skip to Content

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

Delete row event

How do we know if a user deleted a line by the right click on the line and pressing Delete row ?

Or any way to know that a user is deleting a line so we can take action if so ?


Im doing it as

If pVal.MenuUID = "1293" And pVal.BeforeAction = False Then
            Dim oform As SAPbouiCOM.Form
            oform = SBO_Application.Forms.ActiveForm
            If oform.UniqueID = "xform" Then
                Dim omatrix As SAPbouiCOM.Matrix
                omatrix = oform.Items.Item("Matrix1").Specific
                Dim q As Integer = 1
                For q = 1 To omatrix.RowCount
                    If omatrix.IsRowSelected(q) Then
                        omatrix.DeleteRow(q) -- here in q is selected row
                    End If
            End If
        End If

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