Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8950

Re: Errow with IF statement in Scripted Calculation view

$
0
0

Hi Lars,

 

My CV has been activated but my data is not getting restricted correctly.

 

It is showing 0 against all the records.

 

Below is the sql used for calling the CV.

SELECT * FROM "_SYS_BIC"."A_123/CV_SCR_BSID_BSAD_ITEMS" ('PLACEHOLDER' = ('$$Currency$$', '''Local'''),'PLACEHOLDER' = ('$$Date_From$$','2014-01-01' ), 'PLACEHOLDER' = ('$$Date_To$$','2014-06-30' ));

 

Below is my updated CE_CALC function :-

 

CE_CALC('IF(date("BUDAT") >= date(:Date_From) and date("BUDAT") <= date(:Date_To),"AMOUNT",0)', DECIMAL(13,2)) AS "DTR"

 

Is there any issue while passing values here?

 

Regards,

Anup


Viewing all articles
Browse latest Browse all 8950

Trending Articles



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