Hi Namita,
your code snippet looks ok and it is identical to the one presented in the HANA academy. So the question is: what does the error message state?
What you also could check is the input table TS_MODEL: did you set it up, as it was not part of the video but was created before?
BR
Christian