2008 Sep 23 8:38 AM
Hi guys,
I need total subtotal and per details at the end of an internal table.
like
f1 f2 f3
4 3 4
3 4 -> tot and per for ex
but when iam appending
iam getting as
3 4
4 3 4
can u guide how i have insert as the last row.
regards
jansi
2008 Sep 23 8:42 AM
If you want to append data to the last row, then do this way..
describe table <internal table> lines v_lines.
v_lines = v_lines + 1.
append <data> to <internal table> index v_lines.
This will append data to the last row of the internal table..
Hello Jansi,
Appending to an internal table will insert the data as last row. No need to use any complex logic as mentioned.
I doubt that you are sorting the data after appending and before display. So you remove the sort.
Regards
Farzan
2008 Sep 23 8:40 AM
How you are using the append statement, paste your code so that we can troubleshoot.
Regards
Karthik D
2008 Sep 23 8:41 AM
2008 Sep 23 8:42 AM
If you want to append data to the last row, then do this way..
describe table <internal table> lines v_lines.
v_lines = v_lines + 1.
append <data> to <internal table> index v_lines.
This will append data to the last row of the internal table..
2008 Sep 23 8:44 AM
2008 Sep 23 2:39 PM
Hello Jansi,
Appending to an internal table will insert the data as last row. No need to use any complex logic as mentioned.
I doubt that you are sorting the data after appending and before display. So you remove the sort.
Regards
Farzan
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |