Dear Vinay
There is a parameter that can help (since SPS8) which is designed to avoid having "wrong" queries consume massive amounts of memory. This could potentially help you also with the issue you are describing, if these statements do consume a lot of memory but I would assume they would.
"
Memory Tracking Parameters (New)
Statement memory tracking and statement memory limitation help you avoid uncontrolled statement memory
allocation
● The peak memory consumption of a statement can be tracked and displayed in Expensive Statements.
● Resource consumption collection has to be enabled manually:
Configuration file global.ini, parameters enable_tracking and memory_tracking
● Additionally the SAP HANA administrator is able to define a global statement memory limit in the
database:
Configuration file global.ini, parameter statement_memory_limit
● If a statement exceeds the memory limit, it will be canceled
"
Reference:
http://help.sap.com/hana/Whats_New_SAP_HANA_Platform_Release_Notes_en.pdf
Best regards
Tom