Understanding Series Length and Numbers Length

Use the Nota Fiscal Series and Numbers Length program (P76B008) to set up the character length of the nota fiscal serie and number for each type of nota fiscal; paper and electronic. Because the NFe legal number and legal serie length depends on the nota fiscal type, the fields are defined longer than what is needed. For example, the paper nota fiscal serie length is a two character number and the legal number is a six character number. The electronic nota fiscal serie length is a three character number and the legal number is a nine character number.

Use the Next Numbers - Nota Fiscal program (P7600B) to set up next numbers for the classic, Sao Paolo, and national notas fiscais and the Nota Fiscal Next Numbers program (P76B007) to set up next numbers for the electronic notas fiscais. The system validates that the different nota fiscal next numbers do not exceed the determined lengths. The system stores this information in the Nota Fiscal Legal Next Number Length table (F76B008).

For some companies, the NFe series is not required, so you must set up a legal next number using the series 000. The system retrieves and advances the next number automatically based on the fiscal company and the serie. If the legal next number is greater than 999.999.999 for a outbound NFe, the system resets the next number to 1.