2008 Dec 11 4:51 PM
Hi,
I have issue with refresh of the ALV grid after data change event. Let's say my ALV output table has only one field F1, this field F1 is editable and proper event is coded to handle data change and my ALV output looks like below.
ALV Output - sorted by F1
-
Row Field F1
(1) A
(2) A
(3) A
(4) A
(5) A
(6) A
- subtotal of A
(7) B
(8) B
- subtotal of B
(9) C
- subtotal of C
Now let's say I am changing the field F1 on the row 4 from A to B. This triggers my data change event. In the data change event I call the " REFRESH_TABLE_DISPLAY" to refresh my grid and recalculate the sort and subtotols but with one issue. Look at the refreshed ALV display below
ALV Output - sorted by F1 (after change and refresh)
-
Row Field F1
(1) A
(2) A
(3) A
(4) A "But it also changes the row 4 content from A to B
(5) A
- subtotal of A
(6) B "This is the the line which changed from A to B
(7) B
(8) B
- subtotal of B
(9) C
- subtotal of C
I just want the conent to be changed and the table to be refresh as per my field catalog with sort and subtotal. It does that but it also for some reason change the content of the cell at the same position, which I do not want. What might be the reason behind this?
Thanks,
Pratik
Hi,
I have issue with refresh of the ALV grid after data change event. Let's say my ALV output table has only one field F1, this field F1 is editable and proper event is coded to handle data change and my ALV output looks like below.
ALV Output - sorted by F1
-
Row Field F1
(1) A
(2) A
(3) A
(4) A
(5) A
(6) A
- subtotal of A
(7) B
(8) B
- subtotal of B
(9) C
- subtotal of C
Now let's say I am changing the field F1 on the row 4 from A to B. This triggers my data change event. In the data change event I call the " REFRESH_TABLE_DISPLAY" to refresh my grid and recalculate the sort and subtotols but with one issue. Look at the refreshed ALV display below
ALV Output - sorted by F1 (after change and refresh)
-
Row Field F1
(1) A
(2) A
(3) A
(4) A "But it also changes the row 4 content from A to B
(5) A
- subtotal of A
(6) B "This is the the line which changed from A to B
(7) B
(8) B
- subtotal of B
(9) C
- subtotal of C
I just want the conent to be changed and the table to be refresh as per my field catalog with sort and subtotal. It does that but it also for some reason change the content of the cell at the same position, which I do not want. What might be the reason behind this?
Thanks,
Pratik
2008 Dec 11 6:30 PM
Have you checked your internal table after the user changes.Is that correct?