Display Setting in ALV using CL_SALV_TABLE

0
3057

[adsenseyu2]

In this tutorial, we will learn how to change the display settings like stripped pattern,remove horizontal lines etc. in OO ALV using CL_SALV_TABLE.

CL_SALV_DISPLAY_SETTINGS is the class used to apply display settings in ALV.

Stripped Pattern in ALV

To get Stripped pattern in ALV report, call the method  SET_STRIPED_PATTERN() in class CL_SALV_DISPLAY_SETTINGS.

alv4Remove Horizontal Lines in ALV

To remove horizontal lines in ALV report, call the method  SET_HORIZONTAL_LINES() in class CL_SALV_DISPLAY_SETTINGS.

alv5

Remove Vertical Lines in ALV

To remove Vertical lines  in ALV report, call the method  SET_VERTICAL_LINES() in class CL_SALV_DISPLAY_SETTINGS.

alv4

ABAP Source Code

https://gist.github.com/prakash13t/5d13f8f6695d8bd406fe#file-displaysettings_salv-abap