Hi,
After getting data in internal table
Read ur internal table no of times according to your requirement.
Read <itab> into <wa> where task_id = xyz returntyp = 'RC'
If sy-subrc eq o.
starttime =
endif.
Read <itab> into <wa> where task_id = xyz returntyp = 'EV'
If sy-subrc eq o.
action taken =
endif.