Hi ,
You are using same ls_SWPSTEPLOG in all data fetching , which will overwrite,make it different
ls_SWPSTEPLOG,ls_SWPSTEPLOG1,ls_SWPSTEPLOG2
loop at lt_SWPSTEPLOG into ls_SWPSTEPLOG.
READ TABLE lt_SWPSTEPLOG INTO ls_SWPSTEPLOG1WITH KEY returntyp = 'RC' BINARY SEARCH.
IF sy-subrc = 0.
START_DATE = LOG_DATE.
START_TIME = LOG_TIME.
READ TABLE lt_SWPSTEPLOG INTO ls_SWPSTEPLOG2WITH KEY returntyp = 'EV'
wf_id = ls_SWPSTEPLOG1-wf_id
node_id = ls_SWPSTEPLOG1-node_id
wi_id = ls_SWPSTEPLOG1-wi_id
task_id = ls_SWPSTEPLOG1-task_id
if sy-subrc = 0.
compl_date = ls_SWPSTEPLOG2-logdate
...
endif.
ENDIF.
Regards