SAP Knowledge Base Article - Public

2934985 - Use of Document Header Text in Coding Block Substitution


Use of document header text (codingblockheader-accountingdocumentheadertext) as precondition in the FIN_CODING_BLOCK_SUBSTITUTION Cloud BAdI does not work for journal entries created via app Post General Journal Entries (App id F0718)

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."


S/4 HANA Cloud

Reproducing the Issue

  1. Coding Block FIN_CODING_BLOCK_SUBSTITUTION created using app Custom Fields and Logic with condition codingblockheader-accountingdocumentheadertext 
  2. Post Journal Entry using app Post General Journal Entries 


The document header is only provided to the substitution in CO transactions. It is always empty in FI transactions and in accounting interface processing.


  • The document header text is only filled by the manual actual postings in CO (transfer costs, activity allocation) during the call of the substitution. The document header text cannot be filled with postings in FI, MM, SD, HR for which the substitution is called via the CO interface.
  • It is not possible to substitute the document header text in the Cloud BAdI, it can be used as prerequisite/precondition and that only in CO transactions.

See Also

2462725 FAQ: Validation and Substitution for Journal Entries in S/4 HANA Cloud

BAdI for Substitution for Journal Entries

BAdI for Validation for Journal Entries


FIN_CODING_BLOCK_SUBSTITUTION, FIN_CODING_BLOCK_VALIDATION validation, substitution, F0718, COBX-BLTXT, K_COBL_CHECK, BSEG-SGTXT, COEP-SGTXT , KBA , FI-SL-VSR , Validation, Substitution and Rules , Problem


SAP S/4HANA Cloud all versions