Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ALV - issue regarding event handling

Hi,

i am using a ALV with "data_changed" and "toolbar"(custom Function SAVE) event.

To handle the custom "SAVE" Function, i used the "user_command" event of ALV Grid, too.

event_handler class:

class lcl_eventhandler definition.
  public section.

    methods:
          handle_user_command
            for event user_command of cl_gui_alv_grid
                importing
                  e_ucomm
                  sender,

         handle_data_changed
            for event data_changed of cl_gui_alv_grid
                importing
                  er_data_changed,

         handle_toolbar
            for event toolbar of cl_gui_alv_grid
                importing
                  e_object
                  e_interactive
                  sender.

registering:

create object g_verifier. "type ref to lcl_eventhandler

set handler g_verifier->handle_data_changed for go_grid.
set handler g_verifier->handle_user_command for go_grid.

After changing something in the ALV Grid and pushing the custom "SAVE" Function, the "data_changed" event get´s triggered first.

But i need to trigger the "user_command" event, first.

Any ideas to trigger the event´s in the correct order ?

Thx,

Gordon

Former Member
Not what you were looking for? View more on this topic or Ask a question