Not sure if getting a hierarchy variable is possible with HANA as of now. As you can create a variable only on columns or calculated columns.
Input parameter will only work as a place holder.
So will be waiting along with you to see if anyone has found any workaround for the same.
Regards,
Krishna Tangudu