Hi
Iam having two internal tables
data: begin of itab,
matnr like mara-matnr,
maktx like makt-maktx,
charg like mch1-charg,
end of itab.
data: itab1 like itab occurs 0 with header line,
itab2 like itab occurs 0 with header line,
data:begin of jtab,
matnr like mara-matnr,
charg like makt-charg,
end of jtab.
data: itab3 like jtab occurs 0 with header line,
itab4 like jtab occurs 0 with header line.
<b>[ both itab1 and itab3 contains records.they can be different or same records. now i have compare both the tables with matnr and charg.For one matnr number we can have multiple charg numbers.
1.when compared if the record is found in itab1 and not in itab3 then we have to pull out that record into itab2.
2.if the record is not found in itab1 and found in itab3 then we have to pull that record into itab4
3. if they are same nothing to be done.]</b>
CAN ANY ONE POST WITH EXAMPLE.