Hello Linkin,
I saw some inconsistencies in your statement:
- you want to attach task but you are trying to add new record in Incident Report?
Please check class CL_EHHSS_INC_TASK_PINV_SUB_FDR and method create_act_instance in order to have example how to create action.
Regards,
Erkan