2007 Mar 02 10:37 AM
Hi all,
I have an ALV report in which i am display a list in that if i select a record by checking a check box, and when i am saying delete, the record is getting deleted. But the problem is i am getting the record displayed on the screen after pressing delete. But when i am refreshing the program it is not display. So can an one help me out in refreshing the screen immediate after deleting.
Thanks
Murthy
2007 Mar 02 10:59 AM
Hey,
do this way.
write this code.
call method gp_alv_grid->check_changed_data.
you write this immediatey after delete.
Please rewar points if it help.
Regards
Satish
2007 Mar 02 11:09 AM
Hi Raju,
When i am trying to Give the same it is saying class GP_ALV_GrID not found..So how to rectify this
Thanks,
Murthy
2007 Mar 02 11:18 AM
Use ur own pointer reference.
CALL METHOD gp_alv_grid_prod->set_table_for_first_display
EXPORTING
i_buffer_active = 'X'
is_variant = ls_variant
i_save = 'A'
is_layout = ls_layout
it_toolbar_excluding = lt_toolbar
CHANGING
it_outtab = gt_product
it_fieldcatalog = gt_fieldcat_prod
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
so u use this Object .
2007 Mar 02 4:58 PM
Hi,
IF you are using the 'REUSE_ALV_GRID_DISPLAY' function module,
i_callback_user_command = 'USER_COMMAND'.
SO when you write the USER_COMMAND perform. In the perform before closing the perform say like this.
slis_selfield-refresh = X.
Meaning activate the refresh funtionality in the USER COMMAND.
Br,
Laxmi