Hi Curtis,
Please have a look at the following link:
http://help.sap.com/saphelp_hanaplatform/helpdata/en/20/d42e77751910149f0ff6b879b1290f/content.htm
That article explains how to create a user-defined function in HANA and how to call the function within a query.
Kind Regards,
Owen