Symptom
Billing documents can be saved with net value 0 without triggering an error message in 'Create Billing Documents (VF02)' app.
Environment
SAP S/4HANA Cloud Public Edition
Cause
The condition type used in the billing document is marked as mandatory in the Set Pricing Procedures (101118) configuration activity, but if the value is not maintained, billing only triggers a warning message “Pricing error: Mandatory condition * is missing” and still allows the document to be saved.
Resolution
- In standard SAP billing, pricing errors are handled as warnings rather than errors, which allows the billing document to be saved.
- If the business requirement is to stop saving billing documents with net value 0, implement custom validation by using the BAdI SD_BIL_DATA_TRANSFER to raise an error message instead of a warning.
- Refer to the SAP documentation for guidance on implementing the BAdI: Defining Custom Routines for Data Transfer to Billing Documents |SAP Help Portal.
See Also
Keywords
billing document, net value 0, condition type ZJOB, pricing procedure, mandatory condition missing, warning message, error handling, SD_BIL_DATA_TRANSFER, sap s/4hana cloud public edition, custom logic, pricing error, Mandatory condition, pricing error, error message ,BAdI , KBA , SD-BIL-GF-OC-2CL , Output Control Billing (Public Cloud) , How To
SAP Knowledge Base Article - Public