SAP Reports / Programs | Materials Management | Inventory Management | Excise Duty(MM-IM-ED) SAP MM

/BEV2/ED_ARC_MD_DELETE SAP ABAP Report - Excise Duty: Deletion Program for Archiving the Document Table







/BEV2/ED_ARC_MD_DELETE 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 /BEV2/ED_ARC_MD_DELETE 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 /BEV2/ED_ARC_MD_DELETE. "Basic submit
SUBMIT /BEV2/ED_ARC_MD_DELETE AND RETURN. "Return to original report after report execution complete
SUBMIT /BEV2/ED_ARC_MD_DELETE 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_TEST = Test Run
Title: Excise Duty: Deletion Program for Archiving the Document Table


INCLUDES used within this REPORT /BEV2/ED_ARC_MD_DELETE

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:

/BEV2/ED_CHK_AUTH_REPS CALL FUNCTION '/BEV2/ED_CHK_AUTH_REPS' EXPORTING * I_PROGRAM = i_tcode = '/BEV2/EDARCMDSAVE' i_action = '24' EXCEPTIONS access_denied = 1 tcode_not_assigned = 2 missing_parameter = 3 OTHERS = 4.

ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING archive_name = p_archiv object = c_arc_object IMPORTING archive_handle = gv_read_handel 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_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = c_arc_object IMPORTING commit_count_for_delete_prg = gv_commit_count maintain_index = gv_arch_index_flag EXCEPTIONS object_not_found = 1 OTHERS = 2.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = gv_read_handel IMPORTING object_id = gv_object_id object_offset = gv_object_offset archive_name = gv_archive_name 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 = gv_read_handel IMPORTING * record = gv_line record_structure = gv_tabname record_ref = buffer_ref " Unicode EXCEPTIONS end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 OTHERS = 4.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = gv_read_handel TABLES table = gt_arch_stat EXCEPTIONS internal_error = 1 OTHERS = 2.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = gv_read_handel EXCEPTIONS internal_error = 1 OTHERS = 2.

ARCHIVE_GET_ARCHIVE_FILES CALL FUNCTION 'ARCHIVE_GET_ARCHIVE_FILES' EXPORTING archive_handle = gv_read_handel TABLES archive_files = gt_arch_files EXCEPTIONS wrong_access_to_archive = 1 internal_error = 2 OTHERS = 3.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = gv_read_handel EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.

ARCHIVE_ADMIN_SET_STATUS CALL FUNCTION 'ARCHIVE_ADMIN_SET_STATUS' EXPORTING files_are_converted = false index_created = true TABLES archive_files = gt_arch_files EXCEPTIONS cannot_change_status = 1 OTHERS = 2.



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 /BEV2/ED_ARC_MD_DELETE or its description.