首页 > SAP > ABAP > Toolbar in ALV using CL_SALV_TABLE
2019
08-29

Toolbar in ALV using CL_SALV_TABLE

In this tutorial  factory class CL_SALV_TABLE is used to build ALV. To enable toolbar in ALV built using factory class CL_SALV_TABLE.

1.


Toolbar in ALV using CL_SALV_TABLE - 第1张  | 优通SAP

To Enable Toolbar

First we need to get the instance of class CL_SALV_FUNCTIONS_LIST
then call SET_ALL method to activate toolbar.

2.


Toolbar in ALV using CL_SALV_TABLE - 第2张  | 优通SAP

Hide Toolbar Functions

If you would like to make few functions invisible on ALV toolbar (or) if you want play around with ALV toolbar, all related methods are available in class CL_SALV_FUNCTIONS_LIST.

Here in this example, I would like to make Sort Ascending and Sort Descending functions invisible.

First step would be identify relevant methods in class CL_SALV_FUNCTIONS_LIST.

Next call these methods in your program and make them invisible in Toolbar.

3.


Toolbar in ALV using CL_SALV_TABLE - 第4张  | 优通SAP

Output

[adsenseyu1][adsenseyu1]

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