07-19-2007 4:44 PM
I do not believe that there is any way to link VBAK to EKKO but I thought I would ask. Basically what I need is to display the PO/Sales Order number if a delivery was created off a STO verses a Sales Order. The only place that I can think to get the PO number is EKKO. However how would I grab EBELN (PO number) for a certain delivery number?
Regards,
Davis
07-19-2007 4:54 PM
Hi Davis,
Please try table EKBE with field VGABE = '8'.
From here you can link PO (EBELN) and Delivery (BELNR).
Regards,
Ferry Lianto
Message was edited by:
Ferry Lianto
07-19-2007 4:46 PM
07-19-2007 4:47 PM
Sorry, did not work, I thought it did.
Message was edited by:
Davis
07-19-2007 4:54 PM
Hi Davis,
Please try table EKBE with field VGABE = '8'.
From here you can link PO (EBELN) and Delivery (BELNR).
Regards,
Ferry Lianto
Message was edited by:
Ferry Lianto
07-19-2007 7:06 PM
Ferry,
Thank you so much! I wish I had noticed your reply earlier; it worked like a charm!
Davis
07-19-2007 4:57 PM
Field VBAK-BSTNK gives you Customer purchase order number..
But its not necessary that u find this PO number in ur system bacause this will exist at ur customer's end..
This is simply a reference number & stored in VBAK.
For the concerned delivery, get the sales order & get BSTNK value for customer po number
07-19-2007 6:33 PM
Rich, I tried to do what you suggested and I do not get any values returned for the Delivery number. I am not sure how to link it up without using the delivery number.
Regards,
Davis
07-19-2007 6:49 PM
Hi Davis,
Check with VBFA table... give the Follow on Document as the deviver number and Prec.doc.categ. as 'V' this is for purchase order..
Thanks,
Mahesh
07-19-2007 7:01 PM
Mahesh, thanks for the reply. It looks like that is going to work but I can't tell for sure because the example test case that I have was not created correctly. It only has a Q instead of a V.
Regards,
Davis
07-19-2007 7:02 PM
07-19-2007 7:03 PM