Skip to Content
author's profile photo Former Member
Former Member

internal table fetch distinct records.

i have internal table xtab_lst.

where i have list of records like below.

seqno,compcode, Gsber, ...............

1, 200, 011A

2, 200, 011A

3, 200, 011A

4, 200, 011A

5, 200, 011A

6, 200, 011A

7, 200, 011A

1, 200, 130B

2, 200, 130B

3 200 130B

4 200 130B

5 200 130B

6 200 130B

7 200 130B

From the above list i want to fetch only single

gsber records from group existing. ie) i have two gsber record groups now.

one is 011A and other 130B.

Out of these i want to take only two gsber(011a,130b)in seperate Internal table.

How to do this.(ie.dont want duplication of gsber records)

Ambichan.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 14, 2005 at 02:39 AM
    ytab_lst[] = xtab_lst[].
    sort ytab_lst by compcode, gsber.
    delete adjacent duplicates from ytab_lst comparing compcode gsber.

    Regards,

    Subramanian V.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 14, 2005 at 03:45 AM

    Hello Ambichan,

    You have got the best answer to your question. In my opinion, the answer deserves a 10-pointer. If you have any further query on this please do post that. Otherwise, please mark the question as answered and close the thread.

    Regards,

    Anand Mandalika.

    P.S. I do not mean to offend you.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.