Application Development 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: 

ALV - CL_GUI_ALV_GRID - EDITABLE

Former Member
0 Kudos

Hi everyone,

when using ALV CL_GUI_ALV_GRID, with EDIT option On, is there a way of getting the input value just after he is inputed?

I want to check the consistence of the input field every time is inputed and not just once at the end.

Can anyone help please,

Thanks in advance,

Pedro

1 ACCEPTED SOLUTION

former_member194669
Active Contributor
0 Kudos

Hi,

In the PAI if you call the following method


  call method g_grid->check_changed_data
    importing
      e_valid = v_valid.

ie


  call method g_grid->set_table_for_first_display
    exporting
      is_layout            = gs_layout
      i_save               = 'A'
      it_toolbar_excluding = i_exclude[]
    changing
      it_fieldcatalog      = gt_fieldcat[]
      it_outtab            = <i_output>[]. " The output table
  call method g_grid->set_ready_for_input
    exporting
      i_ready_for_input = v_input.

the output table automatically get refreshed with inputed values

3 REPLIES 3

former_member194669
Active Contributor
0 Kudos

Hi,

In the PAI if you call the following method


  call method g_grid->check_changed_data
    importing
      e_valid = v_valid.

ie


  call method g_grid->set_table_for_first_display
    exporting
      is_layout            = gs_layout
      i_save               = 'A'
      it_toolbar_excluding = i_exclude[]
    changing
      it_fieldcatalog      = gt_fieldcat[]
      it_outtab            = <i_output>[]. " The output table
  call method g_grid->set_ready_for_input
    exporting
      i_ready_for_input = v_input.

the output table automatically get refreshed with inputed values

0 Kudos

Hi,

And also check for event


    call method grid->register_edit_event
      exporting
        i_event_id = cl_gui_alv_grid=>mc_evt_e

and also check the following example program by Uwe in the object forum.

ZUS_SDN_ALVGRID_EDITABLE_7

0 Kudos

Dear Can you please send me the total code of program ZUS_SDN_ALVGRID_EDITABLE_7 or where can i get this codings.

Thanks in Advance