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

RSARCH_TEMPLATE_IPRO_WRITE SAP ABAP INCLUDE - Archive InfoProvider: template for write program







RSARCH_TEMPLATE_IPRO_WRITE 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_WRITE 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_WRITE. "Basic submit
SUBMIT RSARCH_TEMPLATE_IPRO_WRITE AND RETURN. "Return to original report after report execution complete
SUBMIT RSARCH_TEMPLATE_IPRO_WRITE 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 write program


INCLUDES used within this REPORT RSARCH_TEMPLATE_IPRO_WRITE

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.

RSARCH_CALSHIFT_INIT CALL FUNCTION 'RSARCH_CALSHIFT_INIT' EXPORTING i_chanm = '\l_s_timopt-iobjnm\' IMPORTING e_def_shift_unit = p_shunit e_def_shift_unit_text = p_shuntx e_def_round_unit = p_rounit e_def_round_unit_text = p_rountx.

SELECT_OPTIONS_RESTRICT CALL FUNCTION 'SELECT_OPTIONS_RESTRICT' EXPORTING restriction = g_sx_restrict.

RSARCH_CALSHIFT_GET_UNIT_TEXT CALL FUNCTION 'RSARCH_CALSHIFT_GET_UNIT_TEXT' EXPORTING i_unit = p_shunit IMPORTING e_unit_text = p_shuntx.

RSARCH_CALSHIFT_GET_UNIT_TEXT CALL FUNCTION 'RSARCH_CALSHIFT_GET_UNIT_TEXT' EXPORTING i_unit = p_rounit IMPORTING e_unit_text = p_rountx.

RSARCH_GET_CURR_TIME_SELECTION CALL FUNCTION 'RSARCH_GET_CURR_TIME_SELECTION' EXPORTING i_date = sy-datum i_shift = p_shift i_period = p_period i_shift_unit = p_shunit i_round_unit = p_rounit i_fiscvarnt = p_fiscva i_option = g_option IMPORTING e_rt_\l_s_timopt-chabasnm\ = \l_s_timopt-soptnm\[].

RSARCH_CALSHIFT_UNIT_F4 CALL FUNCTION 'RSARCH_CALSHIFT_UNIT_F4' EXPORTING i_round_flag = rs_c_false i_dynprog = g_repid i_dynpnr = g_dynnr i_dynprofield = 'P_0000ST' CHANGING c_unit = p_shunit c_unit_text = p_shuntx.

RSARCH_CALSHIFT_UNIT_F4 CALL FUNCTION 'RSARCH_CALSHIFT_UNIT_F4' EXPORTING i_round_flag = rs_c_true i_dynprog = g_repid i_dynpnr = g_dynnr i_dynprofield = 'P_ROUNTX' CHANGING c_unit = p_rounit c_unit_text = p_rountx.

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

RSARCH_GET_CURR_TIME_SELECTION CALL FUNCTION 'RSARCH_GET_CURR_TIME_SELECTION' EXPORTING i_date = sy-datum i_shift = p_shift i_period = p_period i_shift_unit = p_shunit i_round_unit = p_rounit i_fiscvarnt = p_fiscva i_option = g_option i_rt_\-chabasnm\ = \-soptnm\[] IMPORTING e_rt_\-chabasnm\ = \-soptnm\[].

ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING object = c_arch_obj comments = p_comm create_archive_file = g_create_archive_file call_delete_job_in_test_mode = g_delete_in_test_mode IMPORTING archive_handle = g_archive_handle.

ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = g_archive_handle IMPORTING archive_document = g_archive_document.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

RSDRI_INFOPROV_READ CALL FUNCTION 'RSDRI_INFOPROV_READ' EXPORTING i_infoprov = c_infoprov i_th_sfc = g_th_sfc i_th_sfk = g_th_sfk i_t_range = g_r_request->n_t_range i_packagesize = c_package_size * I_AUTHORITY_CHECK = RSDRC_C_AUTHCHK-READ i_use_aggregates = rs_c_false i_currency_conversion = rs_c_false "note 796026 i_use_db_aggregation = rs_c_false * I_DEBUG = RS_C_FALSE i_rollup_only = rs_c_false IMPORTING e_t_data = g_t_data e_end_of_data = g_end_of_data CHANGING c_first_call = g_first_call.

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_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = g_archive_handle.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_archive_handle record_structure = c_record_structure TABLES table = g_t_data_arch.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = g_archive_handle IMPORTING object_offset = g_object_offset archive_name = l_archive_name EXCEPTIONS termination_requested = 1 open_error = 2 file_io_error = 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 RSARCH_TEMPLATE_IPRO_WRITE or its description.