title: How to avoid a dbsql_stmnt_too_large dump with a very large IN table?
body: <p>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:</p>
  <blockquote>
  <p><strong>dbsql_stmnt_too_large</strong></p>
  </blockquote>
  <p>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?</p>
  <p>The query seems like that:</p>
  <pre><code>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 )
      ).
  </code></pre>
  <p>It is a Hana DB with normal ERP not S4 but HanaDB</p>