RTPMARCHIVE_WRITE 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 RTPMARCHIVE_WRITE into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: SO_AT_S1 = D .
Selection Text: SO_AT_M3 = D .
Selection Text: SO_AT_M2 = D .
Selection Text: SO_AT_M1 = D .
Selection Text: SO_AT_L3 = D .
Selection Text: SO_AT_L2 = D .
Selection Text: SO_AT_L1 = D .
Selection Text: SO_ASS = D .
Selection Text: SO_AKTIV = D .
Selection Text: SO_ACGRP = D .
Selection Text: P_WRITST = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_SNAP = D .
Selection Text: P_SEC_DU = D .
Selection Text: P_SEC = D .
Selection Text: P_PROT_O = D .
Selection Text: P_PROT = D .
Selection Text: P_POS = D .
Selection Text: P_LOA = D .
Selection Text: P_KEYDAT = End Date of Retention Period
Selection Text: P_INCL = D .
Selection Text: P_DEST = D .
Selection Text: P_DELTST = D .
Selection Text: P_DEA = D .
Selection Text: P_COMENT = D .
Selection Text: P_AR_ILM = D .
Selection Text: P_ANALYZ = D .
Selection Text: SO_VORG = D .
Selection Text: SO_VCLS = D .
Selection Text: SO_VAREA = D .
Selection Text: SO_TTYPE = D .
Selection Text: SO_TID = D .
Selection Text: SO_SECAC = D .
Selection Text: SO_RANLP = D .
Selection Text: SO_RANL = D .
Selection Text: SO_PT = D .
Selection Text: SO_POSAC = D .
Selection Text: SO_PORTF = D .
INCLUDE ITPM_POSITION_SELECTION.
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_PROTOCOL_LINE_DETAIL CALL FUNCTION 'ARCHIVE_PROTOCOL_LINE_DETAIL'.
ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_prot i_protocol_output = p_prot_o.
ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING * TODO: Check this flag call_delete_job_in_test_mode = p_deltst create_archive_file = l_var_create_file object = con_arch_object comments = p_coment do_not_delete_data = ' ' output_sel_screen_when_dialog = space IMPORTING archive_handle = l_handle_archive EXCEPTIONS internal_error = 1 object_not_found = 2 open_error = 3 not_authorized = 4 error_message = 5 OTHERS = 5.
GET_POSITIONS_BY_DIFF_REP CALL FUNCTION 'GET_POSITIONS_BY_DIFF_REP' EXPORTING im_rng_bukrs = so_bukrs[] im_rng_varea = so_varea[] im_rng_vcls = so_vcls[] im_rng_pt = so_pt[] im_rng_ranl = so_ranl[] im_rng_ranlp = so_ranlp[] im_rng_loanr = so_loanr[] im_rng_posac = so_posac[] im_rng_secac = so_secac[] im_rng_acgrp = so_acgrp[] im_rng_portf = so_portf[] im_rng_long_short = so_flgsh[] * im_rng_ltf = so_ltf[] * im_rng_lot = so_lot[] * im_rng_fund = so_fund[] * im_rng_grant = so_grant[] * im_tab_otc_deal = l_tab_otc_deal im_flg_use_table4otc = tpmco_xfalse im_flg_sec = p_sec im_flg_loa = p_loa im_flg_pos = p_pos im_flg_dea = p_dea im_rng_dealnr = so_otcnr[] IMPORTING ex_tab_position = lt_trl_position.
ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = l_handle_archive object_id = l_oid EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.
ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = l_handle_archive.
ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = l_handle_archive.
ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = l_handle_archive EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 error_message = 4 OTHERS = 3.
CALCULATE_HASH_FOR_RAW CALL FUNCTION 'CALCULATE_HASH_FOR_RAW' EXPORTING * ALG = 'SHA1' data = l_buffer * LENGTH = 0 IMPORTING * hashstring = l_key hashb64string = l_key EXCEPTIONS OTHERS = 4.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = ls_object i_text = lv_text i_msgtype = lv_msgtype i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4 EXCEPTIONS protocol_not_yet_initialized = 1 OTHERS = 2.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = ls_temp_protocol-object i_text = ls_temp_protocol-text i_msgtype = ls_temp_protocol-msgtype i_callback_parameter = ls_temp_protocol-callback_parameter EXCEPTIONS protocol_not_yet_initialized = 1 OTHERS = 2.
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 RTPMARCHIVE_WRITE or its description.
RTPMARCHIVE_WRITE - Archiving Treasury Positions: Write Program RTPMARCHIVE_WRITE - Archiving Treasury Positions: Write Program RTPMARCHIVE_RELOAD - Archiving TRM-TM Positions: Reload Program RTPMARCHIVE_RELOAD - Archiving TRM-TM Positions: Reload Program RTPMARCHIVE_READ_TOP - Include RTMARCHIVE_READ_TOP RTPMARCHIVE_READ_SEL - Include RTPMARCHIVE_READ_SEL