Symptom
When creating a CI01 billing document from a Preliminary Billing Document (PBD), BAdI SD_BIL_DATA_TRANSFER is not triggered, causing the Fixed Value Date to be copied from the PBD instead of being updated according to custom logic.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Implement custom logic for BAdI SD_BIL_DATA_TRANSFER (for example, to set Fixed Value Date to the current date).
- Create a Preliminary Billing Document (PBD) using app "Manage Billing Document Requests (F2960).
- Create a CI01 billing document from the PBD Manage Billing Documents (F0797).
- Observe that SD_BIL_DATA_TRANSFER is not called and the Fixed Value Date is copied from the PBD.
Cause
- This behavior is currently by design, as the scope of BAdI SD_BIL_DATA_TRANSFER is limited to supported billing document creation processes and it is not invoked during the Preliminary Billing Document (PBD) → Billing Document creation flow, the data transfer BAdI is only called when create from one document to another different type of document, such as order type OR to billing type F2, but for Preliminary Billing document(PBD) and Billing document(BD), they have the same billing type.
- The PBD BAdI's (SD_BIL_PBD_MODIFY_HEAD and SD_BIL_PBD_MODIFY_ITEM) are only called when creating or changing PBDs, not when creating a billing document from a PBD.
Resolution
If a CI01 billing document must be created from a Preliminary Billing Document, ensure that the required Fixed Value Date is maintained on the PBD before billing document creation.The following options are available:
- Manually update the Fixed Value Date in the Preliminary Billing Document before creating the CI01 billing document using app "Manage Billing Document Requests" (F2960).
- Implement the following BAdIs (available as of release 2602.4) to populate or adjust the Fixed Value Date during PBD creation or change:
- SD_BIL_PBD_MODIFY_HEAD
- SD_BIL_PBD_MODIFY_ITEM
- If the business process permits, create the CI01 billing document directly from the Project Billing Document Request (PBDR). In this scenario, SD_BIL_DATA_TRANSFER is called and can be used to determine and transfer the required Fixed Value Date.
- If enhancement of the PBD → Billing Document creation process is required, submit a feature request through the Customer Influence to request an enhancement that enables modification of the target billing document during billing document creation from a PBD.
- Get started by opening SAP Customer Influence (Customer Influence).
- Register and accept the Terms of Use.
- Choose a session of your interest (SAP S/4HANA Cloud Public Edition, Sales).
- Create and submit your improvement request.
You can refer to the KBA 2963059 - How to Submit Feature Requests for SAP S/4HANA Cloud Public Edition for more details about New Feature Request in SAP S/4HANA Cloud. It is the best way to address this request.
See Also
- KBA 3734973 - BADI SD_BIL_DATA_TRANSFER, custom logic did not run to fill custom field when creating billing document from Sales Order.
- KBA 2963059 - How to Submit Feature Requests for SAP S/4HANA Cloud Public Edition.
- SAP Help Portal : Custom Data Transfer for Billing Process Documents.
- SAP Community : Define Custom Routines for Data Transfer to Billing Documents.
Keywords
sd_bil_data_transfer, ci01, preliminary billing document, pbd, pbdr, billing document, fixed value date, payment terms, data transfer routine, output control billing, s/4hana cloud public edition, badi not called, copying control, project billing, workaround , KBA , SD-BIL-GF-OC-2CL , Output Control Billing (Public Cloud) , Problem
SAP Knowledge Base Article - Public