SAP Reports / Programs

CORUCOFC SAP ABAP Report - Postprocessing of Confirmations with Errors in Calc. of Actual Costs







CORUCOFC 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 CORUCOFC into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

COFC - Reprocessing Errors Actual Costs


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 CORUCOFC. "Basic submit
SUBMIT CORUCOFC AND RETURN. "Return to original report after report execution complete
SUBMIT CORUCOFC VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: P_OLD = List Display
Selection Text: P_MAXROW = Maximum Selected Lines
Selection Text: P_DISPLY = Display Mode
Selection Text: PARUECK = Confirmation
Selection Text: PARMZHL = Confirmation Counter
Selection Text: PAERTIM = Time of Entry
Selection Text: PAERSDA = Date of Entry
Selection Text: PAERNAM = Confirmation Entered By
Selection Text: PAAUTYP = Order Category
Selection Text: PAAUFNR = Order
Title: Postprocessing of Confirmations with Errors in Calc. of Actual Costs
Text Symbol: C53 = Cancel
Text Symbol: C52 = Exit
Text Symbol: C51 = Back
Text Symbol: C32 = Deselect All
Text Symbol: C31 = Select All
Text Symbol: C23 = Display Work Center
Text Symbol: C22 = Display Confirmation
Text Symbol: C21 = Display Order
Text Symbol: C12 = Refresh
Text Symbol: C11 = Display Errors
Text Symbol: C04 = Delete
Text Symbol: C03 = Save for Background
Text Symbol: C02 = Save
Text Symbol: C00 = * Function Texts for ALV Grid Context Menu *
Text Symbol: 010 = Error Records - Actual Cost Calculation: Display Mode
Text Symbol: 009 = Error Records - Actual Cost Calculation
Text Symbol: 008 = Transaction termination
Text Symbol: 007 = Do you really want to cancel?
Text Symbol: 006 = Do you really want to delete?
Text Symbol: 005 = Confirmation Prompt
Text Symbol: 004 = All selected error records are inevitably deleted
Text Symbol: 003 = Output Criteria
Text Symbol: 002 = Error Records Selection
Text Symbol: 001 = Order Confirm. Enterer Entry Date Time Cat.


INCLUDES used within this REPORT CORUCOFC

INCLUDE CORUCOFC_ALV.


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:

POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING diagnosetext1 = text-004 diagnosetext2 = l_tline textline1 = text-006 titel = text-005 IMPORTING answer = l_antwort. "#EC *

CO_RU_VB_AFRC_DELETE CALL FUNCTION 'CO_RU_VB_AFRC_DELETE' TABLES afrc_tab = lt_afrc_del EXCEPTIONS OTHERS = 1.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_repid i_callback_pf_status_set = g_status_set i_callback_user_command = g_user_command i_structure_name = 'AFRC_S_ALV' is_layout = gs_layout it_fieldcat = gt_fieldcat[] i_grid_title = g_title i_default = 'X' i_save = 'A' is_variant = gs_variant it_events = gt_events TABLES t_outtab = gt_afrc_alv EXCEPTIONS program_error = 1 OTHERS = 2.

CO_RU_DET_ARBPL CALL FUNCTION 'CO_RU_DET_ARBPL' EXPORTING arbid_imp = ls_afrud-arbid sttag_imp = ls_afrud-budat werks_imp = ls_afrud-werks IMPORTING rcr01_exp = ls_rcr01.

POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING diagnosetext1 = text-008 diagnosetext2 = l_tline textline1 = text-007 titel = text-005 IMPORTING answer = l_antwort.

MD_CREATE_SORT CALL FUNCTION 'MD_CREATE_SORT' EXPORTING esname = 'AFRCB' ebuild = flg_sort IMPORTING ipname = tmp_pname ifcode = tmp_fcode TABLES sortx = sortx.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_repid i_callback_pf_status_set = g_status_set i_callback_user_command = g_user_command i_structure_name = 'AFRC_S_ALV' is_layout = gs_layout it_fieldcat = gt_fieldcat[] i_grid_title = g_title i_default = 'X' i_save = 'A' is_variant = gs_variant it_events = gt_events TABLES t_outtab = gt_afrc_alv EXCEPTIONS program_error = 1 OTHERS = 2.

CM_F_INITIALIZE CALL FUNCTION 'CM_F_INITIALIZE' EXPORTING aplid = aplid_ppru EXCEPTIONS message_type_not_valid = 1 unknown_aplid = 2 unknown_object_id = 3 OTHERS = 4.

CM_F_LOAD CALL FUNCTION 'CM_F_LOAD' EXPORTING cmf_nr = afrc_tab-cmfnr EXCEPTIONS not_active = 1 protocol_not_found = 2 wrong_object_id = 3 OTHERS = 4.

CK_F_COSTING_PROTOCOL CALL FUNCTION 'CK_F_COSTING_PROTOCOL' EXPORTING protocol = yx aplid = aplid_ppru EXCEPTIONS no_protocol = 0 errors_found = 0.

CM_F_INITIALIZE CALL FUNCTION 'CM_F_INITIALIZE' EXPORTING aplid = aplid_ppru EXCEPTIONS message_type_not_valid = 1 unknown_aplid = 2 unknown_object_id = 3 OTHERS = 4.

CM_F_LOAD CALL FUNCTION 'CM_F_LOAD' EXPORTING cmf_nr = gt_afrc_alv-cmfnr EXCEPTIONS not_active = 1 protocol_not_found = 2 wrong_object_id = 3 OTHERS = 4.

CK_F_COSTING_PROTOCOL CALL FUNCTION 'CK_F_COSTING_PROTOCOL' EXPORTING protocol = yx aplid = aplid_ppru EXCEPTIONS no_protocol = 0 errors_found = 0.

ENQUEUE_ESAFRU CALL FUNCTION 'ENQUEUE_ESAFRU' EXPORTING rueck = tmp_afrp3_tab-rueck rmzhl = tmp_afrp3_tab-rmzhl EXCEPTIONS OTHERS = 1.

CO_RB_POST_ACTUAL_COSTS CALL FUNCTION 'CO_RB_POST_ACTUAL_COSTS' EXPORTING failed_costs = yx TABLES afrp3_bt = tmp_afrp3_tab prot_tab = tmp_afrc_tab EXCEPTIONS OTHERS = 0.

ENQUEUE_ESAFRU CALL FUNCTION 'ENQUEUE_ESAFRU' EXPORTING rueck = lt_afrp3-rueck rmzhl = lt_afrp3-rmzhl EXCEPTIONS OTHERS = 1.

CO_RB_POST_ACTUAL_COSTS CALL FUNCTION 'CO_RB_POST_ACTUAL_COSTS' EXPORTING failed_costs = yx TABLES afrp3_bt = lt_afrp3 prot_tab = lt_afrc EXCEPTIONS OTHERS = 0.

CM_F_DELETE_LOG_ON_DB CALL FUNCTION 'CM_F_DELETE_LOG_ON_DB' EXPORTING aplid = 'PPRU' cmf_nr = lt_afrc-cmfnr EXCEPTIONS OTHERS = 0.



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 CORUCOFC or its description.