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

Re: Dynamic Parameters using SQL Script in a Calculation View

$
0
0

Hi Ravi,

 

 

I am trying to create the same scenario as you mentioned...see my code below.

 

 

I want to get the range from the sales org in my script model.

 

select t2."BILL_VBELN","BILL_FKDAT","BILL_KVGR1_1","BILL_FIL_PROFORMA_INV","BILL_KUNRG","BILL_KTGRD_1","BILL_VKORG_VBRK","BILL_INCO1","BILL_INCO2","BILL_PRCTR","BILL_POSNR","ROUTE",t2."BILL_AUPOS","GET_DAYS","BILL_DATE_FY","BILL_DATE_FP","CA_BILL_REP_NETWR_COMP_CURR","CA_BILL_REP_WAVWR_COMP_CURR",t2."NEW_DEL_DATE"


"_SYS_BIC"."pk-sample.productmanagement/CV_REVENUE_RECOG_CUTOFF_PVP"


as t1



INNERJOIN



select"BILL_VBELN", "BILL_AUPOS"MAX("NEW_DEL_DATE") AS"NEW_DEL_DATE"from"_SYS_BIC"."pk-sample.productmanagement/CV_REVENUE_RECOG_CUTOFF_PVP"


"BILL_VKORG_VBRK"between (placeholder."$$BILL_VKORG_VBRK$$" => :SALESORG_START) and (placeholder."$$BILL_VKORG_VBRK$$" => :SALESORG_END)


by"BILL_VBELN" , "BILL_AUPOS") as t2



(t1."BILL_VBELN" = t2."BILL_VBELN"AND t1."BILL_AUPOS" = t2."BILL_AUPOS");


;

 

 

I am getting syntax error

 

 

Internal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Deploy Calculation View: SQL: sql syntax error: incorrect syntax near "=>": line 10 col 68 (at pos 944)nSet Schema DDL statement: set schema "SYSTEM"nType DDL: create type

 

 

Please let me know how to get the range in the script model on the sales org field..

 

thanks a lot in advance...

 


Viewing all articles
Browse latest Browse all 9165

Latest Images

Trending Articles



Latest Images

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