CA_SE16NCD_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 CA_SE16NCD_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: O_SDATE = Changed on
Selection Text: O_TAB = Changed Table
Selection Text: P_AR_ILM = D .
Selection Text: P_COMENT = D .
Selection Text: P_DELTST = D .
Selection Text: P_DEST = D .
Selection Text: P_PROT = D .
Selection Text: P_PROT_O = D .
Selection Text: P_SNAP = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_WRITST = D .
Title: Archiving Change Documents SE16N: Write Program
Text Symbol: 000 = Changed Table
Text Symbol: 002 = &1% (&2 of &3) of Data Processed
Text Symbol: 003 = Retention Per. End Reached
Text Symbol: 004 = Data for Destruction Archived
Text Symbol: 005 = Restrictions
Text Symbol: 010 = Data has been archived
No INCLUDES are used within this REPORT code!
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 call_delete_job_in_test_mode = p_deltst create_archive_file = p_wriprd object = 'CA_SE16NCD' comments = p_coment do_not_delete_data = l_not_delete destroy = l_destroy 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'.
ARCHIVE_NEW_OBJECT call function 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = lv_handle.
ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = lv_handle record = lw_se16n_cd_key record_structure = 'SE16N_CD_KEY'.
ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = lv_handle record_structure = 'SE16N_CD_DATA' TABLES table = lt_se16n_cd_data.
ARCHIVE_SAVE_OBJECT call function 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = lv_handle EXCEPTIONS termination_requested = 1 data_object_not_saved = 6.
ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = l_objnrastext i_msgtype = 2 i_msgid = 'KR' i_msgno = '343' 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 = l_objnrastext 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_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = l_objnrastext i_msgtype = 1 i_text = lf_text.
ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = l_objnrastext i_text = 'Data was archived'(010) "#EC * "text shall be understandable for EN-speaking coleagues i_msgtype = 1.
PROGRESS_INDICATOR call function 'PROGRESS_INDICATOR' EXPORTING i_text = '&1% (&2 of &3) of the data processed'(002) "#EC * "text shall be understandable for EN-speaking coleagues i_processed = lv_objects_processed i_total = lv_total_of_objects IMPORTING e_progress_sent = lv_progress_send.
DB_COMMIT call function 'DB_COMMIT'. "otherwise messag will not appear in the job-log
PROGRESS_INDICATOR call function 'PROGRESS_INDICATOR' EXPORTING i_text = '&1% (&2 of &3) of the data processed'(002) "#EC * "text shall be understandable for EN-speaking coleagues i_processed = lv_objects_processed i_total = lv_total_of_objects i_output_immediately = 'X'. "force the progress output
ARCHIVE_WRITE_STATISTICS call function 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = lv_handle.
ARCHIVE_PROTOCOL_WRITE call function 'ARCHIVE_PROTOCOL_WRITE'.
call function 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = lv_handle.
ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_object_identifier i_msgtype = 2 i_msgid = 'BA' i_msgno = '701' i_msgv1 = fw_cd_key-id i_callback_parameter = lw_callback_param. "optional: for object and message details
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 CA_SE16NCD_WRI or its description.
CA_SE16NCD_WRI - Archiving Change Documents SE16N: Write Program CA_SE16NCD_WRI - Archiving Change Documents SE16N: Write Program CA_SE16NCD_DEL - Archiving Flights: Deletion Program (Example ADK Archiving) CA_SE16NCD_DEL - Archiving Flights: Deletion Program (Example ADK Archiving) CA_RULES_HISTORY_TOP_ALV - CARULESHISTORYTOPALV CA_RULES_HISTORY_TOP - CARULESHISTORYTOP