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

Fields tables ?

Former Member
0 Likes
1,176

Hello,

Is there any table in which company code, material number, and plant are there in a single table.

Thks.

8 REPLIES 8
Read only

Former Member
0 Likes
1,127

Hi!

Unfortunately no. You have to collect them from 2 tables: MARC and T001K.

Regards

Tamá

Read only

Former Member
0 Likes
1,127

Hi,

You could try the following :

types: begin of ty_pdata,

matnr type matnr,

werks type werks_d,

bwkey type bwkwy,

bukrs type bukrs,

end of ty_pdata.

data: gt_pdata type standard table of ty_pdata.

select marc~matnr "Material

marc~werks "Plant

t001w~bwkey "Valuation Area

t001k~bukrs "Company code

into table gt_pdata

from marc

inner join t001w

on t001wwerks = marcwerks

inner join t001k

on t001kbwkey = t001wbwkey

where lvorm = space.

You can add extra conditions to the where clause if you want.

Read only

Former Member
0 Likes
1,127

Hi,

For Company Code you have to refer table -T001.

For Materail no and plant table MARC.

Table EKPO Contains the three fields togather.You can check this.

Regards,

Sujit

Read only

Former Member
0 Likes
1,127

Hi Balu,

I checked in Tables VBRK and VBRP . In these tables the field BUKRS exist in VBRK whereas the fields MATNR and WERKS exist in VBRP. You can fetch data from VBRK and use for all entries to fetch data from VBRP on some condition.

The same will be the case with VBAK and VBAP tables respectively.

Hope this works fine.

Regards,

Swapna.

Read only

Former Member
0 Likes
1,127

I think there is no table with this combination .

Refer t001 for company code.

Refer marc for material number.

Regards,

Muneesh Gitta.

Read only

Former Member
0 Likes
1,127

Hi,

use this table you will find required fields.

EKPO

plz don't forget....

Regards,

venkat

Read only

Former Member
0 Likes
1,127

Hi,

In EKPO table,

all three fields -

company code,

material number

and plant

are present.

Bye,

Mamta

Read only

0 Likes
1,127

Hi thks for your answer the same answer was giving by venkat. By which i have already solved my problem.

Regards

Balu