Thanks Manish, i did debug and this what i have found which is strange. After the creation of TO i am going into LTAK and checking the entries below is what i found.
My sales document is 0080815422 against which i have created the TO, but system is referring to another sales document i.e. 0080661883.