Symptom
A Colombia eDocument is rejected by DIAN when the billing document contains custom (Z*) condition types:
- Rule: FAW01 — Línea de factura informado con LineExtensionAmount en cero y grupo cac:PricingReference no informado (Invoice line reported with LineExtensionAmount at zero and cac:PricingReference group not reported)
One or more invoice lines show LineExtensionAmount = 0.00 in the submitted UBL XML, even though the pricing conditions are active and non-statistical in the billing document.
Entries added to the FIX_VALUE_REPLACER value mapping in the Configure Value Mapping app have no effect and the issue persists.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Create a billing document for Colombia where one or more line items carry their net value exclusively through a custom (Z*) condition type not registered in Fix Value CT_VALUE_PER_ITEM (namespace /EDOCO).
- Open the eDocument Cockpit.
- Submit the eDocument for processing.
- Observe that DIAN rejects the document with: “Validación contiene errores en campos mandatorios. Regla: FAW01, Rechazo: Línea de factura informado con LineExtensionAmount en cero y grupo cac:PricingReference no informado”.
Cause
DIAN requires a positive LineExtensionAmount on every invoice line. The Colombia eDocument mapping calculates LineExtensionAmount by summing only the condition types registered in Fix Value CT_VALUE_PER_ITEM (namespace /EDOCO). Custom condition types are not in the standard list and must be added explicitly.
In SAP S/4HANA Cloud Public Edition, the mechanism to extend CT_VALUE_PER_ITEM is the FIX_VALUE_REPLACER value mapping in the Configure Value Mapping app. However, this value mapping requires a mandatory Default anchor row — a row with the Default flag active and an empty Fix Value field — alongside the non-Default rows that carry the actual condition type values. Without the Default anchor row, the replacement logic exits early and the custom condition types are never included in the LineExtensionAmount calculation.
Resolution
Configure the FIX_VALUE_REPLACER value mapping using the required two-row pattern for each Fix Value Name to extend:
- Open the Configure Value Mapping app in SAP S/4HANA Cloud Public Edition.
- Navigate to namespace /EDOCO and open value mapping FIX_VALUE_REPLACER.
- For each Fix Value Name you need to extend, add entries following this pattern (replace <ZXXX> and <ZYYY> with your actual custom condition types; add more rows as needed):
The row with Default active and an empty Fix Value field is mandatory. Without it, the replacement logic exits early and custom condition types have no effect on the calculation.Fix Value Name Fix Value Default CT_VALUE_PER_ITEM (empty) Active CT_VALUE_PER_ITEM <ZXXX> Inactive CT_VALUE_PER_ITEM <ZYYY> Inactive - Categorize each custom condition type correctly:
- Condition represents the item price → Fix Value Name CT_VALUE_PER_ITEM
- Condition represents a discount → Fix Value Name CONDIT_TYPE_DISCOUNT
- Condition represents a surcharge → Fix Value Name CONDI_TYPE_SURCHARGE
- Save the configuration.
- Create a new billing document for the same scenario. Existing documents are not retroactively updated.
- Submit the eDocument from the eDocument Cockpit and verify that LineExtensionAmount is correctly populated and DIAN accepts the document.
See Also
Keywords
eDocument, Colombia, DIAN, FAW01, LineExtensionAmount, Custom Condition Type, FIX_VALUE_REPLACER, CT_VALUE_PER_ITEM, CONDIT_TYPE_DISCOUNT, CONDI_TYPE_SURCHARGE, Configure Value Mapping, Default Flag, CL_EDOC_MAP_CO_SD_UBL_21, GET_CONDITION_TOTAL, UBL, cac:PricingReference, /EDOCO, Public Cloud , KBA , CA-GTF-CSC-EDO-CO , Colombia , Problem
SAP Knowledge Base Article - Public