Perfect, that works!. Thank you very much for your suggestion. a small note on your statement, the variable value is displayed as 0 incase of # value, if not, the original value is displayed. Which is exactly I wanted to get. Thanks again.
I am closing this thread, actually I also had another problem with my BEx formula, can you please take a look on that also, that would be a great help to me.
http://scn.sap.com/thread/3817656
Thanks
Sreekanth