My requirement is to display the open activities on view. I have retrieved all activities for an account through 'BuilActivityRel'.
The header node is BuilHeader and item node is Activity. I need to retain only open activities and delete the rest.
Could you please let me know the process to delete the records from BOL collection.
My code is as follows:
DATA: lv_collection TYPE REF TO if_bol_bo_col,
entity TYPE REF TO cl_crm_bol_entity.
get collection of dependent nodes
entity ?= focus_bo.
lv_collection = entity->get_related_entities(
iv_relation_name = 'BuilActivityRel' ).
should never happen
me->set_collection( lv_collection ).