My report has a screen with select-option ranges, if the user enters few entries the report works fine, but if the user enters a few thousand entries in the ranges the dump occurs:
dbsql_stmnt_too_large
The system says there is a problem with the SELECT query below. It is too complicated. I haven't any ideas how I solve it. Can someone help me how I fix it?
The query seems like that:
SELECT * FROM ZDBtab INTO TABLE gt_itab WHERE dbfeld1 LE gv_feld1
AND dbfeld2 IN gt_itab2
AND (
( dbfeld3 NE ' ' AND dbfeld3 NE gv_feld2 )
OR ( dbfeld4 NE ' ' AND dbfeld4 NE gv_feld2 )
OR ( dbfeld5 NE ' ' And dbfeld5 NE gv_feld2 )
).
It is a Hana DB with normal ERP not S4 but HanaDB