首页 > SAP > ABAP > Totals and Sub Totals in ALV with IDA on HANA
2019
08-29

Totals and Sub Totals in ALV with IDA on HANA

Hello everyone, in this tutorial you will learn how to do totals and subtotals in ALV with IDA on HANA.

1.♦ Prerequisites

Learn about ABAP ALV with Integrated Data Access on HANA.
You should learn how to set initial Sorting in ABAP ALV with IDA.

[perfectpullquote align=”full” color=”#7ad03a” size=”17″]SET_AGGREGATION( ) in IF_SALV_GUI_LAYOUT_IDA[/perfectpullquote]

2.Totals

Totals in ALV with IDA can be achieved by using the method SET_AGGREGATION( ). Using this method you can perform following aggregations

Sum
Maximum
Minimum
Average

2.1.1.ABAP Source code

[adsenseyu1][adsenseyu1]

2.1.2.Output

Totals and Sub Totals in ALV with IDA on HANA - 第1张  | 优通SAP

3.Sub Totals

Sub Totals in ALV with IDA can be achieved by using both Sorting Rule and Aggregation Rule. To define a subtotal on a particular column first you need to define sorting rule by using the SET_SORT_ORDER( ) and then apply aggregation rule by using method SET_AGGREGATION( ).

3.1.1.ABAP Source Code
3.1.2.
2.1.2.Output

Totals and Sub Totals in ALV with IDA on HANA - 第2张  | 优通SAP

Congrats! You have successfully learned how to perform totals and subtotals in ALV with IDA on HANA. Please stay tuned for ABAP ALV with IDA on HANA tutorials. Leave a comment in the below comment section and let us know your feedback.

最后编辑:
作者:yangsen
本站为个人博客网站,全由我个人维护,我从事SAP开发13年,其它ERP开发7年,基本都是零售行业。本站记录工作学习的过程, 有SAP相关询问专、兼职工作可随时联系我。 有网站相关的问题可直接在文章下方留言,或者联系我。 邮件:yan252@163.com给我。 QQ:415402519