Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
naveen_k1
Product and Topic Expert
Product and Topic Expert
0 Kudos

This blog offers insights into the contingency process feature within the SAP DRC Colombia solution and details the steps required for setting it up.

Occasionally, users encounter difficulties submitting eDocuments to the Colombian tax authorities (DIAN) owing to technical glitches within the system or communication errors. These issues may arise from the electronic bill issuer's end or from DIAN itself, resulting in the unsuccessful submission of eDocuments.

The different types of contingencies are distinguished based on the '<InvoiceTypeCode>' tag. The value 03 represents contingency due to technical issues on the electronic bill issuer's side, and 04 represents contingency due to technical issues on DIAN.

 

DIAN Contingency - Tipo - 04

Technological problems generated by DIAN for the prior validation of electronic invoicing. Electronic billers can set up this contingency process when one of the following error messages are received from DIAN.

  1. Error Handling: If an error (specifically mentioned in section 12.2.1) is detected when transmitting an electronic sales invoice, the invoice must be re-transmitted to DIAN 20 seconds after the error is detected. If the error persists after three attempts (one minute after the first attempt), the invoice should be issued directly to the buyer without prior validation from DIAN.

  2. Error Documentation: Providers must maintain records of the errors encountered as specified in section 12.2.1.

    Figure 1.1 - Possible error codes during DIAN ContingencyFigure 1.1 - Possible error codes during DIAN Contingency

    Follow the link to DIAN documentation for more information.

  3. Invoice Generation with Errors: In case of persistent technological issues, invoices should be issued with an InvoiceTypeCode of 04, maintaining the same prefix and number, and should be re-signed and delivered without DIAN’s validation response.

  4. Monitoring DIAN Services: Providers should monitor DIAN’s electronic billing web services 30 minutes after an error is first reported to check if the service has been restored. Monitoring should continue until the service is fully operational.

  5. Post-Recovery Actions: Once the DIAN service is active again, providers should generate, transmit, and issue electronic documents normally.

  6. Reporting Timeline: Electronic billers have 48 hours to report to DIAN any invoices issued due to technological issues once they verify that DIAN's services are operational.

 

Figure 1.2 - Provides context about the steps to be followed in case of DIAN ContingencyFigure 1.2 - Provides context about the steps to be followed in case of DIAN Contingency

 

naveen_k1_2-1712595893136.png

 

Electronic Bill Issuer Contingency - Tipo -03 

Technological problems at electronic bill issuer system. If a technical problem prevents you from sending eDocuments to DIAN, you define in Customizing that all eDocuments are created in contingency mode.

The steps outline procedures for electronic billers to follow during technological issues in the issuer system:

  1. Issuing Invoices During Contingency: If there are technological problems, billers should issue sales invoices manually or through electronic systems, using either booklet or paper formats.

  2. Communication of Issues: Billers must draft a letter detailing the technological issue or its resolution, signed by the company’s legal representative. This letter should be sent to a specified email address, with certain required details in the subject, attachment, and body of the email.

  3. Post-Issue Procedures: Once the technological issue is resolved, billers should resume normal operations of generating, transmitting, issuing, and receiving electronic documents.

  4. Documentation and Notification: During the contingency period, information from manually issued invoices must be transcribed into an electronic transmission document. Notifications of acceptance or rejection from DIAN (the tax authority) will follow within 48 hours of resolving the issue.

  5. Specific Documents Without Contingency Plans: CreditNote, DebitNote, and ApplicationResponse documents should not use contingency numbering but instead follow the established numbering by the biller.

For further information about this type of contingency, please refer to the DIAN documentation link.

Figure 1.3- Provides information about the contingency due to Electronic biller's system issuesFigure 1.3- Provides information about the contingency due to Electronic biller's system issues

 SDC Colombia Contingency Process setup:

 

When an eDocument submitted from edoc cockpit and if it results in one of the below statuses, then the documents are must be processed in DIAN contingency mode (InvoiceTypeCode - 04) / Electronic Bill Issuer contingency mode (InvoiceTypeCode - 03) :

Communication Exception Status in EDOC Cockpit

This situation occurs when there is a communication issue at DIAN, and the document does not reach its system. You can perform the following steps to complete the process:

  1. Validate if the error messages received from DIAN is one of the following

naveen_k1_4-1712595893152.png

If you are not able to see the error code in the application log or interface log in the cockpit, you must check it in the CPI logs; here is an example screenshot-

naveen_k1_5-1712595893153.png

 

 

