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: 

Link from VBAK to EKKO?

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos

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

10 REPLIES 10

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

How about going to EKKN, this gives you EBELN and VBELN.

Regards,

Rich Heilman

0 Kudos

Sorry, did not work, I thought it did.

Message was edited by:

Davis

ferry_lianto
Active Contributor
0 Kudos

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

0 Kudos

Ferry,

Thank you so much! I wish I had noticed your reply earlier; it worked like a charm!

Davis

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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

ferry_lianto
Active Contributor
0 Kudos

Hi Davis,

Did you try my previous reply?

Regards,

Ferry Lianto

0 Kudos

Ferry, I just saw it and I am trying that now.

Davis