Dinesh,
Make use of HTML_TOP_OF_PAGE for writing the ALV header data. There are many options available to format the data. Drawback in using TOP_OF_PAGE is that it can take text upto 60 characters in a line.
Note that if you are using html_top_of_page in alv, print preview will not have the header data. If you are going to print the alv output then you have no other choice but to use top_of_page only.
Hope this helps,
~Athreya