04-09-2008 1:07 PM
Hello!
I thought with the previous post's about ALV refreshing i could do it myself...it seems i have some isues that i don't understand why it doesn't work!
So my ALV as some editable fields, when i make changes in this fields and then click the save button it saves me the changes to a Z table. On every load of the ALV there are some fields that are filled with data from de Z table x data from standard table. When i save i want this to appen without having to go the previous screen and then go to the next screen.
In the statement When '&DATA_SAVED' i have some code that saves my data do the Z table. Iv'e tryed to call the method refresh_table_display and check_changed_data at the begining of the Where statement and after the last line of code in this statement, after the insert in the Z table, and it didn't worked...
So...any help would be nice!
Cumps,
RT
04-09-2008 1:20 PM
Hi,
After the code you have written in &data_save
write
selfield-refresh = 'X'.
<REMOVED BY MODERATOR>
Regards,
Talwinder
Edited by: Alvaro Tejada Galindo on Apr 9, 2008 5:48 PM
04-09-2008 1:20 PM
Hi,
After the code you have written in &data_save
write
selfield-refresh = 'X'.
<REMOVED BY MODERATOR>
Regards,
Talwinder
Edited by: Alvaro Tejada Galindo on Apr 9, 2008 5:48 PM
04-09-2008 3:28 PM
Ok, and where do i call the method? At the end of the code of &data_save?
04-09-2008 5:44 PM
Ok, i managed to solve the problem.
I added the line that you said, butt it was missing some other stuff...
so the scheme i did was the following:
data:ref TYPE REF TO cl_gui_alv_grid.
...
when '&data_save':
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref.
CALL METHOD ref1->check_changed_data.
ls_selfield-value = ' '.
ls_selfield-refresh = 'X'.
ls_selfield-col_stable = '3'.
ls_selfield-row_stable = '1'.
loop at itab.
....
endloop.
perform data_retrieval.
CALL METHOD ref1->refresh_table_display.