SAP Reports / Programs | Logistics - General | Logistics Basic Data | Assortment Maintenance(LO-MD-RA-MT) SAP LO

WSARCH10 SAP ABAP INCLUDE - Part 1 of the archiving routines







WSARCH10 is a standard ABAP INCLUDE 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 WSARCH10 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 WSARCH10. "Basic submit
SUBMIT WSARCH10 AND RETURN. "Return to original report after report execution complete
SUBMIT WSARCH10 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Part 1 of the archiving routines


INCLUDES used within this REPORT WSARCH10

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:

RKZ_OPEN_SEQ_FILE call function 'RKZ_OPEN_SEQ_FILE' exporting name = dsn option = option exceptions eof = 4 invalid_option = 8 no_sioc_file = 12 open_2 = 16 open_error = 20.

RKZ_CLOSE_SEQ_FILE call function 'RKZ_CLOSE_SEQ_FILE'.

ENQUEUE_EFTR01 call function 'ENQUEUE_EFTR01' exporting appli = tr01-appli objct = tr01-objct exceptions foreign_lock = 1 system_failure = 2.

ARCHIVE_OPEN_FOR_WRITE call function 'ARCHIVE_OPEN_FOR_WRITE' exporting call_delete_job_in_test_mode = delete_in_test_mode create_archive_file = create_archive object = arch_object_sp_stock comments = comment do_not_delete_data = l_not_delete destroy = l_destroy output_sel_screen_when_dialog = ' ' importing archive_handle = arch_handle exceptions internal_error = 1 object_not_found = 2 open_error = 3 not_authorized = 4 others = 5.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_msgtype = 2 i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting archive_handle = arch_handle exceptions internal_error = 1 wrong_access_to_archive = 2 others = 3.

SUBMIT_DEL_REPORT * CALL FUNCTION 'SUBMIT_DEL_REPORT' * EXPORTING * DEL_REPORT = DEL_REPORT * DEL_VARIANT = DEL_VARIANT * EXCEPTIONS * OTHERS = 0.

ARCHIVE_WRITE_STATISTICS call function 'ARCHIVE_WRITE_STATISTICS' exporting archive_handle = arch_handle * STATISTICS_ONLY_PER_RUN = 'X' exceptions internal_error = 1 others = 2.

ARCHIVE_NEW_OBJECT call function 'ARCHIVE_NEW_OBJECT' exporting archive_handle = arch_handle object_id = idx_key exceptions internal_error = 1 wrong_access_to_archive = 2 others = 3.

ARCHIVE_SAVE_OBJECT call function 'ARCHIVE_SAVE_OBJECT' exporting archive_handle = arch_handle exceptions file_io_error = 1 internal_error = 2 open_error = 3 termination_requested = 4 wrong_access_to_archive = 5 data_object_not_saved = 6 others = 7.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = record_to_delete-matnr i_msgtype = 2 i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = record_to_delete-matnr i_msgtype = 1 i_text = lf_text.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = record_to_delete-matnr i_msgtype = 1 i_text = lf_text.

ARCHIVE_PROTOCOL_COLLECT * call function 'ARCHIVE_PROTOCOL_COLLECT' * exporting * i_object = record_to_delete-matnr * i_msgtype = 1 * i_text = lf_text.

ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = arch_handle record = arch_record record_flags = arch_flags record_structure = arch_table exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.

CHANGEDOCU_ARCHIVE_OBJECT call function 'CHANGEDOCU_ARCHIVE_OBJECT' exporting archive_handle = arch_handle * CLIENT = SY-MANDT objectclass = object_class objectid = object_id * OBJECT_DELETE_FLAG = 'X' exceptions wrong_access_to_archive = 1 others = 2.

ARCHIVE_OPEN_FOR_READ call function 'ARCHIVE_OPEN_FOR_READ' exporting * ARCHIVE_DOCUMENT = '000000' * ARCHIVE_NAME = ' ' object = arch_object_sp_stock importing archive_handle = arch_handle 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.

ARCHIVE_GET_NEXT_OBJECT call function 'ARCHIVE_GET_NEXT_OBJECT' exporting archive_handle = arch_handle exceptions end_of_file = 1 file_io_error = 2 internal_error = 3 open_error = 4 wrong_access_to_archive = 5 others = 6.

ARCHIVE_GET_NEXT_RECORD





call function 'ARCHIVE_GET_NEXT_RECORD' exporting archive_handle = arch_handle importing * record = buffer-segment "Unicode * record_cursor = record_flags = buffer-flags record_structure = buffer-rname * record_length = record_ref = buffer_ref exceptions end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 others = 4.

ARCHIVE_GET_INFORMATION call function 'ARCHIVE_GET_INFORMATION' exporting archive_handle = arch_handle importing archive_creation_date = arch_date archive_creation_release = arch_release archive_creation_system = arch_system archive_document = arch_document archive_name = arch_name object = arch_object * archive_code_page = * archive_number_format = exceptions internal_error = 1 wrong_access_to_archive = 2 others = 3.

ARCHIVE_GET_CUSTOMIZING_DATA call function 'ARCHIVE_GET_CUSTOMIZING_DATA' exporting object = arch_object_sp_stock importing commit_count_for_delete_prg = cust_commit_count * maintain_index = exceptions object_not_found = 1 others = 2.

ARCHIVE_OPEN_FOR_DELETE call function 'ARCHIVE_OPEN_FOR_DELETE' exporting * ARCHIVE_NAME = ' ' archive_name = archive_name " TC 31.03.00

ARCHIVE_GET_INFORMATION call function 'ARCHIVE_GET_INFORMATION' exporting archive_handle = arch_handle importing archive_name = arch_name1 exceptions internal_error = 1 wrong_access_to_archive = 2 others = 3.

ARCHIVE_DELETE_OBJECT_DATA call function 'ARCHIVE_DELETE_OBJECT_DATA' exporting archive_handle = arch_handle exceptions internal_error = 1 wrong_access_to_archive = 2 others = 3.

ARCHIVE_GIVE_STATISTICS call function 'ARCHIVE_GIVE_STATISTICS' exporting archive_handle = arch_handle tables table = arch_stat exceptions internal_error = 1 wrong_access_to_archive = 2 others = 3.



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