cancel
Showing results for 
Search instead for 
Did you mean: 

can we give join condition in quick viewer

laxman_sankhla3
Participant
0 Kudos

hi

can we give join condition in quick viewer for three table .

if yes than how can we give .

thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Clemenss
Active Contributor
0 Kudos

Hi Laxman,

although i'm not at the system too, I can tell you: In the Data source field you can choose between table, infotype(?) and join. If you select join and go back, it takes you to the definition screen. There is an icon for 'insert table' (looks like crippled tree or what). Use this subsequently to insert tables. The system automatically connects fields for join condition. With right-muse-click on the link line, you can change to outrer join or delete the join. dragging field from one table to other table other field will create a join.

Good luck!

Regards,

Clemens

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Inner joins using 3 tables

Try this :-

SELECT stpostlnr stpoidnrk mastmatnr maramtart stpo~menge

INTO CORRESPONDING FIELDS OF TABLE zmat1 FROM mast

JOIN stpo ON stpostlnr = maststlnr

JOIN mara ON maramatnr = mastmatnr

WHERE stpostlty = 'M' "AND stpoidnrk IN s_matnr

AND mast~werks = 1000.

Here s_matnr is a select-options on the selection-screen.

Or this.

Code:

Select single VbrkBukrs VbrkKunrg Vbrk~Vbeln

VbrkFkdat VbrkBstnk_Vf Vbrk~Zterm

Tvzbt~Vtext

VbakVbeln VbakBstdk

LikpVbeln Likplfdat Likp~Lfuhr

into w_vbrk

from vbrk

inner join Tvzbt on TvzbtZterm = VbrkZterm and

Tvzbt~Spras = sy-langu

Inner join Vbfa as SalesLnk

on SalesLnk~vbeln = pu_vbeln and

SalesLnk~vbtyp_v = c_order

inner join Vbak on VbakVbeln = SalesLnkVbelv

Inner join Vbfa as DeliveryLnk

on DeliveryLnk~vbeln = pu_vbeln and

DeliveryLnk~vbtyp_v = c_Delivery

inner join Likp on LikpVbeln = DeliveryLnkVbelv

where vbrk~vbeln = pu_Vbeln.

This code locates sales, delivery and payment terms info from a billing document number.

Regards,

Bhaskar

laxman_sankhla3
Participant
0 Kudos

hi thanks

<b> i m using SQ01 tcode to join table .</b>can we give where condition on join in SQ01

thanks

Clemenss
Active Contributor
0 Kudos

Hi Bhaskar,

never used a quickview? Still programming? Try menu system-servives-quickviewer.

<a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/44f2a3c7f411d296080000e82de14a/content.htm">Functions for Managing QuickViews</a>

Even I do!

Regards,

Clemens

Former Member
0 Kudos

Hi Laxman,

Yes we can. I am not in fornt of the system so can't tell the exact steps but if you just look at it you will get the solution.

you can check this thread also. MAy help you.

Reward points if useful.

Regards,

Atish