SAP Knowledge Base Article - Public

3734973 - BADI SD_BIL_DATA_TRANSFER, custom logic did not trigger to fill custom field when creating billing document from Sales order

Symptom

  • The expected Badi SD_BIL_DATA_TRANSFER for custom field value mapping is not called according to trace.
  • SD_BIL_DATA_TRANSFER badi is working for other document flow but logic is not applied during billing creation for a specific sales-to-billing flow.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Create a billing document from a sales document (for example, OR to F2) where custom field value is mapped via the SD_BIL_DATA_TRANSFER Badi .
  2. Post the billing document.
  3. Observe that the custom field is empty in the billing document that is created.

Cause

The custom data transfer routine that is associated with the SD_BIL_DATA_TRANSFER Badi was missing in the sales-to-billing copy control configuration. As a result, the SD_BIL_DATA_TRANSFER Badi did not trigger when the document was created, and the custom field value was not set.

Resolution

  1. Open the SSUID: Define Copying Control for Sales Document to Billing Document - 102762.
  2. Identify the relevant item settings used for the affected sales-to-billing document flow (for example, OR to F2 for item type TAD).
  3. Assign the custom routine that is assigned to SD_BIL_DATA_TRANSFER Badi that populates the custom field in the appropriate copy control field at item level, as designed.
  4. Save the configuration and transport the change to the target system(s) as per your change procedure.
  5. Create a new billing document with reference to sales document (for example, OR to F2 for item type TAD).
  6. Observe the Badi is triggered and billing document custom field is filled as per the logic

See Also

Define Custom Routines for Data Transfer to Billing Documents (BADI SD_BIL_DATA_TRANSFER usage) - SAP Community

Keywords

copy control, sales to billing, billing number range, custom number range, number range not applied, badi not called, header plant, plant at billing header, sd billing, or to f2, routine missing, requirement routine, s/4hana cloud, vtfl, billing document numbering , KBA , SD-BIL-2CL , Billing (Public Cloud) , How To

Product

SAP S/4HANA Cloud Public Edition all versions