Hi,
The main difference between 'data' and 'types' is when we are using 'data' it provide some space in memory that means the statement creates data object.
when we are using the 'types' it just gives the reference not create any space in the memory.
That's you are getting 'unknown' syntax error.
Please follow the 'bala' reply .it's good.
types: BEGIN OF i_listado,
KUNNR LIKE kna1-KUNNR,
LAND1 LIKE kna1-LAND1,
TELFX LIKE kna1-TELFX,
END OF i_listado.
DATA LS_LISTADO TYPE i_listado."