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: 

Relating LIFNR and MATKL

Former Member
0 Kudos

Hi All,

I need to know which all MATKL is supplied by a particular LIFNR.Please suggest any Tables or T-code through which i can get this data.

Thanks and Regards,

Shital.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

see the table EINA(Purchasing Info Record: General Data)

tcode is ME11.

rgds,

bharat.

6 REPLIES 6

Former Member
0 Kudos

Hi,

see the table EINA(Purchasing Info Record: General Data)

tcode is ME11.

rgds,

bharat.

Former Member
0 Kudos

You can either EINA Table or Join EKKO and EKPO Table

EKKO will have LIFNR and EKPO WILL Have Matnr,matkl ( Common field is EBELN)

Thanks

Seshu

Former Member
0 Kudos

Hi Shital,

You can go ahead and check Source List to get a relation between MATKL and LIFNR. A016 is the table for Source List.

Regards,

Kiran

Former Member
0 Kudos

chk the table <b>S173</b>

Former Member
0 Kudos

See code below.

REPORT ztest.

TABLES: ekko, ekpo.

TYPES: BEGIN OF x_itab,

lifnr LIKE ekko-lifnr,

matnr LIKE ekpo-matnr,

maktx LIKE makt-maktx,

END OF x_itab.

DATA: t_itab TYPE STANDARD TABLE OF x_itab,

h_itab TYPE x_itab.

SELECTION-SCREEN: BEGIN OF BLOCK b1.

SELECT-OPTIONS: s_lifnr FOR ekko-lifnr,

s_matnr FOR ekpo-matnr.

SELECTION-SCREEN: END OF BLOCK b1.

START-OF-SELECTION.

SELECT ekko~lifnr

ekpo~matnr

makt~maktx

INTO TABLE t_itab

FROM ekko

INNER JOIN ekpo ON ekpoebeln = ekkoebeln

INNER JOIN makt ON maktmatnr = ekpomatnr

AND makt~spras = sy-langu

WHERE ekko~lifnr IN s_lifnr.

SORT t_itab BY lifnr matnr.

DELETE ADJACENT DUPLICATES FROM t_itab.

LOOP AT t_itab INTO h_itab.

WRITE: / h_itab-lifnr, h_itab-matnr, h_itab-maktx.

CLEAR h_itab.

ENDLOOP.

Former Member
0 Kudos

Get all the materials supplied by the particular vendor from EINA and then for each article get the MATKL value from MARA.