2007 Aug 24 11:06 AM
hi guru's,
i want to disply repeatable records ,which will available in database.how to retrive only repeatable records.
give me code corresponding that
thanks in advance
probably you mean duplicate reports?
2007 Aug 24 12:02 PM
Hi surendra,
I think it doesnt exist. You have to retrieve all table and do a loop.
Select * from DATABASE into itab.
Sort itab order by fields.
Read table itab index 1 into wa2_itab.
numrecords = 0.
Loop at itab into wa_itab.
if wa_itab <> wa2_itab. " or fields you need to compare
if numrecords = 1.
append wa2_itab into otab2.
endif.
move wa_itab to wa2_itab.
numrecords = 1.
else.
numrecords = numrecords + 1.
endif.
endloop.
reward points if it help u
best regards
2007 Aug 24 1:42 PM
Hi surendra raju,
what is your personal definition of "repeatable records"?
Not given any context at all...
Regards,
Clemens
2007 Aug 24 1:48 PM
2007 Aug 24 1:48 PM
2007 Aug 24 2:53 PM
duplicate re<b>p</b>orts?
duplicate re<b>c</b>or<b>t</b>s can not exist in the database because that would imply a duplicate key. Duplicate keys are not defined in relational database.
Regards,
Clemens
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |