SAP Reports / Programs

RM07KOHDEL2 SAP ABAP Report - Archiving Program for MBEWH, QBEWH, and EBEWH.







RM07KOHDEL2 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RM07KOHDEL2 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 RM07KOHDEL2. "Basic submit
SUBMIT RM07KOHDEL2 AND RETURN. "Return to original report after report execution complete
SUBMIT RM07KOHDEL2 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: R_MATNR = D .
Selection Text: R_BWKEY = D .
Selection Text: PA_TEXT = Comment
Title: Archiving Program for MBEWH, QBEWH, and EBEWH.
Text Symbol: T03 = Criteria for Selection of Data
Text Symbol: T02 = Mode
Text Symbol: T01 = Selection of History Records to be Archived
Text Symbol: 018 = No authorization
Text Symbol: 017 = !!! ATTENTION - DATA WILL BE CHANGED !!!
Text Symbol: 016 = Termination requested
Text Symbol: 015 = IO error in archive
Text Symbol: 014 = Invalid record structure
Text Symbol: 013 = Error accessing archive
Text Symbol: 012 = Error during archiving
Text Symbol: 011 = The file could not be opened
Text Symbol: 010 = The system could not find the archiving object
Text Symbol: 009 = Internal error in archiving
Text Symbol: 008 = are archived
Text Symbol: 007 = to be archived and deleted
Text Symbol: 006 = are deleted
Text Symbol: 005 = to be del.
Text Symbol: 004 = (MM / YYYY )
Text Symbol: 003 = to
Text Symbol: 002 = /
Text Symbol: 001 = Period Limits:


INCLUDES used within this REPORT RM07KOHDEL2

No INCLUDES are used within this REPORT code!


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_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING call_delete_job_in_test_mode = ' ' create_archive_file = 'X' object = 'MM_HDEL' comments = pa_text "n859420 IMPORTING archive_handle = handle EXCEPTIONS internal_error = 1 object_not_found = 2 open_error = 3 not_authorized = 4 OTHERS = 5.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = handle EXCEPTIONS internal_error = 01 wrong_access_to_archive = 02.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = handle record_structure = struct_name TABLES table = tab_name EXCEPTIONS internal_error = 01 wrong_access_to_archive = 02 invalid_record_structure = 03.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = handle EXCEPTIONS file_io_error = 01 internal_error = 02 open_error = 03 termination_requested = 04 wrong_access_to_archive = 05.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = handle EXCEPTIONS internal_error = 01 wrong_access_to_archive = 02.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = handle EXCEPTIONS internal_error = 01.



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