This example will show you how to build a simple tree using class CL_GUI_ALV_TREE. Tree will show flight detail as below. I use two global classes, one for application logic (get data for the report) and other one to create ALV tree. Icon field create is a hot spot. Application logic class:  ZCL_FLIGHT View controller: