SAP Knowledge Base Article - Public

3762927 - Custom Fields in Email Template not Populated - SAP S/4HANA Cloud Public Edition

Symptom

Custom Fields in Email Template are not populated in the Email Body when the Email is sent.

Environment

  • Product: SAP S/4HANA Cloud Public Edition
  • SAP S/4HANA Output Management

Cause

The Email Template Framework reads data via CDS from the Database (for example, VBRK). Since the Custom Fields are empty in the Database, they remain empty for the Email Channel.

Resolution

Implement the BAdI SD_BIL_DATA_TRANSFER (Custom Data Transfer for Billing Documents) to populate the required Custom Fields during Billing Document creation or manually fill the Custom Fields and save the Billing Document ensuring the values have persisted to the Database.

    See Also

    Extensibility for Output Forms and Email Templates of Billing Documents | SAP Help Portal

    Keywords

    email template, custom fields, billing document, output management, vbrk, cds view, sd_bil_data_transfer, badi, form xml, email body empty, s/4hana cloud, data persistence, invoice email , KBA , CA-GTF-OC , SAP S/4HANA output management , SD-BIL-2CL , Billing (Public Cloud) , Problem

    Product

    SAP S/4HANA Cloud Public Edition all versions