Hi, we have a Hyperblock pointing to a relational table thru a SQL Statement with parameters pointing to report variables in the clausule 'WHERE' working successfully. Problem is when putting another report variable in the 'ORDER BY' clausule getting an error but if we put the value manually in the SQL sentence ('DDIVISION' in this case) returns the information correctly:


Any idea to solve this issue?
Thanks in advance,
Kind Regards