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.
Showing results for 
Search instead for 
Did you mean: 
Product and Topic Expert
Product and Topic Expert
0 Kudos

This guide provides clear steps for accessing Ranges from DIAN to Colombia in Production systems. Its primary focus is to assist customers going live with the SAP Document and Reporting Compliance-Colombia solution.


  1. Complete the Habilitation test process. The habilitation test process for the Colombia e-invoice ensures compliance with the e-invoicing requirements before a taxpayer is enabled as an authorized issuer of electronic invoices. The taxpayer must perform a series of tests to verify the software's correct functioning and compliance with the e-invoicing requirements. The tests include the generation, transmission, validation, and consultation of electronic invoices, credit notes, and debit notes.
  2. After the successful Habilitation tests, manually request the production number ranges for Invoices and Contingency Invoices in the DIAN portal.
  3. You have deployed the iflow for the Query Ranges in the production tenant.naveen_k1_0-1712258370087.png
  4. SOAMANGER configuration is completed.                     naveen_k1_1-1712258370090.png
  5. You must have the authorization to run the transaction ‘EDOC_CO_RANGES’ or report EDOC_CO21_QUERY_RANGES.
  6. You must know the Company Code and Software ID for running the transaction EDOC_CO_RANGES.


Note: You can get the Software ID from the DIAN portal.

7. The necessary configuration in EDOSOASERV is maintained and transported to the production system.



Important Notes:

  1. The logical port name in the SOAMANGER for the proxy object CO_EDO_CO21_QUERY_RANGES_V2_0 must match the logical port name maintained in the view EDOSOASERV for the SOA service name CO_GET_RANGES.
  2. The production ranges are only retrieved from DIAN for Invoices and Contingency invoices. In DIAN, only the ranges for invoices and contingency invoices are maintained.
  3. For all document types, such as Credit Notes and Debit Notes, you must choose the number ranges according to your business requirements and maintain them manually in SNRO.

Number Range Retrieval Steps:

  1. Execute transaction EDOC_CO_RANGES or follow the path in SPRO, Cross-Application Componentsà General Application Functionsà Document and Reporting Complianceà Country/Region-Specific SettingsàColombiaà Electronic Document Processingà Get Number Ranges for Invoices from Tax Authority
  2. Enter Company Code and Software ID



3. Press the Execute button.

4. A successful execution will create necessary configuration entries in SNRO and the view EDOCORANGESV. You can also view retrieved ranges in the report execution.



5. The retrieved ranges are stored in

  1. SNRO Against the object EDOC_CO and Company code used in the report execution.


The transaction EDOC_CO_RANGES will find the next available Number Range No. and adds it to the SNRO.

This means that screenshot 2 above shows that the range retrieved from DIAN is the number three position.

b. EDOCORANGESV - You use this Customizing view to enter the number ranges and their attributes to be used to create eDocuments. 



Next Steps After Range Retrieval from DIAN:

Maintain Ranges for Credit notes and Debit notes manually

  1. Go to SNRO and define number ranges for Credit and Debit Notes according to your business requirements.


2. Maintain Ranges for Credit and Debit Notes in EDOCORANGESV.



Assign Number Ranges to eDocument Types

In this Customizing activity, you assign number ranges to the eDocument types for Colombia.

The Variable Key field enables the use of different number ranges for the same eDocument types. A use case is, for example, if you want to use different number ranges for different organizational entities like branches, business places, or plants.

If the number range overlaps for Colombia eInvoice and Colombia eInvoice Contingency document types, you can define the range numbers used for the contingency process in the columns From Number – Contingency and To Number – Contingency.

For example, DIAN authorizes the number range from 100000 to 105000, but the numbers between 100000 and 100800 are to be used for contingency documents.