Sorry to post it again.
As Kishi has suggested i have used alll the function modules to get the email address but its not selecting any email address. I have added my user id. I am using usr21 and adr6 tables.
What are the tables that serve my purpose.
Check this FM.
Subject: Re: Function module for user details.