When you use the host variables in the programs with the new open SQL grammar, e.g. WHERE carrid = @carrid, the programs are terminated with the SYNTAX_ERROR dump as below:
Category ABAP Programming Error
Runtime Errors SYNTAX_ERROR
ABAP Program Z_XXXX
The following syntax error has occurred in program Z_XXXX:
"@carrid" is invalid here (due to grammar). contains an invalid character
or it is a keyword. (It might be possible to escape it using"!").
Or a space is missing or there is one space too many.”
SAP NetWeaver ABAP System lower than 740 SP08 and with Kernel 7.49
downward compatible kernel, SAP_BASIS 740, regressions, inner join statement, Z-report, Z-program, open SQL syntax , KBA , BC-ABA-LA , ABAP Syntax, Compiler, Runtime , BC-CST , Client/Server Technology , Problem
About this pageThis is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).
Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.