This question is related to the EHSM module but since it is related to BOPF framework so I though of posting it here.
I have the reference of the ROOT Node for EHSS_INCIDENT Object and I want to attach a task to this.
I also wanted to attached an involved person which I managed by using the method.
lo_inv_pers = io_root_node->get_subnode_by_key( if_ehhss_inc_c=>sc_association-root-person_involved ).
lr_s_person_involved ?= lo_inv_pers->create_empty_row( ).
However since EHHSS_INCIDENT_ACTION is not a direct sub-node of the EHHSS_INCIDENT object hence I tried to use the method
lo_task_node = io_root_node->get_node_by_assoc( if_ehhss_inc_c=>sc_association-root-ehhss_incident_report ).
but the next statement
lr_s_task ?= lo_task_node->create_empty_row( ).
Errors our because the structure of the ehhss_incident_report does not get populated.
Any suggestions on this ?