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

repeatable

Former Member
0 Likes
848

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

5 REPLIES 5
Read only

former_member582701
Contributor
0 Likes
824

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

Read only

Clemenss
Active Contributor
0 Likes
824

Hi surendra raju,

what is your personal definition of "repeatable records"?

Not given any context at all...

Regards,

Clemens

Read only

Former Member
0 Likes
824

probably you mean duplicate reports?

Read only

Former Member
0 Likes
824

probably you mean duplicate reports?

Read only

Clemenss
Active Contributor
0 Likes
824

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