SAP Reports / Programs | Public Sector Contract Accounts Receivable and Payable | Public Sector Contract Accounts Receivable and Payable | Public Sector Contract Accounts Receivable and Payable(IS-PS-CA) SAP IS

SAPRAIH2 SAP ABAP Report - Archiving program for invoice history, deletion of invoices







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 Public Services Accounts Receivable and Accounts Payable component...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

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


ABAP code to call this SAP report using the submit statement

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.






SUBMIT SAPRAIH2. "Basic submit
SUBMIT SAPRAIH2 AND RETURN. "Return to original report after report execution complete
SUBMIT SAPRAIH2 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


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


INCLUDES used within this REPORT SAPRAIH2

INCLUDE RPAI_ARCH_INVH_TYPES.
INCLUDE FKK_ARCH_BASE_READ.
INCLUDE RPAI_ARCH_INVH_READ.
INCLUDE ARCH_DELETE_PRG_STANDARD2.


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

ARCHIVE_PROTOCOL_LINE_DETAIL CALL FUNCTION 'ARCHIVE_PROTOCOL_LINE_DETAIL'.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name SAPRAIH2 or its description.