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: 

Reg VBKD-BSTKD

Former Member
0 Kudos

Hi all,

I have a doubt with what data the table vbkd will fill I need to get bstkd(purch orderno) by passing vbeln and posnr fields from vbap to vbkd but when I see the data of the table vbkd it's posnr values is always 0 only what exactly does that mean?since in my case vbap has 2 line items like 10,20 is is not possible to see this values in VBKD?Please let me know how I will get bstkd field from vbkd table?

Thanks&Regards

Mahesh

4 REPLIES 4

Former Member
0 Kudos

Hi Mahesh,

VBKD will contain the business adminstartion of sales order.

Purchase order number is the reference document to creat a sales order. So you will a unique purchase order number for the entire order irrespective how many of line items it may contain.

BSTKD is the purchase order number which has a unique one for whole order.

Otherwise, you can get the same value from VBAK. The field for purchase order will be VBAK-BSTNK.

Thanks,

Vinay

0 Kudos

Hi Vinay and all,

Thanks a lot my issue has been solved.

Thanks&Regards

Mahesh

Former Member
0 Kudos

Hi Mahesh,

You can select from VBKD using VBELN as the Sales Order number and POSNR as 000000. The Customer PO Number (BSTKD) will be stored against the Sales Order Number and posnr 000000 always.

Alternatively you can get the PO number from VBAK directly against VBELN (Field: BSTNK)

Regards,

Manoj

Former Member
0 Kudos

check table VBAK FOR FIELD BSTNK .

this holds po number

regards,

vijay