Skip to Content
0
Former Member
Apr 21, 2010 at 06:28 PM

problem with check_changed_data

715 Views

hello

I have added a checkbox and a button to a ALV Grid report. When the checkbox is ckecked and the button is pushed, the record with the checkbox used for further processing. I have been searching thru the SDN and it looks like I need to use the "CHECK_CHANGED_DATA" statement. I have coded it like it mentions in the various threads and my process is short dumping. I have this coded in my program, not in the PAI screen. I have seen this coded at both places but when I try to code it in the PAI section of the screen, I get error on the DATA statement.

data: l_valid type c.

data: g_grid type ref to cl_gui_alv_grid.

call method g_grid->check_changed_data

importing

e_valid = l_valid.

I have coded it in the program in the user-command section an when I run the program in debug at display the g_grid , i get the following and the program short dumps with Access via 'NULL' object reference not possible."

I am not sure what I am doing wrong.

does anyone know what is causing this?