SAP Note 749078 - RUNT_ILLEGAL_SWITCH with REFERENCE INTO

Component : Syntax, Compiler, Runtime -

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

Summary :
This SAP Note addresses a kernel error manifested as a RUNT_ILLEGAL_SWITCH when the "REFERENCE INTO" clause is used in conjunction with statements like READ, INSERT, APPEND, COLLECT, or MODIFY. The error, primarily seen post-kernel patch level 1045, requires a kernel update as a resolution. To correct it, users should import the latest 620 kernel patch as outlined in note 19466, which specifically addresses this issue. Post-patch, affected programs must be regenerated. A temporary ABAP workaround involves inserting a CLEAR statement for any unused variable before the problematic statement.

Key words :
terms data reference, simple abap workaround, unused variable directly, latest 620 kernel patch, kernel patch level 1045, kernel patch, kernel error, patch text, system terminates, modify reason

Related Notes :

651612ASSIGNING with unsuccessful operation
19466Downloading SAP kernel patches