QlikView is designed for Read-Only purposes. Although, we have two options
1. Edit Script > Settings > Check open databases in read & write mode
2. VB Script
we can use VB Script within QlikView API model. You can write VB Script(Macro) and call it on On-Click action. QlikView provides in-built triggers and you can use these triggers to call the Macro code. I'm attaching the API reference documentation for your understanding.
I wanted to understand why do you want to give the power to users to create a new table on button click? I'm assuming that you understand the implication of this request...this will be very DANGEROUS where users end up creating 100's of table (If not crashing the DB) and there is potential risk on the data integrity or your DBA might not appreciate this approach.
If you really wanted to write to a table then I'd recommend you to store the data in the flat file/CSV format and run the batch process without giving direct access to the users. This way you don't have to provide "Write Permissions" to every user, rather you have one login which does the job.