Greeting from Aaron Lee who is a beginner of ABAP student. I meet a runtime error in the following codes which has no syntax error.
REPORT z3_4native_sql .
DATA: gv_carrid LIKE sflight-carrid VALUE ‘AA’,
gv_connid LIKE sflight-connid.
EXEC SQL.
SELECT A.CONNID
INTO :gv_connid
FROM SFLIGHT A
WHERE A.MANDT = :SY-MANDT AND A.CARRID = :gv_carrid.
ENDEXEC.
WRITE gv_connid.
Errors as following, How can I correct it? Thanks