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

internal tables

I have 4 internal tables and have to pick up common records in all the 4 tables.

How is it possible?

Thank you

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2008 at 02:27 PM

    Do all 4 tables have the same structure ? If yes, then merge the records of all the 4 tables into one table and use delete adjacent duplicates comparing the necessary fields.

    regards,

    Advait

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2008 at 02:26 PM

    if u want to move fields within the internal tables use move-corresponding...if u want to fetch from db table then use into corresponding fields. if you want to fetch data from 4 db tables then use joins...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2008 at 02:28 PM

    loop at itab1.

    read table itab2 with key field1 = itab1-field.

    if sy-subrc = 0.

    read table itab3 with key field1 = itab1-field.

    if sy-subrc = 0.

    read table itab4 with key field1 = itab1-field.

    if sy-subrc = 0.

    *get your records ...

    endif.

    endif.

    endif.

    endloop.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 07:20 AM

    thx

    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.