Hi Zhou,
I Hope the below piece of code will help you,
Loop at IT_TAB1 into WA_TAB1.
wa_int_fin-part = wa_it_tab1-matnr.
**** Pass the values from int table one to the final table
Read table it_tab2 into wa_it_tab2 with key partnumber = wa_tab1-matnr.
*** Read the values from table 2 based on the value in work area of table 1.
wa_int_fin-part = wa_it_tab2-part.
***No pass the values from internal table 2 to final table.
Append wa_int_fin to itab_final.
clear wa_int_fin. (Don not forget to clear all the work areas of all internal table after each append)
endloop.
Regards,
Satish