Hi Vijay,
Please have a look at my document Implementing Reporting InfoObjects based on Business Content. The sample coding can be found in the attached file YCL_BW_REP_IOBJ_v1.txt.zip. Search for:
Method YCL_BW_REP_IOBJ->GENERATE_TEMPLATE_DSO
Best regards,
Sander