Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

OOP ALV - Issue with data change and refresh

Former Member
0 Likes
590

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

1 REPLY 1
Read only

Former Member
0 Likes
362

Have you checked your internal table after the user changes.Is that correct?