Quantcast
Channel: Baanboard.com
Viewing all articles
Browse latest Browse all 4216

error compiling

$
0
0
Hi All ,

I have following SQL select code in my code
Quote:

select tijwx895.*,tijwm993.* ,
CASE when tijwm993.cwar = :tdsls401.cwar then 1
when tijwm993.wtyp = tdloctyp.buyback then 4
when tijwm993.wtyp = tdloctyp.order then 2
when tijwm993.wtyp = tdloctyp.cunostk then 5
when tijwm993.wtyp = tdloctyp.certified then 3
else 999
end
Compiling this gives following error
Quote:

ptdjwm4500m0020( 880): Fatal Error: Macro 'end': Illegal number of arguments.
Any idea what am i doing wrong here. I want to order by the value in case expression . So appropriate syntax may be shared.

Viewing all articles
Browse latest Browse all 4216

Trending Articles



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