Hi Pallavi,
I have tried the above code only with trail version.
I think to work with trail version below link is very useful. I was able to complete all the steps as specified in the link:
8 Easy Steps to Develop an XS application on the SAP HANA Cloud Platform
Kind regards,
Krishna