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

Delete duplicates in Field Groups

Former Member
0 Likes
582

Friends,

I have a problem in field groups where one of them contains the duplicate entries. How to catch it and delete the duplicates. Please guide me.

Thanx and regards in advance,

ram

Friends,

I have a problem in field groups where one of them contains the duplicate entries. How to catch it and delete the duplicates. Please guide me.

Thanx and regards in advance,

ram

2 REPLIES 2
Read only

Former Member
0 Likes
473

Hi Ram;

The best option may be to catch it before you insert the data into the table, if you can. If you are in a select loop and doing the insert there, you can use the "SELECT DISTINCT" option to make sure you are pulling unique records back from the data base.

If that is not possible, you may need to use an internal table instead of the field group. Either way, this option will get rid of duplicate entries in either field groups or tables:

FIELD-GROUPS: header.

delete adjacent duplicates from header.

or:

DATA: int_mara TYPE STANDARD TABLE OF mara.

delete adjacent duplicates from int_mara.

Cheers,

John

Read only

0 Likes
473

Thanq very much John.

Ram