Hi all,
I'm trying to get a (or multiple) presentation variable(s) working in the where statement of a sql-clause. I have this specific sql used in bi using the "DirectDatabaseRequest" functionality.
With variables hardcoded it works fine, but my colleagues would like to have the possibility of using an excisting dasboardprompt.
Summary of sql used:
select SDkcoo ORDERCOMPANY, SDdcto ORDERTYPE
from f4211
where
SDdcto in ('SO','SD')
and SDkcoo in ('00001','00002')
Using this SQL gives requested result, however when I try to change for instance last line, as suggested by a few blogs, it gives none or wrong result
and SDkcoo IN ('@{PCompanynr}['@']{00001}') OR '@{PCompanynr}{}' = ''
Can someone give me a hint or clue where to look for please?
Thanking in advance,
Arie