You will need to transform the static buffer to a buffer handle. Static means at compile time. So you will need a stub program per table that contains the table name, you already have this for your delete trigger procedure.
Maybe the following helps:
// this is the delete trigger, it contains...