Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

regarding duplicate records

Former Member
0 Likes
852

in my script out put records are coming like this

120.00 2,532 303,840.00 SB IMS4.1 EMA C A SolM 13.10.2008

120.00 2,532 303,840.00 SB IMS4.1 EMA C A SolM 14.10.2008

only dates are different remaining data is same for 2 records

so can we consider the 2nd record as duplicate record

or different records since dates are different

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
822

hi,

it depends on the requirement.

for one case you may need data for each new date then this is not a duplicate records.

if this is not the case then its a duplicate record as data may be required on different condition.

Edited by: AD on Dec 4, 2008 11:49 AM

in my script out put records are coming like this

120.00 2,532 303,840.00 SB IMS4.1 EMA C A SolM 13.10.2008

120.00 2,532 303,840.00 SB IMS4.1 EMA C A SolM 14.10.2008

only dates are different remaining data is same for 2 records

so can we consider the 2nd record as duplicate record

or different records since dates are different

5 REPLIES 5
Read only

Former Member
0 Likes
823

hi,

it depends on the requirement.

for one case you may need data for each new date then this is not a duplicate records.

if this is not the case then its a duplicate record as data may be required on different condition.

Edited by: AD on Dec 4, 2008 11:49 AM

Read only

Former Member
0 Likes
822

It is based on your requirement.

if one doesnot want to consider the date field, then it is a duplicate record.

if one wants to consider the date field, it is not a duplicate record.

check with your requirements from user and accordingly change your logic.

Read only

Former Member
0 Likes
822

Dear pavan Kumar,

If u don't wanna the duplicate records use command as below.

DELETE ADJACENT DUPLICATES COMPARING FIELD1 FILED2..

Best Regards,

Flavya

Read only

Former Member
0 Likes
822

sort ur table by field 1 2 3 4 5 ...n - excluding ur field datum

delete ... ADJACENT DUPLICATES FROM itab comparing field1 2 3 4 5 ...n - excluding ur field datum

Regards

Stefan Seeburger

Read only

Former Member
0 Likes
822

Hey Pavan,

Depends upon your requirement. If you want to show the current record then you should not print the record which have a previous date listed. You can sort the table with key fields and use delete adjacent duplicates, to delete the duplicate entries .

Thanks,

Jayant