Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

DATA_CHANGEd Event is not getting fire

former_member15918
Participant
0 Likes
928

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
871

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

4 REPLIES 4
Read only

Former Member
0 Likes
872

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

Read only

0 Likes
871

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

Read only

0 Likes
871

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

Read only

0 Likes
871

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.