2010 Jul 28 9:01 AM
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.
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.
2010 Jul 28 10:27 AM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |