Hi Nisha,
instead of building this functionality yourself by selecting from DD03L use the ABAP Runtime Type Services (RTTS). The purpose of RTTS is to get the data type of any structure, field etc. during runtime.
The SCN Wiki and the ABAP docu are good documents to get you started,
Runtime Type Services (RTTS) - ABAP Development - SCN Wiki
Christian