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

Cardinality Error

$
0
0
Hello together,

I want to add a calculated field to session tdsls4101m600 (Sales Order Intake Lines)
It should be able to filter by this field --> thats why I use "Nested Select" as expression type.

The logic should be:
if tdsls400.cdf_kuwu = 0
then take tdsls401.prdt
else take tdsls400.cdf_kuwu

Main table of this session is tdsls401.

However I get a cardinality error. Do you know what is wrong?:confused:
The cardinality error appears when I filter by the new calculated field and select all records.
The strange thing is that exactly the same query works in SQL-Server Management Studio.

PHP Code:

select 
        
CASE    tdsls400.cdf_kuwu
                WHEN 0 THEN tdsls401
.prdt
                
ELSE tdsls400.cdf_kuwu  
        END  
FROM    tdsls400
WHERE   tdsls400
.orno tdsls401.orno
AND     tdsls401.pono tdsls401.pono
AND     tdsls401.sqnb tdsls401.sqnb 

Thanks
Martin

Viewing all articles
Browse latest Browse all 4216


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