hi ashok,
if the final data is in the internal table then
1) you have to convert it to excel. There are many methods of creating excel file
a) solisti1 structure
b) xml conversion
c) ole method
2) if you use ole method then you can refer this blog to create password
OLE ABAP Code with Password Protected Excel Sheet
3) sending a excel file as an attachment