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

trigger data_changed_finished from PAI

Former Member
0 Likes
1,219

Hi.

I have a screen with some standard screen fields and a couple of editable ALV Grids. I'm stumped at trying to save all changes from a save button either as a screen field or in the screen's application toolbar.

Within each ALV grid, things are fine - I am handling data changes by both mc_evt_enter & mc_evt_modifies. Any change is reflected in my itabs during data_changed_finished.

My issue comes when I first make a change (to a text field) in one of the grids and then - before pressing TAB, ENTER, or anything else - try to save via the Save button in the screen's application toolbar.

I don't hit data_changed_finished and my itabs are not updated with that latest change. If I save to the DB @ this point, I'll miss that last change.

The refresh of the Grid also sets back to the previous value.

I've tried raising events in the PAI (CALL METHOD alvgrid->raise_event ...) but can't seem to get this - or anything else to work.

Any tips?

Thanks,

John

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,070

Hi

Try to use the method check_changed_data

Max

2 REPLIES 2
Read only

Former Member
0 Likes
1,071

Hi

Try to use the method check_changed_data

Max

Read only

0 Likes
1,070

Well ... that was easy.

Thanks, Max!

John