doornbos
20th April 2011, 12:48
Hi,
I've a problem using _compr in a sql query (ttadv3580m000) in ERP/LN. In BaanIV i used
... where tfgld106._compr = "100,110,120" and ...
, but in ERP/LN i get error messages.
With
... where tfgld106._compnr = "110,130" and ...
i get: SQLState 42I89: Invalid company number expression (error 302) (main() in object ottadv3180parse)
With
... where tfgld106._compnr in (110,130) and ...
i get: SQLState 42I82: _compnr IN predicate is only allowed in parse mode 'ansi' (error 302) (main() in object ottadv3180parse)
With
... where (tfgld106._compnr = 110 or tfgld106._compnr = 130) and ...
i get: SQLState 42I30: Compnr specification in OR condition (error 302) (main() in object ottadv3180parse)
Did the usage of _compnr in SQL Queries change?
I also tried company_nr, but then i get this error: Unknown column 'tfgld106.company_nr'
How to create a multicompany sql query in ERP/LN?
With kindly regards,
Douwe.
I've a problem using _compr in a sql query (ttadv3580m000) in ERP/LN. In BaanIV i used
... where tfgld106._compr = "100,110,120" and ...
, but in ERP/LN i get error messages.
With
... where tfgld106._compnr = "110,130" and ...
i get: SQLState 42I89: Invalid company number expression (error 302) (main() in object ottadv3180parse)
With
... where tfgld106._compnr in (110,130) and ...
i get: SQLState 42I82: _compnr IN predicate is only allowed in parse mode 'ansi' (error 302) (main() in object ottadv3180parse)
With
... where (tfgld106._compnr = 110 or tfgld106._compnr = 130) and ...
i get: SQLState 42I30: Compnr specification in OR condition (error 302) (main() in object ottadv3180parse)
Did the usage of _compnr in SQL Queries change?
I also tried company_nr, but then i get this error: Unknown column 'tfgld106.company_nr'
How to create a multicompany sql query in ERP/LN?
With kindly regards,
Douwe.