Hi Sergio,
Thanks for the reply but I am using the same session and the same user. My older hana box version - 1.100.28 the same query is working fine. But when I am using the above query on my new hana box version -1.100.36. it's throwing this error.