Hi Fernando,
In the new open sql select statements doesn't require declarations for creating the internal tables.
i followed the syntax which is explained by jasmin in open sap videos.
Please find the below syntax.
"simple case
SELECT so_id,
CASE delivery_status
WHEN ' ' THEN 'OPEN'
WHEN 'D' THEN 'DELIVERED'
ELSE delivery_status
END AS delivery_status_long
FROM snwd_so INTO TABLE @DATA(lt_simple_case).
Thanks & Regards,
Raghunadh Kodali.