CO_TOTAL_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 CO_TOTAL_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: BISJA = To Fiscal Year
Selection Text: P_AR_ILM = D .
Selection Text: WRTTPCAT = Value Types
Selection Text: GROUP = D .
Selection Text: KOKRS = D .
Selection Text: OBART = 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: Archive CO Totals Records: Write Program
Text Symbol: 020 = Restrictions
Text Symbol: 310 = CO Totals Records
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_OPEN_FOR_WRITE call function 'ARCHIVE_OPEN_FOR_WRITE' exporting call_delete_job_in_test_mode = l_delete_in_test create_archive_file = l_create_file object = 'CO_TOTAL' comments = u_comments output_sel_screen_when_dialog = space do_not_delete_data = l_not_delete destroy = l_destroy importing archive_handle = r_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'.
DB_COMMIT call function 'DB_COMMIT'.
K_WRTTP_DETERMINE call function 'K_WRTTP_DETERMINE' exporting i_plan = 'X' tables ra_wrttp = rt_range_wrttp.
ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = v_handle record_structure = v_tabname tables table = t_data.
ARCHIVE_WRITE_STATISTICS call function 'ARCHIVE_WRITE_STATISTICS' exporting archive_handle = v_handle.
ARCHIVE_PROTOCOL_WRITE call function 'ARCHIVE_PROTOCOL_WRITE'.
ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting archive_handle = v_handle.
K_WRTTP_DETERMINE call function 'K_WRTTP_DETERMINE' exporting i_plan = 'X' tables ra_wrttp = s_wrttp_plan.
OBJECT_IDENTIFICATION_GET call function 'OBJECT_IDENTIFICATION_GET' exporting objnr = v_objnr importing e_text = l_text ident_objid = l_objid.
ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = v_handle record = l_coit_text record_structure = 'COIT_TEXT'.
ARCHIVE_PROTOCOL_INIT call function 'ARCHIVE_PROTOCOL_INIT' exporting i_detailprotocol = v_prot.
ENQUEUE_E_TABLE call function 'ENQUEUE_E_TABLE' exporting tabname = 'KAPS' varkey = l_varkey.
K_DATE_TO_PERIOD_CONVERT call function 'K_DATE_TO_PERIOD_CONVERT' exporting i_date = sy-datlo i_kokrs =
importing e_gjahr = l_act_gjahr.
DYNP_VALUES_READ call function 'DYNP_VALUES_READ' exporting dyname = 'CO_TOTAL_WRI' dynumb = '1000' translate_to_upper = 'X' tables dynpfields = lt_dynpread.
K_GROUP_SELECT call function 'K_GROUP_SELECT' exporting table = 'CCSS' field_name = 'KOSTL' set = l_group kokrs = l_kokrs importing set_name = l_group setid = l_setnr exceptions no_set_picked = 1.
G_SET_GET_INFO call function 'G_SET_GET_INFO' exporting setname = l_setnr importing info = l_setinfo exceptions others = 1.
call function 'DYNP_VALUES_UPDATE' exporting dyname = 'CO_TOTAL_WRI' dynumb = '1000' tables dynpfields = lt_dynpread.
K_WRTTP_DETERMINE call function 'K_WRTTP_DETERMINE' exporting i_actual = l_actual i_plan = l_plan tables ra_wrttp = lr_wrttp.
ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = v_handle record =
record_structure = 'COKP'.
ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = v_handle record =
record_structure = v_tabname.
K_UNITCOST_ARCHIVE_OBJECT call function 'K_UNITCOST_ARCHIVE_OBJECT' exporting i_archive_handle = v_handle i_rk70f = l_rk70f i_bzobj = '2'.
TEXT_ARCHIVE_OBJECT call function 'TEXT_ARCHIVE_OBJECT' exporting archive_handle = v_handle id = l_tdid language = '*' name = l_tdname object = 'CCSS'.
K_CREATE_COSPA_TXTKEY call function 'K_CREATE_COSPA_TXTKEY' exporting i_cospa_txtkey = l_cospa_txtkey importing e_tdname = r_tdname.
OBJECT_KEY_GET_KL call function 'OBJECT_KEY_GET_KL' exporting objnr =
importing kostl = l_cossa_txtkey-skost lstar = l_cossa_txtkey-slsta.
K_CREATE_COSSA_TXTKEY call function 'K_CREATE_COSSA_TXTKEY' exporting i_cossa_txtkey = l_cossa_txtkey importing e_tdname = r_tdname.
ARCHIVE_SAVE_OBJECT call function 'ARCHIVE_SAVE_OBJECT' exporting archive_handle = v_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 = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.
ARCHIVE_NEW_OBJECT call function 'ARCHIVE_NEW_OBJECT' exporting archive_handle = v_handle.
ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = l_objnrastext i_msgtype = v_msgtype i_msgid = 'KR' i_msgno = v_msgno.
CONVERSION_EXIT_OBJNR_OUTPUT call function 'CONVERSION_EXIT_OBJNR_OUTPUT' exporting input = v_objnr importing output = r_text.
G_SET_GET_ALL_VALUES call function 'G_SET_GET_ALL_VALUES' exporting setnr = im_group tables set_values = lt_rgsb4 exceptions set_not_found = 1.
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 CO_TOTAL_WRI or its description.
CO_TOTAL_WRI - Archive CO Totals Records: Write Program CO_TOTAL_WRI - Archive CO Totals Records: Write Program CO_TOTAL_DEL - Archiving CO Totals Records: Delete Program CO_TOTAL_DEL - Archiving CO Totals Records: Delete Program CO_SURCHARGE_RATES_ICD - Transport of Accrual Overhead Rates CO_SURCHARGE_RATES_ICD - Transport of Accrual Overhead Rates