Thanks for your answer Krishna, I've been reading your examples and I have 2 questions about it.
1 ) Using EXECUTE INMEDIATE
Hana Statement
query := 'SELECT DocEntry,LineId,VisOrder ,Object FROM @INV_AFC';
EXECUTE IMMEDIATE(:query)
Question : but it just execute the query .. then How can I insert the resultset of the query into my table variable(Tab) to use Tab for further processing ?
2 ) Using EXEC with a insert statement into Table variable is possible?
Thanks in advance!