Skip to Content
0
Former Member
Feb 18, 2011 at 04:16 PM

Log of errors in ALV

775 Views

guys , I have copied a program that use this event handler ,

HANDLE_DATA_CHANGED
      FOR EVENT DATA_CHANGED OF CL_GUI_ALV_GRID
      IMPORTING ER_DATA_CHANGED .

at the end it shows a log in other screen with the errors using :

call method p_er_data_changed->add_protocol_entry
           exporting
             i_msgid     = '0K'
              i_msgno     = '000'
              i_msgty     = 'E'
              i_msgv1     = text-m03           "Flugzeugtyp
              i_msgv2     = acum_perc
              i_msgv3     = text-m05           "exitstiert nicht
              i_fieldname = ls_good-fieldname
              i_row_id    = ls_good-row_id.

the problem with this event is that it evaluate one line at the time , i have found other event :

HANDLE_DATA_CHANGED_FINISHED
      FOR EVENT DATA_CHANGED_FINISHED OF CL_GUI_ALV_GRID
      IMPORTING E_MODIFIED ,

but i dont have this nice method : p_er_data_changed->add_protocol_entry to show the errors , is there any method that i could use to show them in the event changed finished ( or maybe another event ) . i really want to use something like that in my program . thanks guys

the problem with this event is that it evaluate one line at the time , i have found other event :

Edited by: José M. Sánchez on Feb 18, 2011 11:48 AM