SAPSQL_WHERE_MISSING_SUBQUERY is an ABAP runtime error which you may come across when using or developing within an SAP system. See below for the standard details explaining what it means and how you can avoid or fix this runtime error.
Short Dump Classification: I - Internal Kernel Error
You can view further information about a runtme error by using transaction code ST22 which will show you this and all runtime erros that have happen in your SAP system.
Also check out the Comments section below to view or add related contributions and example screen shots.
Please see search hints for more details about the possible cause of this runtime error and how it could be avoided.
Please see send to sap for more details about the possible cause of this runtime error and how it could be avoided.
A subquery is missing in a dynamically entered condition.
Please see internal error for more details about the possible cause of this runtime error and how it could be avoided.
The ABAP program running tried to execute a SELECT statement with a
(partly) dynamically entered WHERE or HAVING condition.
In the part entered at runtime, a subquery is expected as a comparison
value for field "<runtime parameter>".
Please see internal error for more details about the possible cause of this runtime error and how it could be avoided.
SAPSQL_WHERE_MISSING_SUBQUERY - sapsql where missing subquery SAPSQL_WHERE_MISSING_OPERATOR - sapsql where missing operator SAPSQL_WHERE_MISSING_ESCAPE - sapsql where missing escape SAPSQL_WHERE_ILLEGAL_VALUE - sapsql where illegal value SAPSQL_WHERE_FOR_ALL_MISMATCH - sapsql where for all mismatch SAPSQL_WA_WRONG_ALIGNMENT - sapsql wa wrong alignment