Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

¿How to get check digit in colombian tax number?

DCorralesM
Explorer
0 Kudos

Hello,

¿Is there any function module or method to find or calculate the check digit in an identification number in Colombia?

Regards, thank you so much!

1 ACCEPTED SOLUTION

DominikTylczyn
Active Contributor
0 Kudos

Hello duvan.corrales

The Colombian tax number check digit is calculated and verified in the CHECK_TAXCODE_CO form routine in the TSRV function group. The code is like 40 lines long. You can easily analyze it and clone it to your own report or function.

Best regards

Dominik Tylczynski

2 REPLIES 2

DominikTylczyn
Active Contributor
0 Kudos

Hello duvan.corrales

The Colombian tax number check digit is calculated and verified in the CHECK_TAXCODE_CO form routine in the TSRV function group. The code is like 40 lines long. You can easily analyze it and clone it to your own report or function.

Best regards

Dominik Tylczynski

Hello Dominik,

Thanks for your help. I have used the same code from the CHECK_TAXCODE_CO form, but it is necessary to add a character at the end of the tax number for the correct calculation of the check digit.

Finally the check digit is stored in the variable iref2.

Best regards.