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

inner join for 4 tables

Hi forum,

Pls correct the following code..

SELECT a~zbukr

a~hbkid

a~hktid

a~checf

a~waers

a~rwbtr

a~bancd

a~vblnr

a~pernr

a~voidr

a~rzawe

a~laufd

a~empfg

a~gjahr

a~zaldt

a~znme1

a~rec_belnr

b~bankl

c~bankn

d~duedt

INTO CORRESPONDING FIELDS OF TABLE it

FROM payr AS a

INNER JOIN t012 AS b

ON ahbkid = bhbkid

inner join t012k as c

on bhbkid = chbkid

  • and on ahbkid = chbkid

inner join t51r5 as d

on cbukrs = dbukrs

  • and on awaers = dwaers

WHERE a~zaldt IN s_zaldt

AND a~vblnr IN s_vblnr

AND a~znme1 IN s_znme1

AND a~rec_belnr IN s_rec

AND a~waers IN s_waers.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 27, 2007 at 04:45 AM

    Hi mahati,

    This is kiran kumar.G.plz check the below select statement that will solve ur problem check it once ok..

    SELECT a~zbukr

    a~hbkid

    a~hktid

    a~checf

    a~waers

    a~rwbtr

    a~bancd

    a~vblnr

    a~pernr

    a~voidr

    a~rzawe

    a~laufd

    a~empfg

    a~gjahr

    a~zaldt

    a~znme1

    a~rec_belnr

    b~bankl

    c~bankn

    d~duedt

    FROM payr AS a

    INNER JOIN t012 AS b

    ON ahbkid = bhbkid

    inner join t012k as c

    on ahbkid = chbkid

    inner join t51r5 as d

    on cbukrs = dbukrs

    into table it

    WHERE a~zaldt IN s_zaldt

    AND a~vblnr IN s_vblnr

    AND a~znme1 IN s_znme1

    AND a~rec_belnr IN s_rec

    AND a~waers IN s_waers.

    Award points if helpful.

    Kiran Kumar.G

    Have a Nice Day.

    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.