‎2009 Jun 15 1:44 PM
Hello everybody,
I have some problems using the query service. here is the code
data: lo_qry_manager type ref to if_os_query_manager,
lo_qry type ref to if_os_query,
lt_items type osreftab,
l_tender_no type zs2tcvbeln_d,
lo_agent type ref to zca_s2_tender_item,
lx_error type ref to cx_root.
lo_agent = zca_s2_tender_item=>agent.
l_tender_no = header->get_zs2tcvbeln( ).
lo_qry_manager = cl_os_system=>get_query_manager( ).
lo_qry = lo_qry_manager->create_query( i_filter = 'ZS2TCVBELN = PAR1' ).
try.
lt_items = lo_agent->if_os_ca_persistency~get_persistent_by_query(
i_query = lo_qry
i_par1 = l_tender_no ).
catch cx_root into lx_error.
endtry.
The call to if_os_ca_persistency~get_persistent_by_query raises the exception CX_OS_QUERY_PARSE_ERROR with the text id ATTR_EXPECTED and ZS2TCVBELN als attribute found, that is somehow wrong.
This seems to be the case for all attributes of the related persistence class starting with the letter Z, all other attributes seem to work fine.
any ideas?
thanks in advance,
best regards,
Hans Hohenfeld
‎2009 Jun 16 11:44 AM