Dear,
after setting up a scenario in SQLScript with pure SQL statements only, I'm now trying to set up the same using calculation engine functions. One tiny part of my setup fails with an error "Inconsistent calculation model (34011)... -> filter: '"DATE_FROM" <= today and "DATE_TO" >= today' -> Attribute 'today' is missing in node contact_text_res_2".
My "code" looks as follows:
today nvarchar(8);
today := now();
contact_text = ce_column_table("HANA"."ADRP", ["PERSNUMBER", "DATE_FROM", "DATE_TO", "NAME_TEXT"]);
contact_text_res = ce_projection(:contact_text, ["PERSNUMBER", "DATE_FROM", "DATE_TO", "NAME_TEXT"], '"DATE_FROM" <= today and "DATE_TO" >= today');
can anyone tell me what's wrong here? If I use the "now()" directly in the projection view, the second part of the error message is "-> filter: Expression cannot be converted to query entries: Expression may not be converted to query entries"
Kind regards,
Raf