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

Link Between VBAK and VBRK Table

Former Member
0 Likes
9,663

Dear All,

I need to fetch data from VBRK and VBAK tables. I have 3 fields from VBAK table i.e. VKORG,VTWEG and SPART and one field from VBRK table i.e FKDAT on selection screen.

Please tell me link between these table.If i take VBELN as a link but both VBELN are different one is billing document number and other is sales order number.

So how to fetch the data from them ? Please suggest the logic ?

Correct answers will be rewarded .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
4,842

hi,

u have to link VBAK( Sales Document: Header Data ) and VBRP ( Billing Document: Item Data ) through

VBRP-AUBEL = VBAK-VBELN. find vbeln from VBRP for matching aubel. and than link to VBRK.

Hope it will b useful.

Dear All,

I need to fetch data from VBRK and VBAK tables. I have 3 fields from VBAK table i.e. VKORG,VTWEG and SPART and one field from VBRK table i.e FKDAT on selection screen.

Please tell me link between these table.If i take VBELN as a link but both VBELN are different one is billing document number and other is sales order number.

So how to fetch the data from them ? Please suggest the logic ?

Correct answers will be rewarded .

8 REPLIES 8
Read only

Former Member
0 Likes
4,842

Hi

Use VBRK is the header and VBRP is the ITEM for Billing data

Link these two by VBELN

then link the VBRP with VBAK and VBAP tables like

VBRP-AUBEL = VBAK-VBELN and

VBRP-AUPOS = VBAP-POSNR

Regards

Anji

Read only

Former Member
0 Likes
4,842

hi ,

logic is vbrp-AUBEL = vbap-vbeln

and vbrp-AUPOS = vbap-posnr.

Read only

Former Member
0 Likes
4,843

hi,

u have to link VBAK( Sales Document: Header Data ) and VBRP ( Billing Document: Item Data ) through

VBRP-AUBEL = VBAK-VBELN. find vbeln from VBRP for matching aubel. and than link to VBRK.

Hope it will b useful.

Read only

0 Likes
4,842

Hi All.

Thanks for such a quick response. BUt my concern is now with its performance. VBRP is an item table with lot's of entries in it and it will cretainly influence my report performance.

Can anyone suggest me any other way without using VBRP table inorder to enhance my report performance. I think we can relate VBRK and VBAK table using VBFA or VBUK table but i don't know how. Can you help me out with this ? I have already mentioned the fields which i will be using.

Thanks in Advance.

Read only

0 Likes
4,842

YA YOU CAN MAKE USE OF <b>VBFA</b> TABLE. That contain each billing its reference delivery and reference sales order.

reward if useful.

Amit Singla

Read only

0 Likes
4,842

Hi,

<b>VBAK-VBELN = VBFA-VBELV</b>

<b>VBFA-VBELN = VBRK-VBELN.</b>

Regards,

Padmam.

Read only

hymavathi_oruganti
Active Contributor
0 Likes
4,842

technically,

VBAK-VBELN = VBRK-AUBEL.

functionally VBAK is sales header and VBRK is billing header

Read only

Former Member
0 Likes
4,842

Thanks everyone for all your suggestions.