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.
- Search for SSCUI 100558 — Map Format Data for Payments.
- Locate the standard format IT_CGI_XML_CT.
- Copy it to a new custom format (e.g., ZIT_CGI_XML_CT_PNRR) — do not modify the SAP-delivered standard directly
- 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
- In your copied format within SSCUI 100558, locate the <Ustrd> node under <RmtInf> and configure the concatenation as follows:
| Position | Field | FPAYP Mapping | Example Value |
|---|---|---|---|
| 1 | Invoice Number | FPAYP-XBLNR | INV-2025-00123 |
| 2 | Separator | Static text | (space) |
| 3 | Document Date | FPAYP-BLDAT | 2025-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
SAP Knowledge Base Article - Public