10-13-2008 11:46 AM
Hi,
I am creating an ALV Grid output using Function module REUSE_ALV_GRID_DISPLAY. I have 2 of the 4 columns in editable mode.
When I click on save button, the values get saved automatically. If the user command subroutine gets called after the save operation, I can see the new values reflected in the internal table.
But,I want to capture the changes made in these editable fields in the user command subroutine. Is there a way to do this?
I am not using OO based methods. I know there are a few methods in OO to get these changed entries. But can anyone help me without using OO.
Regards,
Prakash.K
10-13-2008 11:48 AM
I think you need to copy the whole internal table into temperary internal table before you pass it to REUSE_.. FM, then in user command compare the previous values with the current one.
10-13-2008 11:48 AM
I think you need to copy the whole internal table into temperary internal table before you pass it to REUSE_.. FM, then in user command compare the previous values with the current one.
10-13-2008 12:26 PM
Hi pawan,
The problem is that the new contents are not reflecting in the internal table.
If save button is pressed and then i do some other user action, the values are seen in the internal table.
So the table refresh is happening in the save operation. The save is not handled by me but its the standard SAP operation which is saving the contents.
There is another user action that i want to execute after the save operation. So i am trying to join both the functionalities into a single routine.
Regards,
Prakash.K
10-13-2008 12:30 PM
put this code in user command
Data ref1 type ref to cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = ref1.
call method ref1->check_changed_data.
10-13-2008 1:22 PM