RM08RADE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Delete documents Program RM08RADE deletes the invoice documents from Invoice Verification that were archived with program RM08RARC (object MM_REBEL) from the database...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 RM08RADE 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: TESTRUN = Test run
Title: Archive Material Documents for Invoice Verification - Delete Program
Text Symbol: 001 = To be deleted:
Text Symbol: 002 = Data read:
Text Symbol: 004 = Error when deleting invoice document:
Text Symbol: 005 = Number of deleted invoice documents:
Text Symbol: 006 = Number of read invoice documents:
Text Symbol: 007 = Error reading condition:
Text Symbol: 008 = Error deleting the text file header:
Text Symbol: 009 = Error deleting the text file lines:
Text Symbol: 010 = Error Deleting the CPE Data from the Database:
INCLUDE: MRM_CONST_COMMON,
MRM_CONST_MRM,
MRM_CONST_NAST,
MRM_CONST_BASIS,
MRM_TYPES_NAST.
No SAP DATABASE tables are accessed within this REPORT code!
GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING mode = 'CURRENT' IMPORTING out_archive_parameters = ls_arc_parameters out_parameters = ls_print_parameters EXCEPTIONS OTHERS = 0.
ARCHIVE_DELETE_OBJECT_DATA CALL FUNCTION 'ARCHIVE_DELETE_OBJECT_DATA' EXPORTING archive_handle = handle.
ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = c_arch_object_re test_mode = testrun IMPORTING archive_handle = handle EXCEPTIONS OTHERS = 1.
ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = handle EXCEPTIONS end_of_file = 1 OTHERS = 2.
ARCHIVE_GET_NEXT_RECORD CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' EXPORTING archive_handle = handle IMPORTING record_ref = i_dref_buffer record_flags = buffer-flags record_structure = buffer-rname EXCEPTIONS end_of_object = 1.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = handle.
ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = c_arch_object_re IMPORTING commit_count_for_delete_prg = cust_commit_count.
NAST_PROTOCOL_DELETE CALL FUNCTION 'NAST_PROTOCOL_DELETE' EXPORTING nr = s_nast-cmfpnr.
NAST_DELETE_OBJECT CALL FUNCTION 'NAST_DELETE_OBJECT' EXPORTING pi_nast = s_nast.
ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = handle TABLES table = stat_tab EXCEPTIONS internal_error = 1.
ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = handle EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RM08RADE - Archive Material Documents for Invoice Verification - Delete Program RM08RADE - Archive Material Documents for Invoice Verification - Delete Program RM08RAAU - Analysis of Invoice Document Archive RM08RAAU - Analysis of Invoice Document Archive RM08RA30 - Deletion of Unnecessary Change Documents RM08RA30 - Deletion of Unnecessary Change Documents