SAP Knowledge Base Article - Public

3841701 - Add Fields (XBLNR and BLDAT) in Ustrd Node in Payment XML File

Symptom

Business requirement to include the fields Invoice Number and Document Date in USTRD node.

Environment

SAP S/4HANA Cloud Public Edition

Resolution

Step 1 — Copy the Standard Italian Format.

  1. Search for SSCUI 100558 — Map Format Data for Payments.
  2. Locate the standard format IT_CGI_XML_CT.
  3. Copy it to a new custom format (e.g., ZIT_CGI_XML_CT_PNRR) — do not modify the SAP-delivered standard directly
  4. Assign this new format to the dedicated payment method for PNRR invoices (as described in your requirement: "identifiable by a dedicated payment method").

Step 2 — Modify the <Ustrd> Node Mapping

  1. In your copied format within SSCUI 100558, locate the  <Ustrd> node under <RmtInf> and configure the concatenation as follows:
PositionFieldFPAYP MappingExample Value
1Invoice NumberFPAYP-XBLNRINV-2025-00123
2SeparatorStatic text(space)
3Document DateFPAYP-BLDAT2025-03-15

     2. In SSCUI 100558, the <Ustrd> element supports multiple sub-elements (atoms) that are concatenated into a single string. Each atom maps to one field or static text value.

     3. Note: The <Ustrd> field in pain.001.001.03 has a maximum length of 140 characters. Ensure the concatenated string does not exceed this limit for typical invoice references and codes.

Step 3 — Handle Multiple Invoices per Payment

If the payment method consolidates multiple invoices for the same supplier into one payment (as is common in automatic payment runs), the <Ustrd> node must loop at FPAYP level (invoice item level) rather than FPAYH level (payment level) exactly as discussed in the earlier XML analysis. Configure the <Ustrd> node to repeat per FPAYP entry so that each invoice gets its own line:

<Ustrd>INV-2025-00123 2025-03-15 CIG:0123456789 CUP:F19H21000390006</Ustrd>
<Ustrd>INV-2025-00124 2025-03-18 CIG:0123456789 CUP:F19H21000390006</Ustrd>

Keywords

Invoice Number, Document Date, FPAYP-BLDAT, FPAYP-XBLNR, USTRD , KBA , FI-AP-AP-B , Payment Progam / Payment transfer (DE, JP, US) , How To

Product

SAP S/4HANA Cloud Public Edition 2608