Symptom
The defined filter condition "PAYM_ADV" does not take effect when using BAdI APOC_SET_OUTPUT_DOCUMENT_NAME to customize payment advice names.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
No error to reproduce
Cause
An incorrect application object type was selected during the BAdI configuration, which causes the filter condition of BAdI APOC_SET_OUTPUT_DOCUMENT_NAME to fail to trigger and work properly.
Resolution
Replace the original application object type with FFO_PAYM_ADV in the BAdI configuration. After adjusting the application object type, the BAdI APOC_SET_OUTPUT_DOCUMENT_NAME can be triggered normally for payment advice scenarios.
See Also
Keywords
APOC_SET_OUTPUT_DOCUMENT_NAME, BAdI filter not working, output document name customization, payment advice output, application object type, PAYM_ADV, FFO_PAYM_ADV
Product
SAP S/4HANA Cloud Public Edition all versions
SAP Knowledge Base Article - Public