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

Read

Hi

Say i am retrieving data from VBAK

select * from vbak

retrieving data from vbap

select * from vbap

retreiving from likp

select * from likp

retrieving from lips

select * from lips

retrieving from kna1

select * from kna1...

i want to pass all data to final internal table..

which table we loop first ....why is that so..

How read works on these tables??

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 04:36 PM

    Hi,

    better join VBAK & VBAP,

    LIKP & LIPS.

    SELECT * FROM VBAK & VBAP

    SELECT * FROM LIKP & LIPS

    SELECT KNA1.

    This will be easy for you to read the data

    <b>LOOP at IT_VBAK_VBAP.

    READ TABLE IT_LIKP_LIPS WITH KEY VBELN = IT_LIKP_LIPS-VBELN.

    IF SY-SUBRC = 0.

    ENDIF.

    READ TABLE IT_KNA1 WITH KEY KUNNR = IT_VBAK_VBAP-KUNNR.

    IF SY-SUBRC = 0.

    ENDIF.

    ENDLOOP.</b>

    Thanks

    Vikrtanth Khimavath

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 04:24 PM

    Why don't you JOIN them? It would be better -:)

    Greetings,

    Blag.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 04:26 PM

    Use Join as these tables ahve key fields...

    regards,

    barath.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 04:31 PM

    Hi RK,

    better join VBAK & VBAP,

    LIKP & LIPS.

    SELECT * FROM VBAK & VBAP

    SELECT * FROM LIKP & LIPS

    SELECT KNA1.

    This will be easy for you to read the data

    Thanks

    Vikranth khimavath

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 04:32 PM

    b

    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.