12-14-2006 12:13 PM
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
12-14-2006 12:16 PM
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
12-14-2006 12:36 PM
Hi Vinay and all,
Thanks a lot my issue has been solved.
Thanks&Regards
Mahesh
12-14-2006 12:21 PM
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
12-14-2006 12:24 PM
check table VBAK FOR FIELD BSTNK .
this holds po number
regards,
vijay