Symptom
When submitting Chile Documento Tributario Electrónico (DTE) eDocuments via the eDocument Cockpit app, the submission fails and the document remains in "Sending Requested" status. Both Export File and Display XML fail — no XML is generated.
Errors observed in the Application Interface Framework (AIF) Interface Log:
- SOAP:1001 CX_ST_VALIDATION_ERROR: XSLT exception
- An error occurred during serialization in the simple transformation
- The value '-XXXXX.X' is not in the value range of the XML schema type 'decimal' or it does not meet the specified limitations
- Error field name: PRC_OTR_MON
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Create an SD billing document (e.g. via VF01) for a Chile company code.
- Open the eDocument Cockpit app.
- Locate the corresponding Chile DTE document in Sending Requested status.
- Select the document and choose Go To → Interface Log.
- Observe the CX_ST_VALIDATION_ERROR on field PRC_OTR_MON.
Cause
The field PRC_OTR_MON (Precio del Item en Otra Moneda — Price of Item in Other Currency), defined in proxy structure EDO_CL_DTEDEF_TYPE_OTR_MNDA, has a value range enforced by the Servicio de Impuestos Internos (SII) XML schema: minimum 0.01, maximum 999.99. Negative values are not permitted.
The Chile DTE mapping class CL_EDOC_MAP_CL_SD method FILL_DTE_DETAILS populates PRC_OTR_MON from the SD billing document. When the billing document contains items with negative net values — for example, negative price adjustment conditions or line items with a negative net value typed directly — the negative amount is passed into PRC_OTR_MON, violating the schema constraint. The XSLT serialization aborts before generating any XML output.
Resolution
The SII specification does not permit negative values in PRC_OTR_MON (allowed range: 0.01 to 999.99). The negative value originates in the SD billing document and must be corrected at the source.
Remove the negative net value from the billing document. SAP SD advises against entering a minus sign directly in the Net Value field. Instead:
- To reverse or reduce a charge, create a Credit Memo (document type CR) using the standard SD credit memo process.
- Review pricing condition types to ensure they do not produce a negative net value at the item level.
- After correcting the source document, re-trigger the eDocument submission from the eDocument Cockpit app.
Keywords
eDocument Chile, DTE, PRC_OTR_MON, SOAP:1001, CX_ST_VALIDATION_ERROR, XSLT exception, serialization error, decimal validation, price in other currency, OTR_MNDA, negative amount, credit memo, EDOC_CUSTOM_FIELDS_CLOUD, eDocument cockpit, sending requesteda , KBA , CA-GTF-CSC-EDO-CL , Document Compliance Chile , Problem
SAP Knowledge Base Article - Public