2008 Jan 16 5:45 PM
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
2008 Jan 16 5:50 PM
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
a®
2008 Jan 16 5:50 PM
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
a®
2008 Jan 16 5:59 PM
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
a®
2008 Mar 13 5:15 AM
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