Application Development and Automation 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: 
Read only

Purchase Materials

Former Member
0 Likes
682

Hi All,

I am look for a link (tables) for a sales order --> purchase order number --- > purchased materials ...

Thanks,

Vind.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
661

Hi

You can even use table VBFA.

Check for entries with VBTYP_N = 'V'. You can get details like SO number, SO Item, PO Number & PO Item.

Maybe your select query should look as below:

select b~ebeln b~ebelp b~matnr a~vbelv a~posnv
       into table itab
       from vbfa as a
       inner join ekpo as b
       on a~vbeln = b~ebeln
       and a~posnn = b~ebelp
       where a~vbtyp_n = 'V'
       and   a~vbelv in s_vbeln.

Hope this helps you.

Kind Regards

Eswar

Hi

You can even use table VBFA.

Check for entries with VBTYP_N = 'V'. You can get details like SO number, SO Item, PO Number & PO Item.

Maybe your select query should look as below:

select b~ebeln b~ebelp b~matnr a~vbelv a~posnv
       into table itab
       from vbfa as a
       inner join ekpo as b
       on a~vbeln = b~ebeln
       and a~posnn = b~ebelp
       where a~vbtyp_n = 'V'
       and   a~vbelv in s_vbeln.

Hope this helps you.

Kind Regards

Eswar

5 REPLIES 5
Read only

Former Member
0 Likes
661

check VBKD-BSTKD for Purchase Order

regards

Prabhu

Read only

0 Likes
661

VBAP-VBELN = LIPS-VGBEL

VBAP-POSNR = LIPS-VGPOS..

EKPO-EBELN = LIPS-VGBEL

EKPO-EBELP = LIPS-VGPOS..

Read only

gopi_narendra
Active Contributor
0 Likes
661

check this <a href="http://www.erpgenie.com/sap/abap/tables_sd.htm">link</a>

Read only

0 Likes
661

Hi,

Thaks for the reply..am looking for sales order that does not produce a production order indeed creates a purchace order and the matrails required , does the above links meet these condition...If not can any one suggest to how to get these pls ...

Thxs,

vind..

Read only

Former Member
0 Likes
662

Hi

You can even use table VBFA.

Check for entries with VBTYP_N = 'V'. You can get details like SO number, SO Item, PO Number & PO Item.

Maybe your select query should look as below:

select b~ebeln b~ebelp b~matnr a~vbelv a~posnv
       into table itab
       from vbfa as a
       inner join ekpo as b
       on a~vbeln = b~ebeln
       and a~posnn = b~ebelp
       where a~vbtyp_n = 'V'
       and   a~vbelv in s_vbeln.

Hope this helps you.

Kind Regards

Eswar