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

appropriate table

Former Member
0 Likes
689

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
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
639

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
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
640

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

Read only

0 Likes
639

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

Read only

0 Likes
639

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

Read only

ferry_lianto
Active Contributor
0 Likes
639

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