Hi Vijay,
Your problem or scenario has already been discussed in the thread http://scn.sap.com/thread/1828769
Hope this solves your query. Please mark the thread answered and close it as it will be useful for others and please do search the discussion board before hand.
Happy Coding,
Santhosh Yadav