SAPRAIH2 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Program SAPRAIH2 performs the second step of archiving the invoice history for the
If you would like to execute this report or see the full code listing simply enter SAPRAIH2 into the relevant SAP transactions such as SE38 or SE80
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
Selection Text: P_TESTL = D .
Selection Text: P_PROT_O = D .
Selection Text: P_PROT = D .
Selection Text: P_DETAIL = D .
Selection Text: P_DELTST = D .
Selection Text: P_PROD = Delete
Selection Text: P_DELPRD = D .
Title: Archiving program for invoice history, deletion of invoices
Text Symbol: 030 = Overview log - deleted invoices
Text Symbol: 029 = Overview log - invoices to be deleted
Text Symbol: 020 = DFMCAINVPOS
Text Symbol: 019 = DFMCAINV
Text Symbol: 015 = Invoice number
Text Symbol: 014 = No log data available
Text Symbol: 013 = Detail log - deleted invoices
Text Symbol: 012 = Detail log - invoices to be deleted
Text Symbol: 011 = <<< UPDATE RUN >>>
Text Symbol: 010 = <<< TEST RUN >>>
Text Symbol: 009 = in bytes...........
Text Symbol: 008 = Deleted........
Text Symbol: 007 = Read.......
Text Symbol: 006 = Table
Text Symbol: 004 = Number of invoice items
Text Symbol: 001 = Processing Options
INCLUDE RPAI_ARCH_INVH_TYPES.
INCLUDE FKK_ARCH_BASE_READ.
INCLUDE RPAI_ARCH_INVH_READ.
INCLUDE ARCH_DELETE_PRG_STANDARD2.
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_PROTOCOL_LINE_DETAIL CALL FUNCTION 'ARCHIVE_PROTOCOL_LINE_DETAIL'.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
SAPRAIH2 - Archiving program for invoice history, deletion of invoices SAPRAIH2 - Archiving program for invoice history, deletion of invoices SAPRAIH1 - Archiving program for invoice history SAPRAIH1 - Archiving program for invoice history SAPR3_MASTERLANG_CN_LDST - Report SAPR3_MASTERLANG_CN_LDST SAPR3_MASTERLANG_CN_LDST - Report SAPR3_MASTERLANG_CN_LDST