Programme SAP SAPRAIH1 - Archiving program for invoice history

Description
Program SAPRAIH1 carries out the first step in the archiving of theinvoice history for invoicing. You use this program to generate anarchive with the invoice history for the Public Services AccountsReceivable and Accounts Payable component.
The second step is carried out using program SAPRAIH2
. You use this program to delete the invoice history on the basis ofthe previously generated archive.
The corresponding Archiving Object is FMCA_INVH. You can findits definition and corresponding Customizing options with transactionAOBJ; for archive administration and relevantCustomizing, use transaction SARA.
The program selects all table entries from table DFMCAINV and theircorresponding items from table DFMCAINVPOS that meet the selectioncriteria. The age of an invoice history is derived from the dateindicator (field LAUFD).

Notes
For an invoice history that is not archived on the basis of its dateindicator, the detail log outputs an error code:
Error ERR_NOLD:
Run time of invoice history has not yet ended