SAP Knowledge Base Article - Public

3058886 - SIRET Tax Number France

Symptom

This KBA explains the logic behind the French SIRET tax number determination in C4C

Environment

SAP Cloud for Customer

Resolution

The French SIRET number has 14 characters(all numeric), and the first 9 of them comprise the French SIREN number.

The logic goes as follows :

1.Extract the SIREN number out of the SIRET number and apply the Luhn algorithm on the SIREN number to see whether the SIREN number is valid. If not valid, throw an error. If valid, proceed to check the SIRET number.

2. For SIRET number, check if it is a La Poste organisation. If it is a La Poste organisation, the sum of digits of the SIRET number for a La Poste organisation must be a multiple of 5 for it to be a valid SIRET number. If it is NOT a La Poste organisation, apply the Luhn algorithm on the SIRET number to check if it is a valid SIRET number.

Luhn algorithm
We multiply the odd position numbers by 1, starting to the right, and the even position numbers by 2.
The sum of all the above must be a multiple of 10 => mod 10 of that total sum must be zero. If a SIRET number satisfies the above check, it is a valid SIRET number.

As an example, let's take a valid SIRET number 73282932000074.

7 - position 14 - multiply by 2 => 14 => 1+4 = 5
3 - position 13 - multiply by 1 => 3
2 - position 12 - multiply by 2 => 4
8 - position 11 - multiply by 1 => 8
2 - position 10 - multiply by 2 => 4
9 - position 9 - multiply by 1 => 9
3 - position 8 - multiply by 2 => 6
2 - position 7 - multiply by 1 => 2
0 - position 6 - multiply by 2 => 0
0 - position 5 - multiply by 1 => 0
0 - position 4 - multiply by 2 => 0
0 - position 3 - multiply by 1 => 0
7 - position 2 - multiply by 2 => 14 => 1+4 = 5
4 - position 1 - multiply by 1 => 4

Sum = 4 + 5 + 0 + 0 + 0 + 0 + 2 + 6 + 9 + 4 + 8 + 4 + 3 + 5 = 50

50 mod 10 = 0 => hence this is a valid SIRET number.

This logic is based on the Luhn algorithm.

You can use this tool to validate the Siret https://www.checktva.eu/en/siret-tva

Keywords

tax number, france, french, SIRET , KBA , siren , siret , tax number , france , AP-TTE-GLO , Cross-Country Extensions , AP-BP-BP-GLO , Cross-Country-Extensions , Problem

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions