‎2009 Jun 23 8:08 AM
Hello,
I am handling Data_changed event.
This event is getting fire whenver I am making change in the ALV
I have a save button. I want this event to get fire whenever I am pressing Save button
For that I am calling check_changed_data method of the same alv Instance. But the event is not getting fire everytime. It gets fire only once I change the data.
Please let me know if there is any other setting need to be done.
Thanks and Regards,
Hema
‎2009 Jun 23 8:11 AM
Hi,
The event will not get triggered if your are using a button on the ALV grid.
Create a separate button on your screen and handle it in the PAI instead.
Regards,
Ankur Parab
‎2009 Jun 23 8:11 AM
Hi,
The event will not get triggered if your are using a button on the ALV grid.
Create a separate button on your screen and handle it in the PAI instead.
Regards,
Ankur Parab
‎2009 Jun 23 9:54 AM
Hello Ankur,
The same functionality I am trying to achieve is implemented in Report BCALV_EDIT_04.
and Its working.
I am not able to figure out what I am missing.
Regards,
Hema
‎2009 Jun 23 10:09 AM
Hello,
Here is the line of Code in PBO of the ALV_CONTAINER screen which was cauing issue.
IF NOT go_grid IS INITIAL.
CALL METHOD go_grid->refresh_table_display.
ENDIF.
Not sure how but this refesh was somehow not allowing DATA_CHANGED to fire again.
Thank you so much again.
Regards,
Hema
‎2009 Jun 29 12:42 PM
Hi,
That piece of code (CALL METHOD GRID1->REFRESH_TABLE_DISPLAY ) should be in PAI event not PBO.Check the program BCALV_GRID_04 again.
Comment those statements or put in PAI and try again. the method check_changed_data works.