SAP Reports / Programs | Sales and Distribution | Foreign Trade | Basic Functions(SD-FT-PRO) SAP SD

RMPREWDL SAP ABAP Report - Preference: Archiving of preference results - Delete log data







RMPREWDL 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 RMPREWDL 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 RMPREWDL. "Basic submit
SUBMIT RMPREWDL AND RETURN. "Return to original report after report execution complete
SUBMIT RMPREWDL 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: Preference: Archiving of preference results - Delete log data
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


INCLUDES used within this REPORT RMPREWDL

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_GET_CUSTOMIZING_DATA call function 'ARCHIVE_GET_CUSTOMIZING_DATA' exporting object = 'MM_PREW' IMPORTING COMMIT_COUNT_FOR_DELETE_PRG = commit_cnt MAINTAIN_INDEX = index_flag.

ARCHIVE_OPEN_FOR_DELETE call function 'ARCHIVE_OPEN_FOR_DELETE' exporting * ARCHIVE_NAME = ' ' object = 'MM_PREW' test_mode = testlauf * AINDFLAG = 'X' importing archive_handle = archive_handle TABLES SELECTED_FILES = sel_files exceptions * FILE_ALREADY_OPEN = 1 * FILE_IO_ERROR = 2 * INTERNAL_ERROR = 3 * NO_FILES_AVAILABLE = 4 * OBJECT_NOT_FOUND = 5 * OPEN_ERROR = 6 * NOT_AUTHORIZED = 7 * OTHERS = 8 others = 1.

ARCHIVE_GIVE_STATISTICS call function 'ARCHIVE_GIVE_STATISTICS' exporting archive_handle = archive_handle tables table = itab_stat.

ARCHIVE_WRITE_STATISTICS call function 'ARCHIVE_WRITE_STATISTICS' exporting archive_handle = archive_handle STATISTICS_ONLY_PER_RUN = 'X' STATISTICS_ONLY_PER_FILE = ' '.

ARCHIVE_ADMIN_SET_STATUS call function 'ARCHIVE_ADMIN_SET_STATUS' EXPORTING FILES_ARE_CONVERTED = ' ' * FILES_ARE_DELETED = ' ' INDEX_CREATED = 'X' * INDEX_DELETED = ' ' tables archive_files = sel_files EXCEPTIONS * CANNOT_CHANGE_STATUS = 1 OTHERS = 2.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting archive_handle = archive_handle.

ARCHIVE_GET_NEXT_OBJECT call function 'ARCHIVE_GET_NEXT_OBJECT' exporting archive_handle = archive_handle IMPORTING OBJECT_ID = data_object_id OBJECT_OFFSET = data_object_offset ARCHIVE_NAME = archive_name * COMPR_OBJECT_LENGTH = * EXCEPTIONS * END_OF_FILE = 1 * FILE_IO_ERROR = 2 * INTERNAL_ERROR = 3 * OPEN_ERROR = 4 * WRONG_ACCESS_TO_ARCHIVE = 5 * OTHERS = 6 exceptions end_of_file = 01.

ARCHIVE_GET_TABLE call function 'ARCHIVE_GET_TABLE' exporting archive_handle = archive_handle record_structure = 'MMPREW_PRO_02' tables table = tmmprew02 exceptions others = 1.

ARCHIVE_GET_TABLE call function 'ARCHIVE_GET_TABLE' exporting archive_handle = archive_handle record_structure = 'MMPREW_PRO_01' tables table = tmmprew01 exceptions others = 1.

ARCHIVE_GET_TABLE call function 'ARCHIVE_GET_TABLE' exporting archive_handle = archive_handle record_structure = 'MMPREW_PRO_01_B' tables table = tmmprew01_b exceptions others = 1.

ARCHIVE_GET_TABLE call function 'ARCHIVE_GET_TABLE' exporting archive_handle = archive_handle record_structure = 'MMPREW_PRO_03' tables table = tmmprew03 exceptions others = 1.



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