Skip to Content
0
Former Member
Apr 14, 2008 at 01:46 PM

Calculate rows in ALV-Table in Web Dynpro

39 Views

Hi people,

I'm new in WebDynpro for Abap.

I have ALV-Table in Web Dynpro. For example,

Name

ID-Nummer

Summe 1

Summe 2

S01

0001

5000,00

7000,00

T01

0002

2000,00

4000,00

A03

0004

3000,00

8000,00

Summe A

10000,00

21000,00

Summe B

6000,00

24000,00

Summe D

4000,00

- 3000,00

Summe A = ∑ (Summe 1)

Summe B = value from another table

Summe D = Summe A - Summe B

If I sort table by column 'Nфme' I get next result

Name

ID-Nummer

Summe 1

Summe 2

A03

0004

3000,00

8000,00

S01

0001

5000,00

7000,00

Summe A

10000,00

21000,00

Summe B

6000,00

24000,00

Summe D

4000,00

- 3000,00

| T01 | 0002 | 2000,00 | 4000,00 |

If click button 'Append Row' or 'Insert Row' I get next result

Name

ID-Nummer

Summe 1

Summe 2

S01

0001

5000,00

7000,00

T01

0002

2000,00

4000,00

A03

0004

3000,00

8000,00

Summe A

10000,00

21000,00

empty row after clicking button 'Insert Row'

Summe B

6000,00

24000,00

Summe D

4000,00

- 3000,00

empty row after clicking button 'Append Row'

How can I realize to leave rows (Summe A, Summe B, Summe D) ALWAYS at the end of ALV-table

after sorting, filtring or clicking buttons 'Append Row' or 'Insert Row' ?