Declare a variable of the same type of field carrid from table SPFLI.
Solution:
REPORT Z_ABAP101_022.
DATA air_line_code TYPE spfli-carrid.

Serkan AKKAVAK
Computer Engineer
ABAP Developer & SAP S/4 HANA Logistics Consultant
Contact : serkurumsal@yandex.com