Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Report

Former Member
0 Likes
499

Hello All,

Could anybody explain how to join these tables VBAP VBAK VBUK VBUP KNA1 LIPS LIKP.

regards

Madhavi

6 REPLIES 6
Read only

Former Member
0 Likes
483

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

Read only

Former Member
0 Likes
483

check this link and you will get relationships:

http://www.erpgenie.com/abap/tables_sd.htm

Thanks,

SKJ

Read only

Former Member
0 Likes
483

Madhavi,

VBAP VBAK VBUK VBUP join on VBELN

and VBAK-KUNNR = KNA1-KUNNR

Regards,

Amey

Read only

Former Member
0 Likes
483

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)

Read only

Former Member
0 Likes
483

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

Read only

Former Member
0 Likes
483

Hi,

Check the following link, there you can learn more

http://www.sapbrain.com

Regards,

Bhaskar