Symptom
Reference 1/2/3 ID by Business Partner fields (XREF1, XREF2, XREF3) are populated during substitution but are missing when reviewing the entry afterward.
Environment
- SAP S/4HANA Cloud Public Edition
- Validation, Substitution and Rules (Public Cloud)
Reproducing the Issue
- Implement custom logic using FIN_ACDOC_ITEM_SUBSTITUTION.
- Populate Reference 1/2/3 ID by Business Partner fields in positions 1 and 2 during substitution.
- Populate Reference 1/2/3 ID by Business Partner fields in positions 3 and 4 during substitution.
- Save the accounting entry and review the created document.
- Observe that fields for certain items that only available in Ledger view is empty
Cause
Reference 1/2/3 ID by Business Partner fields (XREF1/2/3) are only stored in Entry View (BSEG). Line items that are only available in General Ledger View (ACDOCA) will not have value in these fields.
Resolution
- Understand that Reference 1/2/3 ID by Business Partner fields(XREF1/2/3) are only stored in Entry View (BSEG).
- Note that even though these fields can be populated during substitution, for line items that are only available in General Ledger View (ACDOCA), they are not stored in the database.
- Because of that, those items will have Reference 1/2/3 ID by Business Partner remain blank even though they appear filled during Substitution.
Keywords
xref1, xref3, entry view, ledger view, substitution, sap s/4hana cloud, reference fields, line items, bseg, acdoca, accounting entries, general ledger only , KBA , FI-SL-VSR-2CL , Validation, Substitution and Rules (Public Cloud) , Problem
Product
SAP S/4HANA Cloud Public Edition all versions
SAP Knowledge Base Article - Public