Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

link two inner table by index

Hi guys

    now I miss one problem , I hope to   two  link  two inner table  more fast.  both of the tables have millions recoreds.

I have been read some code.but I dont know  WHY?

Can you explain ?  HELP ME !  thank you.



SORT gt_tab01 BY field.

SORT gt_tab02 BY field.

l_index = 1.

LOOP AT gt_tab01 INTO gs_tab01.

READ TABLE gt_tab02  INTO gs_tab02 INDEX l_index.

CHECK sy-subrc = 0.

IF gs_tab02-field = gs_tab01-field.

l_index  = l_index + 1.

ENDIF.

ENDLOOP.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question