Skip to Content
author's profile photo Former Member
Former Member

Trying to trap 'Right Mouse Click' in SAP 2007a

Hi

I have had a request from a user that it is easy to delete a record in my contact system by 'right mouse click' and selecting remove

I have tried to trap the et_RIGHT_CLICK event but can't seem to trap it

I am using SAP 2007 SP01 patch level 49

This is an early VB6 app and the subroutine I use to trap the event is defined as follows -

Private Sub SBO_Application_ItemEvent(ByVal formuid As String, pVal As SAPbouiCOM.IItemEvent, BubbleEvent As Boolean)

Can anyone suggest anything please ?

Regards Andy

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Aug 13, 2009 at 04:32 AM

    Tristan

    First of all are you sure that the "Remove" menu is enabled when you right click in your application form?

    If the Remove is there, you can code in the Menu event

    No need to trap the entire Right Click event.

    The Remove menu ID is "1283". In Menu event pVal. MenuUID == "1283" then that means the Remove is clicked.

    In case you are not getting this menu enabled. just code to enable the menu.

    oForm.EnableMenu("1283", True)

    Now the "Remove" menu item will automatically add in the right click menu list.

    You should program to remove the record from your table when the menu is clicked.

    If you are using UDO, then no need to code. UDO will do this for you.

    Thanks

    Anoop

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2009 at 04:42 AM

    Hi,

    As suggested by Anoop.... just enable the Remove or Delete Row menu and then it will be visible in ur right ckick... adn then if required u can code ur remove record logic in the Menu Event..

    No need to trap the right click event.

    Vasu Natari.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.