‎2007 Apr 10 4:52 PM
Hello All,
Could anybody explain how to join these tables VBAP VBAK VBUK VBUP KNA1 LIPS LIKP.
regards
Madhavi
‎2007 Apr 10 4:58 PM
Joining too many tables makes your program look cumbersome.
Anyway, the links between the tables are
Vbakvbeln = vbapvbeln = VBUKVBELN = vbupvbeln.
vbak-kunnr = kna1~kunnr
vbapvbeln = lipsvgbel
vbapposnr = lipsvgpos
likpvbeln = lipsvbeln
Regards,
Ravi
‎2007 Apr 10 4:59 PM
‎2007 Apr 10 5:01 PM
Madhavi,
VBAP VBAK VBUK VBUP join on VBELN
and VBAK-KUNNR = KNA1-KUNNR
Regards,
Amey
‎2007 Apr 10 5:01 PM
VBAP-VBELN = VBAK-VBELN.
VBUK-VBELN = VBAK-VBELN.
VBUP-VBELN = VBAP-VBELN and VBUP-POSNR = VBAP-POSNR.
LIKP-VBELN = LIPS-VBELN.
LIPS-VGBEL = VBAP-VBELN and LIPS-VGPOS = VBAP-POSNR.
KNA1-KUNNR = VBAK-KUNNR (sold-to party)
KNA1-KUNNR = LIKP-KUNNR (Ship-to party)
‎2007 Apr 10 5:08 PM
here is the procedure for what ever may be the tables madhavi...
1.first of all take all the tables and list out all the key fields in those tables
2.take all the remaining fileds from those tables what ever u want.
3. based upon the order u put the relation between the tables.
4. take one master table and by linking the key fields create the relation between two tables first with inner join and then again inner join with one more table like u got many examples...
5. in the where condition mention the fields what ever u require based upon the requirement.
I think u got some general idea how to relate the tables
~~Guduri
‎2007 Apr 10 6:29 PM