SAP Note 13607 - Termination of an ABAP with DBIF_RSQL_INVALID_RSQL

Component : DB Independent Database Interface -

Solution : https://service.sap.com/sap/support/notes/13607 (SAP Service marketplace login required)

Summary :
An ABAP program terminates due to a SELECT statement leading to a DBIF_RSQL_INVALID_RSQL error, with the system log showing "The SQL statement came across a restriction of the database system". The issue stems from Open SQL statements in ABAP being translated to native SQL by the SAP database interface, violating database restrictions. The error often arises when range tables are used in the WHERE clause of a SELECT statement resulting in SQL statements that exceed database constraints like the maximum number of values in an IN clause, host-variables, or statement length. To resolve, diagnostics are made via dev_w[i] trace files and adjusting the Open SQL statement accordingly, possibly rewriting using FOR ALL ENTRIES.

Key words :
55 dia  2 se38 r68 roll-back ausführen14, describe table range_tab lines lines, 56 dia  2 se38 ab0 laufzeitfehler, 56 dia  2 se38 ab1 > kurzdump, big marker count = 6938 > max, previous open sql statement, case 'eq range_tab-low', open sql select statement, marker count = 3000with, operand range_tab-low

Related Notes :

1582026Dump when displaying last 10 documents in BAiO POWL
1427036Extraction 0TB_CN_BCFC1 terminates with a dump
1400234AMON: short dump when deleting heuristic planning alerts
1383091AMON: Short dump when evaluating heuristic planning alerts
1293704AMON: Open SQL dump (max. no. of input variables exceeded)
940588Extraction: 0CRM_TGBP dumps - max SQL statement
924948RPR_TRIP_HEADER_DATA: Short dump DBIF_RSQL_INVALID_RSQL
859756
798729Short dump when distributing material master
791034DBIF_RSQL_INVALID_RSQL when you create wave picks
730794VXA3: Runtime error DBIF_RSQL_INVALID_RSQL
693170O3O_CT05 gives "RSQL error 13"
667408RSNAST00: DBIF_RSQL_INVALID_RSQL Dump
607468VT20: Termination with DBIF_RSQL_INVALID_RSQL
575721Transaction ST03N terminates with DBIF_RSQL_INVALID_RSQL
506722MIR6: Short dump when selecting the invoice
502809DBIF_RSQL_INVALID_RSQL in RV_MESSAGE_READ
442816Collective avail. check: Short dump DBIF_RSQL_INVALID_RSQL
407622DBIF_RSQL_INVALID_RSQL in RV60SBAT
397043Program termination during dynamic selections in PNP
391373Short dump when releasing standing orders
380377RSQL error 13, ANEP_READ_BWAGR_MULTI_AFABE, AB08
330416Sel.cond.>8kbytes: ABAP dump SAPSQL_WHERE_CANT_SCAN
306587SCS:internal table too large for service charge key
199668REP: Termintn.reporting upon single selection loan
193481Termination of TA MDVP w/ DBIF_RSQL_INVALID_REQUEST
179578Allocations: Runtime error with DBIF_RSQL_INVALID_RSQL
178220COGI: Termination with RSQL ERROR 13
163650Int.calc.run:Dump DBIF_RSQL_INVALID_RSQL in DFKKOPW
155284Dump aktuelle Bestandsliste
144464VL10, RSQL error 22 in access to table ...
124586RCATSTAL DBIF_RSQL_INVALID_RSQL error
99201DBIF_RSQL_INVALID_RSQL for SELECT FOR ALL ENTRIES
71654FI-LC: Document intervals in RGCSHD00 are too high
63037AS/400: Deleting SQL Packages
54028IBM i: SQL0 904 reason code 7, overflow in SQL package