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

SQL Script Calculation View: in CE_PROJECTION use CE_CALC function to concatenate an input column and a text string

$
0
0

Hello,

 

I have the following code in a SQL script calculation view:

 

p_r1_errors = CE_PROJECTION (:j_r1_errors,

["MATNR","ERSDA","MTART",

"SPRAS","MAKTX",

"RULE_ID","TABLE_NAME","FIELD_TECH_NAME","FIELD_DESCRIPTION",

"RULE_LONG_TEXT","RULE_DIMENSION",

CE_CALC ((''' is blank.'''),NVARCHAR(255)) AS "CC_ERROR_TEXT"]);

 

What I would like to do is to concatinate "FIELD_DESCRIPTION" and ' is blank.' and output it as the "CC_ERROR_TEXT".

 

"FIELD_DESCRIPTION" is currently defined as VARCHAR(255) (not NVARCHAR).

 

What is the correct syntax to achieve the desired result?

 

Thank you.


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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