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

Control Framework - Local class Event Receivers link GUI stat Function Key?

Former Member
0 Likes
354

I've created a local class for event receivers for e.g. ON_TOOLBAR, but now I'd like to link a TOOLBAR button to a GUI status function key. I created an entry in PF-STATUS with a similar name 'POST'. Now when I get into the PAI sy-ucomm I want to call the event/method manually:

DATA OBJ_ALV_EVENT_RECEIVER TYPE REF TO CL_ALV_EVENT_RECEIVER.

...

SET HANDLER OBJ_ALV_EVENT_RECEIVER->ON_TOOLBAR FOR GRID.

...

  • The following line does not compile: (syntax???)

CALL OBJ_ALV_EVENT_RECEIVER->ON_AFTER_USER_COMMAND( ).

Background: The definition and implementations of the local class and events are perfect.

I'm just not sure of the syntax.

1 REPLY 1
Read only

Former Member
0 Likes
321

I'm still not sure about the syntax for calling the local class event, but I found a workaround. I moved all the event code into a subroutine and I just call it from the lcl->event and gui-status function key.