Table name as function


Could it be possible to have a function that gives the table name.
sometime I have to append several tables and the possibility to had a column with the table name would help me to track the source table.
It would also help to rename field with table.field (the QUALIFY function in Qlik)