After reading several posts, I come to the point that most of the company having single excise GL account and want to post excise on plant wise Profit center.
In FAGL3KEH or 3KEH we can assign profit center CC wise (Means one GL can be assign one Profit center)
That’s why excise utilization goes to single profit center in case we are using single Excise GL in to more than one plant.
We are aware the function of user exits and substitutions, some time we use substitution for this requirement by creating number of substitution.
Some time we also used user exit as per own logic to derive plant wise profit for excise account.
Requirement- We have N number of plant in one Company code and we use common Excise GL for all plant , but we need profit center derivation by plant.
Here I am going to explain User Exit to derive plant wise profit center
Step1.Create Z table with two field Plant and profit center (Here you can add field as per your requirements like Company code)
Step2. Check assigned program in Appl. Area GBLS by Transaction code - GCX2
Please copy this program in case standard
Step3. Create substitution by Transaction code – OBBH
Here if Company code = XXXX than substitute by exit
Step4. Write an exit in program which is assigned in Appl. Area GBLS.
For eg in Program –ZRGGBS000_N
Exit
Details –
Here SY-TCODE(Transaction code ) = J2IUN or J1IH
IF BSEG-WERKS (Plant ) is not initial
Select single PRCTR (Profit center) from Z table in to BSEG-PRCTR (Profit center)
Where WERKS (Plant) = BSEG-WERKS.