If you receive the message "Time out" while transmitting electronic documents, it is a declared delay in the DIAN system, you should attempt again after two minutes, if the error persist attempt four times more each two minutes, if the problem persist in spite of the five attempts, it is declare the contingency type 04, you should keep the evidence of the delay in the DIAN services.

 Steps to be followed for DIAN Contingency mode:

  1. Select the eDocument with the status 'Communication Exception' and choose the 'Switch to Contingency' actionnaveen_k1_6-1712595893156.png
  2. Choose Yes in the next dialog box.naveen_k1_7-1712595893158.png
  3. The status changes to 'Switched to DIAN Contingency'naveen_k1_8-1712595893160.png
  4. Send an electronic invoice to the customer without validations from DIAN
  5. Select eDocument and choose Customer-->Send to Customer option
    1. naveen_k1_9-1712595893162.pngThe system allows sending email to customer in this situation; you can confirm this in the History sectionnaveen_k1_10-1712595893164.pngnaveen_k1_11-1712595893166.png
    2. naveen_k1_12-1712595893169.pngOnce the technological issues are resolved on DIANs side you must submit the edocument again and DIAN performs the validations, Approves and Rejects the edocuments.naveen_k1_13-1712595893171.pngnaveen_k1_14-1712595893173.png

The resubmitted document must have the InvoiceTypeCode 04. The History section of the edocument can show this.naveen_k1_15-1712595893178.pngnaveen_k1_16-1712595893182.png

 

Sending to DIAN requested

There is a technical issue in the electronic invoice issuer system, and the eDocument cannot be sent to DIAN. If the issue cannot be resolved quickly, you can switch the eDocument to contingency. After that, you manually reverse/cancel the source document related to this eDocument in the source application.

Note:

  • If the issue is related to data and can be resolved easily, switching to the contingency mode is unnecessary. Correct the data and resubmit the data again.
  • You must have prenumbered forms approved by DIAN

 Steps to be followed for Contingency at the invoice issuer's System:

Once you identify the technological issues in the system that cannot be solved quickly, follow the steps to create eDocuments in contingency mode (Electronic bill issuer contingency - 03)

  1. Choose the eDocument with the status 'Sending to DIAN Requested' and select 'Switch to Contingency' action
  2. naveen_k1_17-1712595893184.pngChoose Yes in the next dialog.
  3. naveen_k1_18-1712595893186.pngStatus of the eDocument changes to 'Switched to Contingency'
  4. naveen_k1_19-1712595893188.pngCancel the Invoice
  5. naveen_k1_20-1712595893190.pngPerform the configuration to allow the creation of the eDocuments in contingency modenaveen_k1_21-1712595893191.png
  6. naveen_k1_22-1712595893193.pngIn the source applications, you create new documents for the eDocument you have switched to contingency. Before posting the documents, you enter the number of the prenumbered document you used for the contingency documents:
    1. For FI documents, you enter the number of the prenumbered form in the Reference Number field of the new source document.
    2. For SD documents, you enter the number of the prenumbered form in the Reference field of the new source document when you are creating the sales order (VA01 transaction) 
    3. Example:naveen_k1_23-1712595893195.png
  7. The newly created eDocument will be seen in the 'Colombia eInvoice Contingency' process in cockpitnaveen_k1_24-1712595893198.png
  8. Once the technological issues are resolved, submit the eDocumentsnaveen_k1_25-1712595893200.pngnaveen_k1_26-1712595893201.png
    1. Note: The InvoiceTypeCode will be 03.naveen_k1_27-1712595893203.pngnaveen_k1_28-1712595893206.png
  9. Reverse the contingency configuration to allow the creation of the eDocuments normallynaveen_k1_29-1712595893209.png
  10. After reversal, the configuration appears as below:naveen_k1_30-1712595893211.png

 

In summary, effectively managing the contingency processes within the SAP DRC Colombia solution is crucial for maintaining compliance with DIAN regulations during technological disruptions. This blog has explored the necessary steps and considerations for setting up and navigating through contingency modes, whether the challenges arise from the electronic bill issuer's end or directly from DIAN.

Understanding the differentiation between 'InvoiceTypeCode' 03 and 04 helps in pinpointing the origin of the issue and deciding the appropriate response strategy. The outlined procedures ensure that, even in the face of technological difficulties, businesses can continue their operations by issuing invoices in contingency modes and maintaining necessary documentation for compliance and verification.

As technology evolves and challenges emerge, staying informed and prepared to handle such issues with the appropriate contingency plans will safeguard the integrity of electronic document transactions and support uninterrupted business operations.