SAP Message AQ217 - No lists yet defined for query &

Diagnosis
The query does not specify any report layout. Neither basic list, norstatistics, nor ranked list have been defined.
You then tried to execute the query, determine the sequence of thesublists or display the layout.

Procedure
Define the report layout (basic list, statistics or ranked list) beforeexecuting the query.