SAP Knowledge Base Article - Public

3787217 - Missing Profit Center in Journal Entry Postings After Implementing Substitution Rules - SAP S/4HANA Cloud Public Edition

Symptom

After configuring a substitution rule for profit center derivation, either via the Manage Substitutions/Validations for Journal Entries app or by implementing BAdI FIN_CODING_BLOCK_SUBSTITUTION / FIN_ACDOC_ITEM_SUBSTITUTION, the Profit Center field is empty.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. In the Manage Substitutions/Validations for Journal Entries app, create a substitution rule that sets the Profit Center field to a numeric value without leading zeros. For example: 299.
  2. Create a journal entry that meets the substitution rule's prerequisite conditions.
  3. Post the journal entry.
  4. Open the posted document and check the line items.
  5. Observe the Profit Center field is empty, although the substitution rule was defined.

Cause

Profit centers with numeric names are stored internally with leading zeros (alpha conversion). For example, profit center 299 is stored internally as 0000000299. Although SAP suppresses leading zeros on all screen outputs, the system requires the Profit Center field to be filled with leading zeros in all transactions.

If the profit center value is passed or maintained without leading zeros, the system cannot match it to the existing master data record. For derived postings, the system searches for profit center 299, but only 0000000299 exists in table CEPC.

Resolution

Update the profit center value wherever it is maintained to include leading zeros so that it matches the master data format, which contains 10 characters. For example, changing to 0000000299 instead of 299.

See Also

SAP Note 115069 - Error KM026 or KM700 with numeric profit centers

Keywords

journal entry substitution, FIN_CODING_BLOCK_SUBSTITUTION, FIN_ACDOC_ITEM_SUBSTITUTION, custom logic, coding block, profit center, KM026, KM700 , KBA , FI-SL-VSR-2CL , Validation, Substitution and Rules (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions