please can you tell me how to create tmp table using class
If you want to use a normal table as a temporary one, call setTmp() on the buffer. If you want to create a completely new table, look at this thread: How to Create a New Table by using X++ code. You’ll just have to set the appropriate property (depends on AX version) to make the table temporary - use TreeNode.AOTsetProperty() to do that. Property names can be found in the Properties macro.