Quantcast
Channel: SCN : Unanswered Discussions - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 3719

Decode function in SAP BODS

$
0
0

Hi Gurus,

 

Could u help me with the below decode statement i used in where clause?

 

 

Query.CALMONTH = $GV_Calmonth

decode(Query.CALMONTH  is null,Query.CALMONTH=('0'||substr(add_months( sysdate( ),-1) ,6,2)||'.'||substr(sysdate(),1,4)),Query.CALMONTH)

 

 

Error:

 

 

Invalid WHERE clause. Additional information: <Syntax error at line <7>: <decode(Query.CALMONTH  is null,Query.CALMONTH=('0'||substr(add_months( sysdate( ),-1) ,6,2)||'.'||substr(sysdate(),1,4)),Query.CA>: near <decode> found <identifier>>.

1 error(s), 0 warning(s).

 

 

Check and fix the syntax and retry the operation. (BODI-1112394)>. (BODI-1111078)


Viewing all articles
Browse latest Browse all 3719

Trending Articles



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