Quantcast
Channel: SCN : All Content - ABAP for SAP HANA
Viewing all articles
Browse latest Browse all 831

Re : Open Sql query with case statement.

$
0
0

Hi ,


Currently I am looking into open sql statement in  abap for hana


I wrote the below query but in debugging the values are populated as below


SELECT carrid,

CASE carrid

        WHEN 'AC' THEN 'Canada Airlines'

        WHEN 'LH' THEN 'Lufthansa Airlines'

        ELSE carrid

        END AS carrier_name_long,

       SUM( sflight~price ) AS total_price

       FROM sflight

       GROUP BY carrid

       intotable @DATA(lt_result).

IF lt_result[] IS NOT INITIAL.

  DESCRIBE TABLE lt_result LINES sy-tfill.

  WRITE : /sy-tfill.

ENDIF.


Please find the attached screen shot

 

 

 

Thanks in advance.

 

Regards,

Raghunadh Kodali.


Viewing all articles
Browse latest Browse all 831

Trending Articles



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