on 04-14-2008 2:46 PM
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' ?
MY understanding from your question is we need to find number of empty rows in ALV table after append/delete..etc.
1. No of context elements = Total number of actual rows
2. Intial table rows in the definition = Fixed number of rows
a) Let us say you defined number of rows as 10 sing the below statement
if_salv_wd_table_settings~set_visible_row_count( value = 10 ).
b) Now after delete/insert/...actions check total number of context elements using the below statment
data: alv_table type ref to IF_WD_CONTEXT_NODE.
b= alv_table->GET_ELEMENT_COUNT()
Total number of empty rows = 10 -b
Hope this helps.
I think After every insert/delete...actions you have to add +3 for summary rows.
Edited by: Venkata Ramakrishna Prasad Ramisetti on Apr 14, 2008 11:41 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.