Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

SAP HANA Procedure, IF statement with IN syntax

$
0
0

SAP HANA Procedure, IF statement with IN syntax


Hello,

 

I have the following code in my procedure:

 

   DECLARE lv_package_type                 varchar(255);

 

   If lv_package_type = 'Bundle Standard' Or
      lv_package_type = 'Bundle Min' Or
      lv_package_type = 'Bundle Max' Then
                  
        perform some action....

 

   End If;


I would like to convert 'Or' to 'In' and am not sure how to do it.

 

 

When I code:  If lv_package_type in ('Bundle Standard','Bundle Min','Bundle Max') Then

 

I get the following activation error:  feature not supported: IN comparison is not supported.

 


Is the IN comparison truly not supported or is my syntax incorrect and so generates this misleading error?

 


Thank you,
Victoria



Viewing all articles
Browse latest Browse all 6412

Trending Articles



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