PP_BKFLUSH_WRI 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 PP_BKFLUSH_WRI 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_WERKS = D .
Selection Text: SO_VORNE = D .
Selection Text: SO_VERID = D .
Selection Text: SO_UNAME = D .
Selection Text: SO_STORN = D .
Selection Text: SO_PSPNR = D .
Selection Text: SO_PRTNR = D .
Selection Text: SO_PKPOS = D .
Selection Text: SO_PKNUM = D .
Selection Text: SO_MATNR = D .
Selection Text: SO_KDPOS = D .
Selection Text: SO_KDAUF = D .
Selection Text: SO_DATUM = D .
Selection Text: SO_BUDAT = D .
Selection Text: P_WRITST = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_SNAP = D .
Selection Text: P_PROT_O = D .
Selection Text: P_PROT = D .
Selection Text: P_DEST = D .
Selection Text: P_DELTST = D .
Selection Text: P_COMENT = D .
Selection Text: P_AR_ILM = D .
Selection Text: PA_RTP04 = D .
Selection Text: PA_RTP03 = D .
Selection Text: PA_RTP02 = D .
Selection Text: PA_RTP01 = D .
Title: Archiving Document Logs: Write Program
Text Symbol: N03 = Data has been archived.
Text Symbol: N02 = Data destruction
Text Symbol: N01 = Snapshot has been created.
Text Symbol: 027 = &1 of &2 Document Logs have been processed
Text Symbol: 026 = Document Logs
Text Symbol: 025 = Options
Text Symbol: 021 = Reading Document Logs
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_PROTOCOL_INIT call function 'ARCHIVE_PROTOCOL_INIT' exporting i_detailprotocol = p_prot i_protocol_output = p_prot_o.
PROGRESS_INDICATOR_APPL call function 'PROGRESS_INDICATOR_APPL' exporting i_text = text-021 i_output_immediately = abap_true importing e_progress_sent = lv_progress_sent.
DB_COMMIT call function 'DB_COMMIT'.
ARCHIVE_OPEN_FOR_WRITE call function 'ARCHIVE_OPEN_FOR_WRITE' exporting call_delete_job_in_test_mode = p_deltst create_archive_file = p_wriprd object = con_arch_object comments = p_coment do_not_delete_data = lv_not_delete destroy = lv_destroy output_sel_screen_when_dialog = space importing archive_handle = lv_handle exceptions internal_error = 1 object_not_found = 2 open_error = 3 not_authorized = 4.
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_PROTOCOL_WRITE call function 'ARCHIVE_PROTOCOL_WRITE'.
PROGRESS_INDICATOR_APPL call function 'PROGRESS_INDICATOR_APPL' exporting i_text = text-027 i_msgv1 = lv_processed i_msgv2 = lv_numrecs i_processed = lv_processed i_total = lv_numrecs importing e_progress_sent = lv_progress_sent.
DB_COMMIT call function 'DB_COMMIT'.
ARCHIVE_NEW_OBJECT call function 'ARCHIVE_NEW_OBJECT' exporting archive_handle = lv_handle object_id = ls_object_id.
ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = lv_handle record =
"record_flags = k_str_delete record_structure = 'BLPK' exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.
ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = lv_handle record =
"record_flags = k_str_delete record_structure = 'AFWIS' exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.
ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = lv_handle record =
"record_flags = k_str_delete record_structure = 'BLPP' exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.
ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = lv_handle record =
"record_flags = k_str_delete record_structure = 'MKPF' exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.
ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = lv_handle record =
"record_flags = k_str_delete record_structure = 'MSEG' exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.
ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = lv_handle record =
"record_flags = k_str_delete record_structure = 'AFRU' exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.
ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = lv_handle record =
"record_flags = k_str_delete record_structure = 'AFFW' exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.
ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = lv_handle record =
"record_flags = k_str_delete record_structure = 'PZPE' exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.
ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = lv_handle record =
"record_flags = k_str_delete record_structure = 'CEZP' exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.
call function 'ARCHIVE_SAVE_OBJECT' exporting archive_handle = lv_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 = ls_object_id-objid i_msgtype = lv_msgty 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 = ls_object_id-objid i_msgtype = 1 i_text = lv_text.
PROGRESS_INDICATOR_APPL call function 'PROGRESS_INDICATOR_APPL' exporting i_text = text-027 i_msgv1 = lv_processed i_msgv2 = lv_numrecs i_processed = lv_processed i_total = lv_numrecs i_output_immediately = abap_true.
ARCHIVE_WRITE_STATISTICS call function 'ARCHIVE_WRITE_STATISTICS' exporting archive_handle = lv_handle.
ARCHIVE_PROTOCOL_WRITE_APPL call function 'ARCHIVE_PROTOCOL_WRITE_APPL'.
ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting archive_handle = lv_handle.
ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = is_object_id-objid i_msgtype = sy-msgty i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.
RM_READ_MDBP call function 'RM_READ_MDBP' tables emdbp = ct_vmdbp matnr = so_matnr reptp = so_reptp werk = so_werks verid = so_verid budat = so_budat datum = so_datum kdauf = so_kdauf kdpos = so_kdpos pknum = so_pknum pkpos = so_pkpos obnum = lt_so_obnum storn = so_storn uname = so_uname vorne = so_vorne prtnr = so_prtnr * wakzh = * flkzh = * kapkzh = .
ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_msgtype = 1 i_msgid = 'RM' i_msgno = '721' i_msgv1 = '0'.
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 PP_BKFLUSH_WRI or its description.
PP_BKFLUSH_WRI - Archiving Document Logs: Write Program PP_BKFLUSH_WRI - Archiving Document Logs: Write Program PP_ABSPLAN_ZEITPUNKTE_CHECKF01 - PPABSPLANZEITPUNKTECHECKF01 PPTSTDB_MACROS - Include PPTSTDB_MACROS PPT024F - XPRA for reorganization of production scheduler table (T024F) PPT024F - XPRA for reorganization of production scheduler table (T024F)