RMAFRU00 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Reprocessing incorrect confirmations You can use this report to reprocess incorrect confirmations that, for example, were transferred from a PDC system or were entered with the help of the Cross-Application Time Sheet (CATS)...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter RMAFRU00 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: HERKUNFT = Origin
Title: Postprocessing Incorrect Confirmations
Text Symbol: C23 = Cancel
Text Symbol: C22 = Exit
Text Symbol: C21 = Back
Text Symbol: C12 = Deselect All
Text Symbol: C11 = Select All
Text Symbol: C06 = Display Errors
Text Symbol: C05 = Delete
Text Symbol: C04 = Delete Pool
Text Symbol: C03 = Choose
Text Symbol: C02 = Actual Data/Details
Text Symbol: C01 = Save
Text Symbol: C00 = * Function Texts for ALV Grid Context Menu *
Text Symbol: 101 = >.......+.........10........+.........20........+.........30.........+........40........+.........50
Text Symbol: 100 = >...+....1....+....2....+....3....+....4....+....5
Text Symbol: 016 = Marked for Deletion
Text Symbol: 015 = Kanban with Identification No.
Text Symbol: 014 = List of Incorrect Kanban Confirmations
Text Symbol: 013 = Pool of Incorrect Confirmations
Text Symbol: 012 = Do you want to save the changes?
Text Symbol: 011 = Confirmations were processed
Text Symbol: 007 = Kanban ID CtrlCyc Itm Qty RTp Date Time
Text Symbol: 006 = Do you really want to delete?
Text Symbol: 005 = Order
Text Symbol: 004 = Delete Error Record for
Text Symbol: 003 = Confirmation Prompt
Text Symbol: 002 = Order Seq. Op. SbOp.CCa Spl RTp Date Time Plnt WrkCenter
Text Symbol: 001 = Individual Records (Pool)
INCLUDE LCOKOTYP.
INCLUDE LCORSART.
INCLUDE LCORPHER.
INCLUDE LCORUFS3.
No SAP DATABASE tables are accessed within this REPORT code!
DELETE_CONFIRMATION_RESERVE CALL FUNCTION 'DELETE_CONFIRMATION_RESERVE' EXPORTING afori_imp = afrh_tab-afori afruv_imp = afrh_tab-afruv no_dialog = yx.
POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING diagnosetext1 = text-011 textline1 = text-012 titel = text-003 IMPORTING answer = antwort. "#EC *
DELETE_CONFIRMATION_RESERVE CALL FUNCTION 'DELETE_CONFIRMATION_RESERVE' EXPORTING afori_imp = herkunft afruv_imp = afrh-afruv.
CO_RP_RESET_FLG_UPD CALL FUNCTION 'CO_RP_RESET_FLG_UPD'.
READ_CONFIRMATION_RESERVE CALL FUNCTION 'READ_CONFIRMATION_RESERVE' EXPORTING afori_imp = herkunft afruv_imp = afrh-afruv rvall_imp = afru_wf-rvall rvclo_imp = afru_wf-rvclo rvope_imp = afru_wf-rvope IMPORTING afrh_exp = afrh TABLES afrv_tab = tmp_afrv EXCEPTIONS not_found = 01.
ENQUEUE_EAFRV CALL FUNCTION 'ENQUEUE_EAFRV' EXPORTING afori = tmp_afrv-afori afruv = tmp_afrv-afruv counter = tmp_afrv-counter EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.
POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING diagnosetext1 = text-004 diagnosetext2 = tmp_tline textline1 = text-006 titel = text-003 IMPORTING answer = antwort. "#EC *
CO_RU_CONFIRMATION CALL FUNCTION 'CO_RU_CONFIRMATION' EXPORTING delete_flg = yx rmzhl_imp = tmp_afrv-rmzhl rueck_imp = tmp_afrv-rueck.
POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING diagnosetext1 = text-004 diagnosetext2 = l_tline textline1 = text-006 titel = text-003 IMPORTING answer = antwort. "#EC *
DELETE_CONFIRMATION_RESERVE CALL FUNCTION 'DELETE_CONFIRMATION_RESERVE' EXPORTING afori_imp = herkunft afruv_imp = afrh-afruv.
DELETE_CONFIRMATION_RESERVE CALL FUNCTION 'DELETE_CONFIRMATION_RESERVE' EXPORTING afori_imp = gt_afrh_alv-afori afruv_imp = gt_afrh_alv-afruv no_dialog = yx.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = g_repid i_internal_tabname = 'GT_OUT_FC' i_inclname = g_repid CHANGING ct_fieldcat = gt_fieldcat.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_repid i_callback_pf_status_set = g_status_set_afrh i_callback_user_command = g_user_command_afrh 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_out_tab EXCEPTIONS program_error = 1 OTHERS = 2.
POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING diagnosetext1 = text-011 textline1 = text-012 titel = text-003 IMPORTING answer = antwort. "#EC *
DELETE_CONFIRMATION_RESERVE CALL FUNCTION 'DELETE_CONFIRMATION_RESERVE' EXPORTING afori_imp = gt_afrh_alv-afori afruv_imp = gt_afrh_alv-afruv no_dialog = yx.
CO_BO_OPR_OF_ORDER_GET CALL FUNCTION 'CO_BO_OPR_OF_ORDER_GET' EXPORTING aufnr_imp = tmp_afrv-aufnr TABLES afvgd_get = tmp_afvgdg.
CY_BT_KBED_TAB_GET CALL FUNCTION 'CY_BT_KBED_TAB_GET' EXPORTING i_aufnr = tmp_afrv-aufnr i_bedid = tmp_afvgdg-bedid TABLES t_kbedd = tmp_kbedd.
CO_RU_CONFIRMATION CALL FUNCTION 'CO_RU_CONFIRMATION' EXPORTING afrud_imp = afrud aktyp_imp = 'H' aktyp_pic_imp = tmp_afrv-beaknz autyp_imp = autyp kapar_imp = tmp_afrv-kapar oper_key = cooprkey rmzhl_upd = rmzhl_upd split_imp = tmp_afrv-split suppress_suggestion = yx IMPORTING afrud_exp = afrud afvgd_exp = afvgd afvgd_sop_exp = *afvgd kbedd_exp = kbedd ok_code_exp = ok_code EXCEPTIONS interrupt_by_user = 01 key_not_defined = 02 material_data_not_found = 03 not_found = 04 order_category_not_valid = 05 predec_not_confirmed = 06 sequence_not_found = 07 split_not_found = 08 table_entry_not_found = 09 unit_conversion_not_possible = 10.
CALL FUNCTION 'UPDATE_CONFIRMATION_RESERVE' EXPORTING pdsnr_imp = tmp_afrv-pdsnr.
CO_BT_CAUFV_READ_WITH_KEY CALL FUNCTION 'CO_BT_CAUFV_READ_WITH_KEY' EXPORTING aufnr_act = ls_afrud-aufnr IMPORTING caufvd_exp = ls_caufvd EXCEPTIONS not_found = 1 OTHERS = 2.
CO_RU_GET_OPERATION CALL FUNCTION 'CO_RU_GET_OPERATION' EXPORTING aplfl_imp = ls_afrud-aplfl aufnr_imp = ls_afrud-aufnr uvorn_imp = ls_afrud-uvorn vornr_imp = ls_afrud-vornr IMPORTING afvgd_exp = ls_afvgd EXCEPTIONS operation_not_found = 1 order_data_missing = 2 table_entry_not_found = 3 OTHERS = 4.
CY_BT_KBED_READ_WITH_KEY CALL FUNCTION 'CY_BT_KBED_READ_WITH_KEY' EXPORTING i_aufnr = ls_caufvd-aufnr i_bedid = ls_afvgd-bedid i_bedzl = ls_afvgd-bedzl i_canum = ls_afrud-canum i_flg_conv = yx i_flg_work = yx IMPORTING kbedd_exp = ls_kbedd EXCEPTIONS no_entry = 1 OTHERS = 2.
CO_RU_BT_AFRU_READ_WITH_KEY CALL FUNCTION 'CO_RU_BT_AFRU_READ_WITH_KEY' EXPORTING rmzhl = ls_afrud-rmzhl rueck = ls_afrud-rueck IMPORTING afrud_exp = ls_afrud_bt EXCEPTIONS not_found = 1 OTHERS = 2.
CO_RU_BT_AFRU_UPDATE CALL FUNCTION 'CO_RU_BT_AFRU_UPDATE' EXPORTING afrud_new = ls_afrud_bt tabix_old = ls_afrud_bt-indbt.
CO_RU_CONFIRMATION CALL FUNCTION 'CO_RU_CONFIRMATION' EXPORTING add_post_only_flg = yx aktyp_imp = aktyp_hin gprot_flg = yx no_back_flush_flg = yx no_goods_receipt_flg = yx.
DELETE_CONFIRMATION_RESERVE CALL FUNCTION 'DELETE_CONFIRMATION_RESERVE' EXPORTING afori_imp = tmp_afrv-afori afruv_imp = tmp_afrv-afruv.
CO_RU_VB_CONFIRMATION_POST CALL FUNCTION 'CO_RU_VB_CONFIRMATION_POST' IN UPDATE TASK TABLES afru_bt = tmp_afrub afrv_sav = tmp_afrv prte_tab = tmp_prte.
CO_RP_RESET_FLG_UPD CALL FUNCTION 'CO_RP_RESET_FLG_UPD'.
READ_CONFIRMATION_RESERVE CALL FUNCTION 'READ_CONFIRMATION_RESERVE' EXPORTING afori_imp = herkunft afruv_imp = afrh-afruv rvall_imp = afru_wf-rvall rvclo_imp = afru_wf-rvclo rvope_imp = afru_wf-rvope lock_flag = space IMPORTING afrh_exp = afrh TABLES afrv_tab = tmp_afrv EXCEPTIONS not_found = 01.
CO_RP_RESET_FLG_UPD CALL FUNCTION 'CO_RP_RESET_FLG_UPD'.
READ_CONFIRMATION_RESERVE CALL FUNCTION 'READ_CONFIRMATION_RESERVE' EXPORTING afori_imp = herkunft afruv_imp = afrh-afruv rvall_imp = afru_wf-rvall rvclo_imp = afru_wf-rvclo rvope_imp = afru_wf-rvope lock_flag = space IMPORTING afrh_exp = afrh TABLES afrv_tab = tmp_afrv EXCEPTIONS not_found = 01.
ENQUEUE_EAFRV CALL FUNCTION 'ENQUEUE_EAFRV' EXPORTING afori = tmp_afrv-afori afruv = tmp_afrv-afruv counter = tmp_afrv-counter EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.
CO_RP_RESET_FLG_UPD CALL FUNCTION 'CO_RP_RESET_FLG_UPD'.
READ_CONFIRMATION_RESERVE CALL FUNCTION 'READ_CONFIRMATION_RESERVE' EXPORTING afori_imp = herkunft afruv_imp = afrh-afruv rvall_imp = afru_wf-rvall rvclo_imp = afru_wf-rvclo rvope_imp = afru_wf-rvope lock_flag = space IMPORTING afrh_exp = afrh TABLES afrv_tab = tmp_afrv EXCEPTIONS not_found = 01.
ENQUEUE_EAFRV CALL FUNCTION 'ENQUEUE_EAFRV' EXPORTING afori = tmp_afrv-afori afruv = tmp_afrv-afruv counter = tmp_afrv-counter EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = g_repid i_structure_name = 'AFRV_S_ALV' CHANGING ct_fieldcat = lt_fieldcat.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_repid i_callback_pf_status_set = g_status_set_afrv i_callback_user_command = g_user_command_afrv is_layout = gs_layout it_fieldcat = lt_fieldcat[] it_except_qinfo = lt_exctab i_grid_title = g_title i_default = 'X' i_save = 'A' is_variant = gs_variant it_events = gt_events TABLES t_outtab = gt_afrv_alv EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 4 IMPORTING et_events = rt_events EXCEPTIONS list_type_wrong = 1 OTHERS = 2.
REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 4 IMPORTING et_events = rt_events EXCEPTIONS list_type_wrong = 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 RMAFRU00 or its description.