Hi Marco,
just checked your query and I'm getting the same error message. But if you delete the last line (the parameters in the where clause) the query works fine. The use of parameter like [%Date01] can be a bit tricky in Hana, especially when using subqueries.
For your query above: try to avoid the sub-selects and add INV1 via left join to your query.
[code]
LEFT JOIN INV1 T2 ON T2."DocEntry" = T0."DocEntry" AND T2."LineNum" = '0'
[/code]
hth,
Martin