2009 Jul 04 1:24 PM
Hi Friends,
How to refresh after delete the records in ALV report.
I am deleting records in ALV report .
After successful delete the screen should refresh.
u201C Deleted records should not appear in the screen u201C.
Please guide me.
Regards,
Subash
2009 Jul 04 2:59 PM
Hi Subash,
Do same thing to refresh the ALV.
Use following code:
DATA : e_grid TYPE REF TO cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = e_grid.
CALL METHOD e_grid->check_changed_data.
"update_alv_tab
CALL METHOD e_grid->refresh_table_display.
Regards.
Confirm if solve.
2009 Jul 04 2:00 PM
Hi subhasa,
You can simply call the same alv with the modified values of the final table(i.e after deleting those records).
2009 Jul 04 2:59 PM
Hi Subash,
Do same thing to refresh the ALV.
Use following code:
DATA : e_grid TYPE REF TO cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = e_grid.
CALL METHOD e_grid->check_changed_data.
"update_alv_tab
CALL METHOD e_grid->refresh_table_display.
Regards.
Confirm if solve.
2009 Jul 09 1:03 PM
Hi ,
Through this method I try ,
But my internal table data not changing which one I used in the alv
TABLES
T_OUTTAB = T_OUTPUT1.
Actually this alv is interactive alv.
"
for refresh the alv
DATA : e_grid TYPE REF TO cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = e_grid.
CALL METHOD e_grid->check_changed_data.
*"update_alv_tab
CALL METHOD e_grid->refresh_table_display.
"
Please give me some more idea.
Thanking you.
Regards,
Subash.
2009 Jul 09 1:15 PM
2009 Jul 09 1:35 PM
Hi Supriya,
I am even modifying & deleting records.
My requirement is if press 'BACK' button , it will conform 'Yes' or 'NO'.
If yes then it will edit the screen records to the internal table.
But it is not editing my internal table records.
Thanking you.
2009 Jul 09 2:41 PM
Refreshing of ALV require here.
Can you please copy and paste your code!
2009 Jul 09 2:45 PM
Hi subhash,
FORM user_command USING r_ucomm LIKE sy-ucomm rs_selfield TYPE slis_selfield.
WHEN 'BACK'.
Refresh the internal table from the ALV grid
PERFORM update_alv_tab.
ENDFORM. "user_command
FORM update_alv_tab .
DATA : e_grid TYPE REF TO cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = e_grid.
CALL METHOD e_grid->check_changed_data.
"update_alv_tab
CALL METHOD e_grid->refresh_table_display.
ENDFORM. " UPDATE_ALV_TAB
Then see in Debug mode is it updating or not..
Please confirm .
And please paste the code if you can.
Regards.
2009 Jul 09 5:33 PM
Hi Supriya.
Thank you so much.
Through your help my problem is solved.
I am grateful to you.
Thanking you.
Warm regards,
Subash
2009 Jul 09 6:46 PM
2009 Jul 04 6:17 PM
Hi,
If you try to delete a record from ALV,, it should have got deleted from your internal table also. In this case say for eaxample you have subroutine named DISPLAY_ALV, call tha Subroutine again withi this inernal table on deletion, this will display your modified table
2009 Jul 04 7:37 PM
HI,
After deleting the record from the internal table which you have passed to ALV method Call the method REFRESH_TABLE_DISPLAY of the same class.
Which will refresh the data in the container.