SORT it_outputmseg BY mblnr aufnr.
SORT it_msegtemp BY smbln aufnr.
LOOP AT it_outputmseg INTO DATA(wa_outputmseg).
READ TABLE it_msegtemp INTO DATA(wa_msegtemp) WITH KEY smbln = wa_outputmseg-mblnr aufnr = wa_outputmseg-aufnr BINARY SEARCH.
IF sy-subrc = 0.
DELETE it_msegtemp WHERE smbln = wa_outputmseg-mblnr AND aufnr = wa_msegtemp-aufnr. "msegtemp
DELETE it_msegtemp WHERE mblnr = wa_msegtemp-smbln AND aufnr = wa_msegtemp-aufnr. "mblnr_mseg
ENDIF.
CLEAR wa_msegtemp.
ENDLOOP.
Hello everyone this loop is taking so much time to process if data is around 55k. Is there any alternate way to do same.