title: interactive report with dynamic sql statement
body: <p>I'm trying to generate an Interactive-Report in Apex with a SQL-Statement which lies in a page item (:P10_SQL), for example: select 1 from dual.</p>
  <pre><code>declare
   l_sql VARCHAR2(4000 CHAR); 
  Begin
  select V('P10_SQL') into l_sql from dual;
  return l_sql;
  End;
  </code></pre>
  <p>The Report has the type PL/SQL Function Body returning SQL Query.
  Apex shows an error
  ORA-20999: WWV_FLOW_EXEC.NULL_QUERY_RETURNED_BY_FUNCTION</p>
  <p>Somebody gets an idea?</p>