Thanks Sumeet!! You solved my problem in seconds points rewarded !!!!
But one more problem is raised with this, I have to remove the interaction with the status 'Open'.. I could do it with the previous code.
* WHILE lr_bo IS BOUND.
* TRY.
* lr_entity ?= lr_bo.
* lr_entity->get_property_as_value(
* EXPORTING iv_attr_name = 'STAT_TXT'
* IMPORTING ev_result = lv_object_type ).
* IF lv_object_type EQ lv_status.
* lr_queryres_col->remove( iv_bo = lr_bo ).
* ENDIF.
* CATCH cx_bol_exception cx_root.
* ENDTRY.
* lr_bo = lr_queryres_col->get_next( ).
* ENDWHILE.
Now all the data is in related entities, I tried to retrieve it but didnt work for me. can you please help with this. I am ready to open a new post if you say!!