Code: Alles auswählen.
TRANSLATE lv_name TO UPPER-CASE.
EXEC SQL PERFORMING zz_exec_sql_write.
SELECT TOP 500
NAME1,
INTO :lv_name
FROM KNA1
WHERE MANDT = :SY-MANDT
UPPER(NAME1) LIKE :lv_name
ENDEXEC.