Hi,
If your code is OK, and the problem is with the selection, you can use: catch
data: exc_ref TYPE REF TO cx_sy_open_sql_db,
exc_text(50).
try.
" your select code
catch cx_sy_open_sql_db into exc_ref.
exc_text = exc_ref->get_text( ).
message exc_text type 'E'.
endtry.
Regards,
Maria João Rocha