cancel
Showing results for 
Search instead for 
Did you mean: 

How to find out company code from a plant ?

Former Member
0 Kudos
12,550

Hello friends,

I have to modify a program that uses FM "BAPI_COMPANYCODE_GET_PERIOD". For that, we have to export company code ID. Currently it is hard coded with one company code. Now we want to make this program usable by all company codes. So instead of hard coding, I would like to dynamically find out company code based on the plant. So I want to know - how to find out company code from a plant ? Is there any table that has plant to company-code assignment data, or any other FM/BAPI to get this info ?

Thanks,

- Chetan

View Entire Topic
Former Member
0 Kudos

Hi..

Please check this thread..

SELECT table T001K by giving BWKEY = plant and returning BUKRS = company code. I am not sure if this answers u r question..

Ravi

RAHUL_292
Explorer
0 Kudos
BWKEY = VALUATION AREA