Symptom
It is required to change the length of the account numbers for the Chart of Accounts (COA). For example, only 8 digits are needed instead of 10, and the leading 0's are unwanted.
Environment
SAP S/4HANA Cloud Public Edition
Resolution
- A G/L account number may have a maximum of 10 digits. If a shorter account number selected, the system supplements the account numbers as follows:
For numeric account numbers, the system inserts leading zeroes. For example, the account number 1234 becomes 0000001234.
The system leaves alphanumeric account numbers unchanged. For example, the account number 1131DB remains 1131DB. - The value in the field 'Length of G/L Account Number' can be edited in SSCUI 102422, 'Edit Chart of Accounts List,' for this purpose. The maximum value for this field is 10. Reducing the length from 10 to 8, will remove 2 leading 0's for 8 digits in each numeric account number within the given COA
- If reduce the length and a numeric account number has not enough leading zeros, system will delete only the leading zeros.
Example (10 -> 8):
0001234567 -> 01234567
0012345678 -> 12345678
0123456789 -> 123456789
1234567890 -> 1234567890
- For alphanumeric account numbers the defined length has absolutely no effect.
Example: 0031DB would remain unchanged also if the length is reduced from 10 to 5.
0000001234 -> 01234
0000012345 -> 12345
0031DB -> 0031DB (0031DB would remain unchanged also if the length is reduced to 5.)
Keywords
Leading, zeroes, zero, prefix, account number, length, SSCUI, 102422, edit chart of accounts list, Zeros in the left of G/L Account, 6 characters, renumber G/L Accounts, 6 or 8 digits, account number, change the length, S4_PC, S4_1C, SAP S/4HANA Cloud Public Edition. , KBA , FI-FIO-GL-MD-2CL , Master Data Apps (Public Cloud) , How To
SAP Knowledge Base Article - Public