SAP Reports / Programs

ADDI_ARCHIVE SAP ABAP Report - Archiving additionals







ADDI_ARCHIVE 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 ADDI_ARCHIVE 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 ADDI_ARCHIVE. "Basic submit
SUBMIT ADDI_ARCHIVE AND RETURN. "Return to original report after report execution complete
SUBMIT ADDI_ARCHIVE 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: AKT_ID = Promotion
Selection Text: BEST_ID = Purchasing document
Selection Text: CRE_DATE = Date created
Selection Text: GMYEAR = Year of the goods movement
Selection Text: LIEF_ID = Delivery
Selection Text: MOD_DATE = Last changed on
Selection Text: REMARK = Comments for archiving
Selection Text: STATUS = Status of additional
Selection Text: TESTRUN = Deletion program in test mode
Selection Text: VBAK_ID = Sales document
Selection Text: WBEW_ID = Goods movement
Title: Archiving additionals
Text Symbol: 001 = Time selection criteria
Text Symbol: 002 = Status selection criteria
Text Symbol: 003 = Doc. numbers
Text Symbol: 004 = Various
Text Symbol: 010 = Sel. parameters


INCLUDES used within this REPORT ADDI_ARCHIVE

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 = testrun * create_archive_file = create object = c_arch_object comments = remark importing archive_handle = arch_handle exceptions internal_error = 01 object_not_found = 02 open_error = 03.

ARCHIVE_NEW_OBJECT call function 'ARCHIVE_NEW_OBJECT' exporting archive_handle = arch_handle * object_id = 'WTADDI'.

ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = arch_handle record = t_wtadab * RECORD_FLAGS = ' ' record_structure = 'WTADAB' exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.

ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = arch_handle record = t_wtadabt * RECORD_FLAGS = ' ' record_structure = 'WTADABT' exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.

ARCHIVE_SAVE_OBJECT call function 'ARCHIVE_SAVE_OBJECT' exporting archive_handle = arch_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_WRITE_STATISTICS call function 'ARCHIVE_WRITE_STATISTICS' exporting archive_handle = arch_handle * STATISTICS_ONLY_PER_RUN = ' ' exceptions internal_error = 1 others = 2.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting archive_handle = arch_handle exceptions internal_error = 01 wrong_access_to_archive = 02.



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