In Peru, it is required that invoices or boletas created within a day are numbered sequentially and gapless. In Customizing for eDocument, you determine for each eDocument type the rules for the numbering. For more information, see Customizing SAP ERP for eDocument - Peru.
Once you create the source document, the system applies the rules you have defined for the eDocument type in question to generate the official number for the respective eDocument. The official number is stored in the EDOPEINV
table. Only when the eDocument is either submitted to the tax authorities or cancelled before submitting, the system saves the official number of the eDocument in the Reference Document
field in the source document (BKPF-XBLNR
of the billing document and VBRK-XBLNR
of the accounting document).
Note
To ensure the sequential numbering of the eDocuments, the system does not allow the creation of invoices with a posting date earlier than the creation date of the eDocument itself. In Customizing you can configure the system to check the source document posting dates against the date on which the last eDocument has been created. For more information, refer to the documentation about Customizing for eDocuments directly in the system under
.There are two situations when you can make use of the contingency feature: switch an individual document to contingency or define in Customizing that all eDocuments are created under contingency. The following applies for each case in terms of official numbering:
To ensure that the numbering is gapless, an individual eDocument that has been switched to contingency is cancelled but keeps its official number assigned by the system. The contingency modus requires that you create a new source document for which the system automatically creates a new eDocument of type PE_CONT
. This new eDocument has no official number assigned to it. Instead, you can print this document in a pre-numbered form.
eDocuments that have been created in contingency modus have no official numbers assigned to them. You use the IDCP
transaction to print these eDocumets in pre-numbered forms.
Refer to Switching eDocuments to Contingency for more information.