SAP Reports / Programs

RMPREWWR SAP ABAP Report - Archiving object MM_PREW customs log write into archive







RMPREWWR 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 RMPREWWR 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 RMPREWWR. "Basic submit
SUBMIT RMPREWWR AND RETURN. "Return to original report after report execution complete
SUBMIT RMPREWWR 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_DATUM = Archiving until date
Selection Text: DELETE = Delete Program in Test Mode
Selection Text: CREATE = Create archive
Title: Archiving object MM_PREW customs log write into archive
Text Symbol: PRH = Archiving of preference logs - Write in the archive
Text Symbol: P03 = Issue detailed log
Text Symbol: P02 = Issue normal log
Text Symbol: P01 = Do not issue log
Text Symbol: P00 = Log
Text Symbol: HUS = User:
Text Symbol: HST = Start:
Text Symbol: HEN = End:
Text Symbol: HCL = Client:
Text Symbol: D00 = Delete
Text Symbol: C00 = Archive
Text Symbol: 010 = Error message &1 not documented
Text Symbol: 002 = Log messages


INCLUDES used within this REPORT RMPREWWR

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 = delete create_archive_file = create object = 'MM_PREW' importing archive_handle = archive_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 = archive_handle object_id = data_object_id exceptions internal_error = 1 wrong_access_to_archive = 2 others = 3.

ARCHIVE_SAVE_OBJECT call function 'ARCHIVE_SAVE_OBJECT' exporting archive_handle = archive_handle * IMPORTING * OBJECT_OFFSET = * ARCHIVE_NAME = exceptions file_io_error = 1 internal_error = 2 open_error = 3 termination_requested = 4 wrong_access_to_archive = 5 others = 6.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = archive_handle record_flags = ' ' record_structure = 'MMPREW_PRO_02' tables table = tmmprew02 exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = archive_handle record_flags = ' ' record_structure = 'MMPREW_PRO_01' tables table = tmmprew01 exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = archive_handle record_flags = ' ' record_structure = 'MMPREW_PRO_01_B' tables table = tmmprew01_b exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = archive_handle record_flags = ' ' record_structure = 'MMPREW_PRO_03' tables table = tmmprew03 exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting archive_handle = archive_handle.

ARCHIVE_WRITE_STATISTICS call function 'ARCHIVE_WRITE_STATISTICS' exporting archive_handle = archive_handle statistics_only_per_run = ' ' statistics_only_per_file = 'X'.



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