Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

regarding on_ctmenu_request

Former Member
0 Likes
584

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

3 REPLIES 3
Read only

Former Member
0 Likes
545

Hi,

Check this link

[http://joyjitghosh.blogspot.com/2008_07_01_archive.html]

Open the link and search for on_ctmenu_request

Cheers,

Surinder

Read only

0 Likes
545

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

Read only

Former Member
0 Likes
545

Check the Examples in :

TCODE--->ABAPDOCU-->BC-ABAP Programming-->ABAP USER DIALOG--->USER ACTION ON LISTS-->CONTEXT MENUS ON LISTS

EX:

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