Symptom
In SAP S/4HANA Cloud Public Edition, a custom logic using BAdI FIN_CODING_BLOCK_SUBSTITUTION is implemented to substitute profit center during posting of journal entries.
The custom logic trace shows the substitution is called and output values are correct during posting process.
However the final journal entry still shows the original profit center; the substitution is not reflected in the posted line item.
No error message is displayed.
Environment
SAP S/4HANA Cloud Public Edition
Cause
The usage is not correct and the scenario is not supported.
By design, profit center substitution is restricted: changes to profit center are not taken over into journal entries once a profit center has already been derived.
BAdI FIN_CODING_BLOCK_SUBSTITUTION only applies profit center substitution during sales order creation; it is not applied to journal entry posting in this scenario.
Another relevant BAdI FIN_ACDOC_ITEM_SUBSTITUTION can only set the profit center during sales order creation or if it is still initial; overwriting an already derived profit center is prevented.
The delivered substitution rule (/0SAP/SetProfitCenter in Manage Substitution and Validation Rules) derives profit center and cannot be changed in Public Cloud, resulting in a filled value that cannot be overwritten.
Resolution
It is currently not possible to substitute profit center in journal entries through BAdI.
Use app Manage Substitution and Validation Rules, or raise a feature request for functionality improvement.
See Also
Keywords
profit center substitution, FIN_CODING_BLOCK_SUBSTITUTION, FIN_ACDOC_ITEM_SUBSTITUTION, CATS, professional services project, journal entry, validation and substitution, public cloud, manage substitution and validation rules, F4406, cannot overwrite profit center, by design, partner profit center, substitution not working, profit center derivation , KBA , FI-SL-VSR-2CL , Validation, Substitution and Rules (Public Cloud) , Problem
SAP Knowledge Base Article - Public