loop at gt_so_inf into gs_so_inf.
read table gt_excel into gs_excel with key werks = gs_so_inf matnr = gs_so_inf-matnr.
if sy-subrc eq 0.
delete table gt_so_inf from gs_so_inf.
continue.
endif.
endloop.
读取 gt_excel 中的数据 要求 工厂与物料号与 gt_so_inf 中的数据一致
如果至少读取到一条,删除gt_so_inf中的这条
然后继续下一个循环 continue.