Changing Table Button Captions

How to get ticket number on the entity button.’
I have tried this.
> $1

> TKT No: {REPORT TICKET DETAILS:T.TicketNumber:(TEN.Table=$1)}

> {ENTITY STATE MINUTES:Status} min.

But showing as follows.