Symptom
An eDocument for Colombia is shown as Approved by the Tax Authority (DIAN) in the eDocument Cockpit, but one or both of the following occur:
- The PDF cannot be displayed. The system shows the message "The action is not allowed for any of the selected eDocuments".
- When sending the document to the customer, the email is sent with a blank subject, and the signed invoice is not delivered to the customer.
The eDocument is correctly approved and fiscally valid at DIAN. The issue affects only the local copy of the signed invoice in the SAP system and the document delivered to the customer.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
This issue cannot be reproduced on demand. It is triggered by an intermittent communication exception (COMM_EXC) that occurs while receiving the response from DIAN. The communication exception originates outside the SAP system (DIAN web service or the integration layer) and happens randomly, so there are no deterministic steps to reproduce it.
The condition can be identified after it occurs:
1. In the eDocument Cockpit, the document shows status Approved by Tax Authority.
2. The document history contains a COMM_EXC result followed by approval received through the status response step (STATUS_RES).
3. In the eDocument history, the signed file (SIGNED.XML) is not present.
4. When trying to display the PDF, the system shows the message "The action is not allowed for any of the selected eDocuments".
Cause
When the response from DIAN is interrupted by a communication exception (COMM_EXC) and the approval is received afterwards through the status response path (STATUS_RES), the signed invoice (SIGNEDDOC) is not persisted in table EDOCUMENTFILE.
By design, the eDocument framework stores the signed document only when the communication with DIAN completes successfully in the standard flow. When the flow is interrupted by a communication exception, the signed document persistence step is not re-triggered on the subsequent approval.
As a consequence, the signed invoice is not available in the system. The email subject and the PDF/AttachedDocument are built from this signed file, which is why the subject is blank, the PDF cannot be displayed, and the AttachedDocument is generated without the embedded signed invoice.
This behavior reflects the current product design.
Resolution
A direct cancellation of an eDocument already approved by DIAN is not possible. The legal cancellation mechanism is the electronic Credit Note (Nota Crédito Electrónica).
- Issue an electronic Credit Note referencing the CUFE of the original eDocument and submit it to DIAN for approval.
- After the Credit Note is approved by DIAN, reverse or cancel the source document in SAP and issue a new invoice for the same transaction.
- SAP generates a new eDocument automatically. Submit it to DIAN.
- Once approved, the signed XML is stored correctly and the document can be sent to the customer with the signed invoice included.
Note: if the customer has already accepted the original eDocument expressly or tacitly in RADIAN, the eDocument becomes a negotiable instrument (título valor) and neither a Credit Note nor a Debit Note can be issued against it, as established by DIAN regulations. In this scenario, consult your legal or tax advisor for the applicable procedure.
Keywords
COMM_EXC, SIGNEDDOC, AttachedDocument, blank email subject, PDF not displayed, action is not allowed, CUFE, NIT, DIAN, Colombia, eInvoice, Nota Crédito, COINV, EDOCUMENTFILE, communication exception, edocuments, eDoc_Cockpit, edocument cockpit app
Product
SAP S/4HANA Cloud Public Edition all versions
SAP Knowledge Base Article - Public