Application Development 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: 

Getting Purchasing document number

Former Member
0 Kudos

Hello,

I need to get the Purchasing document number(EKPO-EBELN) , given the billing document number as input (VBRK-VBELN). Pls help me in linking the two tables to get the purchase doument number associated with the Billing documnt number.

1 ACCEPTED SOLUTION

renjith_thampi
Discoverer
0 Kudos

Hi,

Get the sales document (AUBEL) from VBRP.

Use it to get the Purchase order number (BSTDK) from VBKD

Hope this helps.

2 REPLIES 2

Former Member
0 Kudos

Hi

You can get the value from VBKD-BSTKD by passing the sales document no

renjith_thampi
Discoverer
0 Kudos

Hi,

Get the sales document (AUBEL) from VBRP.

Use it to get the Purchase order number (BSTDK) from VBKD

Hope this helps.