SAP Reports / Programs

RSSCD7AR SAP ABAP Report - Archiving program for change documents







RSSCD7AR 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 RSSCD7AR 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 RSSCD7AR. "Basic submit
SUBMIT RSSCD7AR AND RETURN. "Return to original report after report execution complete
SUBMIT RSSCD7AR 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: COMMENT = Comment Line for Archiv. Sess.
Selection Text: DEL_PROD = Delete with product. run var.
Selection Text: DEL_TEST = Delete with test run variant
Selection Text: NO_FILE = Do Not Create Archive Files
Selection Text: OBJECT = Change Document Object
Selection Text: OBJECTID = Change Document Value
Selection Text: P_USER = User Name of Change
Selection Text: TCODE = Transaction Code
Selection Text: UDATE = Delete until Date (incl.)
Selection Text: UZEIT = Delete Until Time (Incl.)
Title: Archiving program for change documents
Text Symbol: 001 = Object-Specific Parameters
Text Symbol: 002 = Technical Control


INCLUDES used within this REPORT RSSCD7AR

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 = testmode create_archive_file = creafile object = 'CHANGEDOCU' comments = comment IMPORTING archive_handle = archive_handle EXCEPTIONS open_error = 3 not_authorized = 4 OTHERS = 5.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = archive_handle.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = archive_handle record = i_cdkeytab record_structure = 'CDKEYTAB'.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = archive_handle record = record_structure = 'CDHDR'.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'CDPOS' TABLES table = i_cdpos EXCEPTIONS OTHERS = 1.

CHANGEDOCU_HAS_GUID CALL FUNCTION 'CHANGEDOCU_HAS_GUID' EXPORTING is_cdhdr = IMPORTING has_guid = i_has_guid has_string = lv_has_string.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'CDPOS_UID' TABLES table = i_cdpos_uid EXCEPTIONS OTHERS = 1.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'CDPOS_STR' TABLES table = lt_cdpos_str EXCEPTIONS OTHERS = 1.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = archive_handle EXCEPTIONS file_io_error = 1 internal_error = 1 open_error = 1 termination_requested = 4 wrong_access_to_archive = 1 OTHERS = 1.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = archive_handle.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = archive_handle.



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