Symptom
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."
Environment
S/4 HANA Cloud
Reproducing the Issue
- Coding Block FIN_CODING_BLOCK_SUBSTITUTION created using app Custom Fields and Logic with condition codingblockheader-accountingdocumentheadertext
- Post Journal Entry using app Post General Journal Entries
Cause
The document header is only provided to the substitution in CO transactions. It is always empty in FI transactions and in accounting interface processing.
Resolution
- 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
Keywords
FIN_CODING_BLOCK_SUBSTITUTION, FIN_CODING_BLOCK_VALIDATION validation, substitution, F0718, COBX-BLTXT, K_COBL_CHECK, BSEG-SGTXT, COEP-SGTXT, BKPF-BKTXT, BKPF, BKTXT , KBA , FI-SL-VSR , Validation, Substitution and Rules , FI-SL-VSR-2CL , Validation, Substitution and Rules (Public Cloud) , Problem