If you have temp table and you are in debugging session, you can you immediate window to get exact table name which could be queried in ssms:
PurchTableMark is temp table in this debugging context from D365FO.
Use getPhysicalTableName method on PurchTableMark:
PurchTableMark.getPhysicalTableName().Replace("\"","");
