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

itab

Hi,

I have created five itab's with headerlines.

among these 3 have one common field (common in sense refering to same de,do) other two with one.

Now my req is i wnt some fileds from all these tables into one final table.

i know theoritically ie looping and making use of work areas.

But here no work areas.

pls help me i need it in a practical manner ie some program that can help me.

regards,

kb

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2008 at 02:45 PM

    Use code like this for increased performance: -

    I = 1.

    LOOP AT ITAB1 INTO WA1.

    LOOP AT ITAB2 INTO WA2 FROM I.

    IF WA2-K <> WA1-K.

    I = SY-TABIX.

    EXIT.

    ENDIF.

    " ...

    ENDLOOP.

    ENDLOOP.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2008 at 02:56 PM

    Hi

    U can use read table statement, for reading

    for that select the one table which is having more

    and use the same in a loop

    like

    loop at itab1.

    read table itab2.

    .................

    read table itab3.

    ....................

    .

    .

    .

    endloop.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2009 at 10:13 PM

    thanks

    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.