Symptom
Cost Center field appears empty in BAdI FIN_ACDOC_ITEM_VALIDATION despite being filled earlier in the user interface.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Implement BAdI FIN_ACDOC_ITEM_VALIDATION to validate cost center value is not empty
- Navigate to the 'Create Supplier Invoice' application.
- Enter the cost center for the relevant GL account range.
- Observe that the validation message still appears, indicating the cost center field is empty.
Cause
Entry View summarization is active in the Configuration activity Activate Entry View Summarization. With this feature enabled, certain fields, including the Cost Center, are cleared to reduce the number of line items in the Entry View. As a result, non-open item management line items remaining in BAdI FIN_ACDOC_ITEM_VALIDATION will have an empty cost center field.
Resolution
- Verify that Entry View summarization is active in the Configuration activity Activate Entry View Summarization.
- Check the fields in BAdI FIN_ACDOC_VALIDATION instead of BAdI FIN_ACDOC_ITEM_VALIDATION.
- Utilize the table UNCOMPRESSEDITEMS within BAdI FIN_ACDOC_VALIDATION to access all relevant information, including the cost center field.
See Also
Refer to SAP Help page Entry View Summarization for more information on the Configuration activity.
Keywords
cost center, badi, fin_acdoc_item_validation, empty field, entry view summarization, create supplier invoice, gl accounts, validation message, uncompresseitems, sap s/4hana cloud , KBA , FI-SL-VSR-2CL , Validation, Substitution and Rules (Public Cloud) , Problem
SAP Knowledge Base Article - Public