cancel
Showing results for 
Search instead for 
Did you mean: 

How to determine a cost center based on a storage location

frdric_bordes
Explorer
0 Kudos

Hi all,

During material movement or stocked purchase, I need to determine different cost center by storage location. Therefore, i can't use OKB9 because the plant criteria is not enough.

Is there any user-exit or another solution i can implement to solve this problem?

Thank you for your answers.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Any one got the solution to the above discussed issue

i will appreciate experts people's Feed back in this regard

Thanks

Former Member
0 Kudos

Hi

To Substitute the Cost Center, the Substitution needs to be done in CO but not in FI. In GGB1, you should create substitution in Cost Accounting. Then you need to activate the same in OKC9.

You need to substitute field : COBL-KOSTL not BSEG-KOSTL.

Thanks

Prasad

Former Member
0 Kudos

Hi

I think you can use substitution to get your desired results.

In substitutions you can get your own logic through an Exit, giving your criteria to derive the cost center, based on Storage location.

and pre-requisite for the substition can be the Reference procedure : MKPF

some thing like BKPF-AWTYP = 'MKPF'

Let me know if you need any further info.

Thanks

Kalyan

frdric_bordes
Explorer
0 Kudos

Thanks for your answer but it's exactly the issue i don't find an answer. In fact, the storage location is only in table MSEG and as i don't get this field in any FI tables BSEG, BKPF, i don't succeed to substitute anything based on the storage location.

Have you an idea on which user-exit i should use to get some results?

Thank you for your answer.

Former Member
0 Kudos

Hi

As i said earlier, you can use MSEG itself in your substitution rule.

For Ex:

Pre- requisite

BKPF-BUKRS = 'XXXX' AND BKPF-AWTYP = 'MKPF' (and anyother criteria that needs to be applied)

Substitute

Field - Material (MATNR)

is substituted by "EXIT"

Create your own exit here & give your logic like

If MSEG-LGORT = '0001'(your storage location values)

then BSEG-KOSTL = 'CCTR1'.

..................

Let me know if you need any further details.

Thanks

Kalyan

frdric_bordes
Explorer
0 Kudos

Hello,

First of all, thank you for your answer.

I created the substitution condition and exit but the developper told me that he does not have access to table MSEG in program RGGBR000.

Do you think about something else?