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: 

appropriate table

Former Member
0 Kudos

hi,

Is there any table where we can find by giving the vendor name as input and get the materials supplied by that vendor.

regards,

swamy

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Yes, PIR, Purchase Info Record, table EINE and EINA.

EINA - Purchasing Info Record: General Data has material and vendor

EINE - Purchasing Info Record: Purchasing Organization Data

Regards,

Rich Heilman

4 REPLIES 4

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Yes, PIR, Purchase Info Record, table EINE and EINA.

EINA - Purchasing Info Record: General Data has material and vendor

EINE - Purchasing Info Record: Purchasing Organization Data

Regards,

Rich Heilman

0 Kudos

hi Heilman,

i didn't get the exact answer from the tables which you provided. My question is by giving the vendor number we have to get all the materials supplied by that vendor.

Regards,

Swamy

0 Kudos

EINA has the fields matnr and lifnr. All you need to do is do a select against this table for LIFNR.

data: ieina type table of eina with header line.

parameters: p_lifnr type eina-lifnr.

select * into table ieina from eina
          where lifnr = p_lifnr.

loop at ieina.
write:/ ieina-lifnr, ieina-matnr.
endloop.

Regards,

Rich Heilman

ferry_lianto
Active Contributor
0 Kudos

Hi,

You can also use this FM <b>ME_EINA_READ_WITH_LIFNR</b> to retrieve correspondence material.

Hope this will help.

Regards,

Ferry Lianto