S3VBREVDLS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Archiving Revenue Recognition Tables: Delete Program This program deletes revenue results table entries from the database after they have been written to the archive file by the write program...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 S3VBREVDLS 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: P_DELPRD = D Production Mode
Selection Text: P_DELTST = D Test Mode
Title: Archiving Revenue Recognition Tables: Delete Program
Text Symbol: 001 = &1 of &2 Documents Processed
Text Symbol: 002 = Deletion Program Was Executed in Test Mode
INCLUDE ARCHCOMO.
INCLUDE S3VBREVTB.
INCLUDE ARCH_DELETE_PRG_STANDARD1.
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = 'SD_VBREV' test_mode = p_deltst IMPORTING archive_handle = archive_handle.
ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = 'SD_VBREV' IMPORTING commit_count_for_delete_prg = commcnt.
ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = archive_handle IMPORTING object_id = obj_id object_offset = obj_offset archive_name = arc_name EXCEPTIONS end_of_file = 01.
ARCHIVE_DELETE_OBJECT_DATA CALL FUNCTION 'ARCHIVE_DELETE_OBJECT_DATA' EXPORTING archive_handle = archive_handle.
ARCHIVE_GET_NEXT_RECORD CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' EXPORTING archive_handle = archive_handle IMPORTING record_flags = arc_buffer-flags record_structure = arc_buffer-rname record_ref = gf_record_ref EXCEPTIONS end_of_object = 01 wrong_access_to_archive = 02.
ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = archive_handle EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = archive_handle.
ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = archive_handle TABLES table = gt_statistics EXCEPTIONS internal_error = 1.
PROGRESS_INDICATOR_APPL CALL FUNCTION 'PROGRESS_INDICATOR_APPL' EXPORTING i_text = lf_prog_text i_processed = if_processed i_total = if_total i_output_immediately = lf_output_immediately IMPORTING e_progress_sent = lf_progress_sent.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = if_archive_handle IMPORTING archive_document = lf_archive_document archive_name = lf_archive_name.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.