‎2006 Oct 29 8:15 AM
Dear All,
I need to compare two internal tables such as itab1 and itab2. Both will have common field 'MATNR'. I need to select those records from the internal table itab2 for which MATNR is not existing in internal table itab1. How can I do this? Please help me.
Good solutions will be rewarded.
Best Regards
Renjan
‎2006 Oct 29 8:21 AM
hi,
do this.
<b>loop at itab2.</b>
<b>read table itab1</b> with key matnr = itab2-matnr.
<b>if sy-subrc <> 0.</b> " not found
<b>APPEND itab2 TO itab1.</b>
endif.
<b>endloop.</b>
rgds
anver
if hlped pls mark points
Message was edited by: Anversha s
‎2006 Oct 29 8:54 AM
hi renjan,
did my solution work.
if not pls post ur issue.
so that we can help.
thnanks,
anver