Although I don't really have any issues using the old school ALV report function modules such as REUSEALVGRIDDISPLAY and REUSEALVLISTDISPLAY there is a newer Object Oriented ALV class CLSALVTABLE which can also be used to create ABAP ALV reports and is possibly a little easier to use. Well I'll let you be the judge of that, I wouldn't recommend re-writing all your old reports just so that they use this method but the code probably does look a little neater and is easier to understand. CLSALVTABLE is also part of a bigger class called CLSALV but we will stick with the table option for now. Here is a basic example ABAP report using this new SALVTABLE functionality which should give you a good idea of how it all hangs together and allow you to easily transfer your knowledge of the previous function module based version. Also so you can compare the two methods I will also use the same objective as the which was to populate a simple internal table (itekpo) with data and display it as an ALV report.
[adsenseyu2] In this tutorial, we will learn how to create an basic ABAP ALV report using the object oriented approach. Standard class CL_GUI_ALV_GRID is used to built the ALV report in ABAP. Lets see a step-to-step guide to create an OOP ABAP ALV report.