Hello Raj,
For better responses,You should have been posted this question in "webdynpro" forums but not in ABAP development.
Anyhow,Refer following links.Hope it might useful to you.
http://****************/Tutorials/WebDynproABAP/Reusability/demo.htm
http://scn.sap.com/docs/DOC-2191
http://scn.sap.com/docs/DOC-8863
http://help.sap.com/saphelp_nw04s/Helpdata/en/13/560b40c6c01961e10000000a155106/content.htm
Thanks
Katrice