Quantcast
Channel: SCN: Message List - ABAP for SAP HANA
Viewing all articles
Browse latest Browse all 2110

Re: Re : Open Sql query with case statement.

$
0
0

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.


Viewing all articles
Browse latest Browse all 2110

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>