cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to use a user exit to derive company code based on the plant details in KEPM or KE13N ?

Former Member
0 Kudos

Dear Experts,

In KEPM / KE13N, we plan to upload the plan data and we have the plant details but no reference to a company code directly. Hence is it possible to make use of a user exit to derive the company code based on the plant (probably from T001K table) while uploading the data in KE13N?

Or any other method to derive the company code based on the plant information?

Thanks and appreciate your inputs.

Hari Dharen

Accepted Solutions (1)

Accepted Solutions (1)

waman_shirwaicar
Active Contributor
0 Kudos

Hi Hari,

SAP already provides a system defined step for derive company code from plant.

Please check in tcode KEDR for step:

Function call:  Company code from plant

you can simulate this in KE21N or KE21S.

regards

Waman

Former Member
0 Kudos

Hi Waman,

Thanks a lot. That was helpful...

But how can I use this function call in KEPM / KE13N.

I upload a file with only plant data and it should be able to derive the company code info using this function call.

Any idea on how to activate this here?

Thanks,

Hari Dharen

Former Member
0 Kudos

Hi...

I know that derivation function is called automatically when data with plant is uploaded using t-code KEPM/KE13N.

Former Member
0 Kudos

Thanks Big Choi. Yes, after understanding this derivation function, it should happen automatically.

I had to define company as a characteristic in the planning package because its made mandatory.

Also if I remove company code, it says the company code has to be made as a characteristic because of the currency type 10 which is for company code currency. Even If I make it B0 as operating currency, it still wouldn't accept.

So since company code is in the planning package and layout, it requires an entry when I post data. But I would like to derive the company code automatically.

Answers (1)

Answers (1)

Former Member
0 Kudos

Just for information, when I analyze the derivation, this function call is not highlighted which means that there was no derivation for a company code necessary I guess. How to let the system know that it has to call this function to derive the company code?