‎2009 Mar 17 5:28 AM
Hai,
I have created a report, here I have created a list. And I wrote subroutine on_ctmenu_request, but it is not getting called when I pressed right mouse button upon the list. I wrote set pf-status also.
Could anybody suggest the solution and are there any tutorials to know more about interactive reports
Thank you
Regards
Srinivas
‎2009 Mar 17 5:33 AM
Hi,
Check this link
[http://joyjitghosh.blogspot.com/2008_07_01_archive.html]
Open the link and search for on_ctmenu_request
Cheers,
Surinder
‎2009 Mar 17 6:06 AM
Hai,
Thank you for your response. I think in my code event is not getting generated when I pressed upon the list ouptput, because when I set break point and trying to debug it, the code is not once the list is displayed. Do we need to do any settings for PF-STATUS.
Thank you
‎2009 Mar 17 5:52 AM
Check the Examples in :
TCODE--->ABAPDOCU-->BC-ABAP Programming-->ABAP USER DIALOG--->USER ACTION ON LISTS-->CONTEXT MENUS ON LISTSEX:
FORM on_ctmenu_request USING l_menu TYPE REF TO cl_ctmenu.
DATA lin TYPE i.
GET CURSOR LINE W_LIN.
CALL METHOD l_menu->add_function
EXPORTING fcode = 'XXX'
text = 'XXX'.
ENDFORM.
GOTO>PF-STATUS-> SET SHIFT +F10 -->%CTX For context menu