SAP Reports / Programs | Materials Management | Invoice Verification(MM-IV) SAP MM

RM08RADE SAP ABAP Report - Archive Material Documents for Invoice Verification - Delete Program







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


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 RM08RADE. "Basic submit
SUBMIT RM08RADE AND RETURN. "Return to original report after report execution complete
SUBMIT RM08RADE 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: 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:


INCLUDES used within this REPORT RM08RADE

INCLUDE: MRM_CONST_COMMON,
MRM_CONST_MRM,
MRM_CONST_NAST,
MRM_CONST_BASIS,
MRM_TYPES_NAST.


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:

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.



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 RM08RADE or its description.