Skip to Content

Catching the right click delete row event

Mar 02 at 09:02 AM


avatar image
Former Member

Hello all,

I have the following code that I am using to get the item event change for the right click delete row. I have a custom add-on form.

The reason I need to catch the event is to recalculate the doctotal after I delete a row. E.g. below

I am currently using:

(pVal.EventType == SAPbouiCOM.BoEventTypes.et_LOST_FOCUS && pVal.ColUID == "i#") && pVal.Before_Action == false)

This is not working.

Any help on how to catch the event?


untitled.png (20.1 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Ad Kerremans Mar 02 at 09:43 AM


you should catch the menu event "Delete Row" --> Menu Id 1293


Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thanks for the reply. However, 'MenuEvent' does not contain a definition for 'Row'. This becomes a problem as I sum columns.


You can use a workaround->

declare a class member: int selectedRow.

add a RightclickBefore Eventhandler to the form:

selectedRow = pVal.Row