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

ALV GRID (add_protocol_entry)

MariaJooRocha
Contributor
0 Likes
1,069

Dear SDN,

I'm using edit grid.

How could I use the method call method p_data_changed->add_protocol_entry, outside event data_changed?

I need to check the data (all lines of te grid) at an (Z) user-comand.

Thanks!

Best regards,

Maria João Rocha

3 REPLIES 3
Read only

former_member194669
Active Contributor
0 Likes
753

Call this method in your Z user command


  call method cl_gui_alv_grid=>check_changed_data
    importing
      e_valid = v_valid.
  if not v_valid is initial.
     " Data changed
 else.
     " Data not changed
 endif.

Read only

MariaJooRocha
Contributor
0 Likes
753

thanks a®s,

I can't call check_changed_data, because I need to check all lines of the grid at the same time and some of the lines may not have been changed.

Best regards,

Maria João Rocha

Read only

0 Likes
753

Then you need to check program

BCALV_EDIT_03