Symptom
The date input in the "Create Billing Documents" app is taken during billing document creation, although the "current date" is set as "billing date" in BAdI SD_BIL_DATA_TRANSFER.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Implement and activate the BAdI SD_BIL_DATA_TRANSFER, by setting the billing date = current date.
- Open the "Create Billing Document" app.
- Select a document and click on "Create Billing Document".
- Enter a date in the past and click OK.
- The date is taken from the selection step.
Cause
This is the standard system design. The manually entered billing date has a higher priority and will not be changed by the BAdI. The system will prioritize the date confirmed in the selection box.
Resolution
Turn off the "Set billing date and type before billing" option in the "Billing Settings" in "Create Billing Documents" app.
See Also
KBA 2892513 - How to set billing date equal to billing creation date via copy control - SAP S/4HANA Cloud Public Edition
Keywords
SD_BIL_DATA_TRANSFER, BAdI, billing date, Create Billing Document, billing settings, set billing date and type before billing, current date , KBA , SD-BIL-IV-2CL , Processing Billing Documents (Public Cloud) , Problem