Unsupported feature
SyntaxFromSQL does not support stored procedures and functions if they use the temporary table; it will be supported in later versions.
Workaround
Use a statically created DataWindow (instead of a DataWindow dynamically created by SyntaxFromSQL) to call stored procedures and functions which use the temporary table.