SAP Reports / Programs | SAP Business Information Warehouse | Warehouse Management | Data Staging(BW-WHM-DST) SAP BW

RSARCH_TEMPLATE_IPRO_DELETE SAP ABAP INCLUDE - Archive InfoProvider: template for delete program







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


Text pool values


Title: Archive InfoProvider: template for delete program


INCLUDES used within this REPORT RSARCH_TEMPLATE_IPRO_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:

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

RSSM_SLEEP_DEBUG CALL FUNCTION 'RSSM_SLEEP_DEBUG' EXPORTING i_seconds = 15.

GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING mode = 'CURRENT' no_dialog = rs_c_true IMPORTING out_archive_parameters = g_s_archive_parameters out_parameters = g_s_out_parameters valid = g_valid.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

RSENQ_ENQUEUE CALL FUNCTION 'RSENQ_ENQUEUE' EXPORTING i_action = rsenq_c_archive_datatarget i_t_object = g_t_object i_t_subobject = g_t_subobject IMPORTING e_lockid = g_lockid CHANGING c_t_msg = g_t_msg EXCEPTIONS locked = 1.

RSDRD_SEL_DELETION CALL FUNCTION 'RSDRD_SEL_DELETION' EXPORTING i_datatarget = c_infoprov i_thx_sel = g_thx_sel i_authority_check = rs_c_false i_threshold = '0.1'

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = c_arch_obj archive_name = test_mode = p_test aindflag = rs_c_false IMPORTING archive_handle = g_archive_handle EXCEPTIONS file_already_open = 1 file_io_error = 2 internal_error = 3 no_files_available = 4 open_error = 5 not_authorized = 6.

ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = g_archive_handle TABLES table = g_t_statistics.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = g_archive_handle.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = g_archive_handle.

RSENQ_DEQUEUE CALL FUNCTION 'RSENQ_DEQUEUE' EXPORTING i_lockid = g_lockid.

ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = c_arch_obj test_mode = rs_c_true * AINDFLAG = 'X' IMPORTING archive_handle = l_archive_handle TABLES selected_files = l_t_files 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_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = l_archive_handle IMPORTING archive_document = l_archive_document.

RSARCH_ADK_ADMIN_SET_STATUS CALL FUNCTION 'RSARCH_ADK_ADMIN_SET_STATUS' EXPORTING i_document = l_archive_document i_archiv_key = -archiv_key i_deleting = rs_c_false.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = l_archive_handle EXCEPTIONS end_of_file = 1.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = l_archive_handle record_structure = c_record_structure all_records_of_object = rs_c_true TABLES table = l_t_data.

ARCHIVE_GIVE_STATISTICS





CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = l_archive_handle TABLES table = l_t_statistics.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = l_archive_handle statistics_only_per_file = rs_c_true.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = l_archive_handle.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.



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