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: 

Selecting from Delivery to PO ?

Former Member
0 Kudos

Hi All,

Would you know the best way to get a PO number from Delivery no.?

Currently I am search PO from EKBE-BELNR and EKBE-VGABE but it takes time.

Thankss,

Neeeth

3 REPLIES 3

Vinod_Chandran
Active Contributor
0 Kudos

Hi,

Pls follow these steps.

1. Get the sales order of the delivery from VBFA table

2. Using the sales order (VBELN), get the PO (BSTNK) from VBAK table.

Hope this will help you.

Thanks

Vinod

Former Member
0 Kudos

Since one PO can have many deliveries and one delivery can be for multiple POs(depending on configuration), the link is store at the line item level of the delivery document. On LIPS table there are two fields VGBEL and VGPOS, they should be having the PO number and line item number.

0 Kudos

If it is solved, please close the post.

Regards,

Srinivas