Well I'm sorry Roman but you are wrong here. I'm sure this has nothing to do with network problems, the error message itself is wrong or does not tell the whole story. I'm calling this stored procedure from hdbsql on the Hana machine, not remotely. And the fact that it happens consistently in the same place and disappears when I change the condition tells us it has something to do with the statement and not with the way the command was sent to Hana. I'm pretty sure this is a timeout on some (wrong) lock.
-- Micha