Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: SQL Script Calculation View: CE_CALC variable conversion

$
0
0

Thank you very much!

 

I tried replace before and got an activation error so I thought I could not use it.  I tried it again and this time it worked.

 

Here is my new code and the result.

 

p_r56_errors = CE_PROJECTION (:a_r56_prod_marc_cl30n,

["BSTRF","PACKAGE_WEIGHT",

CE_CALC('"PACKAGE_WEIGHT" + ''  ==>  ''',NVARCHAR(255)) AS"CC_ERROR_SUB_TEXT1",

CE_CALC('"CC_ERROR_SUB_TEXT1" +

         TRIM(REPLACE(REPLACE(REPLACE("PACKAGE_WEIGHT",'','',''''),''lb'',''''),''kg'',''''))',

         NVARCHAR(255)) AS"CC_ERROR_TEXT"],

'"PACKAGE_WEIGHT" != ''''');

 

var_out = CE_PROJECTION (:p_r56_errors,

["CC_ERROR_TEXT",

CE_CALC('1',INTEGER) AS"CM_ONE"]);

 

picture2.jpg

 


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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