RFFMCOPI is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The RFFMCOPI program copies CO plan version data to a Funds Management budget version (FM)...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 RFFMCOPI into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
FM9C - Plan Data Transfer from CO
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: S_PSPID = D .
Selection Text: S_POSID = D .
Selection Text: S_KSTAR = D .
Selection Text: S_KOSTL = D .
Selection Text: S_GEBER = D .
Selection Text: S_AUFNR = D .
Selection Text: P_KOKRS = D .
Selection Text: P_FIKRS = D .
Selection Text: S_QGJAHR = CO fiscal year
Selection Text: P_ZVERSN = Target version
Selection Text: P_TEST = Test Run
Selection Text: P_SUPRET = Supplement/return
Selection Text: P_SUPPL = Supplement
Selection Text: P_QVERSN = Source version
Selection Text: P_PLAN = Financial Budget
Selection Text: P_PAY = Payment budget
Selection Text: P_ORIG = Original budget
Selection Text: P_MAXLEV = Maximum Position Level
Selection Text: P_GJAHR = FM Fiscal Year
Selection Text: P_COMMIT = Commitment budget
Title: Plan Data Transfer from CO
Text Symbol: 065 = Controlling Area:
Text Symbol: 066 = Source Version
Text Symbol: 067 = Cost Center:
Text Symbol: 068 = Order:
Text Symbol: 069 = Project Definition:
Text Symbol: 070 = Cost Elem:
Text Symbol: 071 = Fund:
Text Symbol: 072 = Fiscal Year:
Text Symbol: 073 = Payment Budget
Text Symbol: 074 = Commitment budget
Text Symbol: 075 = to
Text Symbol: 101 = CO Objects with Different Company Code/FM Area
Text Symbol: 102 = |Company Code |FM Area
Text Symbol: 103 = Company Code
Text Symbol: 104 = FM area
Text Symbol: 105 = |CO Fiscal Year |Company Code |FM Area
Text Symbol: 106 = CO Fiscal Year
INCLUDE LKBPPEQU.
INCLUDE LFMAUEQU.
INCLUDE RBONRART.
INCLUDE RKASMAWF. "NOTE1307679
INCLUDE RFFFMCOPIMODULE.
No SAP DATABASE tables are accessed within this REPORT code!
HELPSCREEN_NA_CREATE CALL FUNCTION 'HELPSCREEN_NA_CREATE' "#EC FB_OLDED EXPORTING meldung = l_meldung meld_id = ls_error_line-msg_return-id meld_nr = ls_error_line-msg_return-number msgv1 = ls_error_line-msg_return-message_v1 msgv2 = ls_error_line-msg_return-message_v2 msgv3 = ls_error_line-msg_return-message_v3 msgv4 = ls_error_line-msg_return-message_v4 * PFKEY = ' ' * PROGRAMM = ' ' titel = l_title.
FM_BUD_CHECK_COMPONENT CALL FUNCTION 'FM_BUD_CHECK_COMPONENT' "470 EXCEPTIONS error_message = 1.
FM00_CHECK_ISPS CALL FUNCTION 'FM00_CHECK_ISPS' "462A IMPORTING "462A e_kom_activ = g_flg_kom_active. "462A
FM_GET_ACTIVE_DIMENSIONS CALL FUNCTION 'FM_GET_ACTIVE_DIMENSIONS' "470 IMPORTING e_fund_active = g_flg_fund_active.
FM4C_READ_HIERARCHY_SET CALL FUNCTION 'FM4C_READ_HIERARCHY_SET' EXPORTING i_c_ctr_lev = '1' "KI4K053216 i_c_pos_lev = '1' "KI4K053216 i_carrier_hierarchy = 'X' i_del_non_carrier = ' ' "KI4K063524 * I_POST_CARRIER = ' ' "KI4K053216 i_post_carrier = 'X' "KI4K053216 i_use_items = 'X' i_use_centres = 'X' EXCEPTIONS OTHERS = 1.
K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING * GJAHR = P_GJAHR "462A gjahr = g_t_qgjahr-gjahr "462A kokrs = p_kokrs IMPORTING e_tka01 = tka01 EXCEPTIONS not_found = 1 not_found_gjahr = 2 OTHERS = 3.
FMFK_FIKRS_READ * CALL FUNCTION 'FMFK_FIKRS_READ' "DEC20 * EXPORTING "DEC20 ** IP_APPLICATION_DATA = ' ' "DEC20 * IP_FIKRS = TKA01-FIKRS "DEC20 ** IP_FMA_OBJNR = ' ' "DEC20 ** IP_LANGUAGE = ' ' "DEC20 ** IP_TEXT = ' ' "DEC20 ** IP_BUFFER_RESET = ' ' "DEC20 ** IP_APPLC = ' ' "DEC20 * IMPORTING "DEC20 * F_FM01 = FM01 "DEC20 ** f_fm01a = "DEC20 ** f_fm01t = "DEC20 ** f_fm01d = "DEC20 * EXCEPTIONS "DEC20 * INPUT_ERROR = 1 "DEC20 * NOT_FOUND = 2 "DEC20 * OTHERS = 3. "DEC20
FM_AUTH_CHECK_FM_AREA CALL FUNCTION 'FM_AUTH_CHECK_FM_AREA' EXPORTING i_fikrs = p_fikrs "DEC20 i_actvt = fmau_ac_ini i_msgty = 'E'.
FM_AUTH_CHECK_VERSION CALL FUNCTION 'FM_AUTH_CHECK_VERSION' EXPORTING i_fikrs = p_fikrs i_versn = p_zversn i_actvt = fmau_bu_cre i_msgty = 'E'.
KBPS_CHECK_VERSION CALL FUNCTION 'KBPS_CHECK_VERSION' EXPORTING im_applik = l_cost im_version = p_qversn im_wrttp = l_wplan im_kokrs = p_kokrs * IM_GJAHR = P_GJAHR "462A im_gjahr = g_t_qgjahr-gjahr "462A im_copy = on EXCEPTIONS version_not_found = 1 version_not_useable = 2 version_not_copy = 3 OTHERS = 4.
K_VERSN_READ CALL FUNCTION 'K_VERSN_READ' EXPORTING i_gjahr = g_t_qgjahr-gjahr i_kokrs = p_kokrs i_versn = p_qversn IMPORTING e_tka07 = l_f_tka07 EXCEPTIONS not_found = 1 not_found_gjahr = 2 no_authority = 3 OTHERS = 4.
K_PERIODS_GET_FOR_GJAHR CALL FUNCTION 'K_PERIODS_GET_FOR_GJAHR' EXPORTING i_kokrs = p_kokrs i_gjahr = g_t_qgjahr-gjahr TABLES t_periods = l_t_periods EXCEPTIONS kokrs_not_found = 1 gjahr_not_found = 2 error_in_periods = 3 OTHERS = 4.
FM16_SUBTYPES_GET_FROM_TYPE CALL FUNCTION 'FM16_SUBTYPES_GET_FROM_TYPE' EXPORTING fm_area = u_fikrs bdgt_type = u_vorga IMPORTING mandatory = l_mandatory TABLES bdgt_subtype = l_t_bdgt_subtype.
FM16_SUBTYPE_READ_CUSTOMIZING CALL FUNCTION 'FM16_SUBTYPE_READ_CUSTOMIZING' EXPORTING fm_area = u_fikrs bdgt_type = u_vorga bdgt_subtype = u_subvo IMPORTING text20 = l_subvo_text EXCEPTIONS not_defined = 1.
CJDW_SELECT_BASIC_DATA CALL FUNCTION 'CJDW_SELECT_BASIC_DATA' EXPORTING memid_prps = 'CJ_BUFFER_PRPS' project = l_t_proj-pspid EXCEPTIONS OTHERS = 1.
K_SUBKEY_INTERPRET CALL FUNCTION 'K_SUBKEY_INTERPRET' EXPORTING co_hrkft = p_i_hrkft IMPORTING merkmale = l_merkmale EXCEPTIONS error_message = 1.
FM_GET_DATES_FROM_GJAHR CALL FUNCTION 'FM_GET_DATES_FROM_GJAHR' EXPORTING * IP_APPLC = ' ' ip_fikrs = cobl-fikrs ip_gjahr = cobl-gjahr IMPORTING op_datab = l_datum * OP_DATBIS = EXCEPTIONS * It does not harm, if the date is initial error_occurred = 1 no_fikrs_found = 2 no_periv_found = 3 OTHERS = 4.
FM_CO_ASSIGNMENT_READ_POST *CALL FUNCTION 'FM_CO_ASSIGNMENT_READ_POST' "462A * EXPORTING "462A * I_COBL = COBL "462A * I_NO_FUND = 'X' "462A * I_DATUM = L_DATUM "462A * IMPORTING "462A * E_COBL = COBL "462A * EXCEPTIONS "462A * Validation is done later in "462A ** form ADDITIONAL_VALIDATIONS "462A * OTHERS = 1. "462A
FM_ACCOUNT_GET_COBL CALL FUNCTION 'FM_ACCOUNT_GET_COBL' EXPORTING i_check_year = cobl-gjahr i_cobl_ad = l_f_cobl_ad CHANGING c_cobl = cobl EXCEPTIONS error_message = 1.
AC_COBL_FAREA_SET * CALL FUNCTION 'AC_COBL_FAREA_SET' "FAREA "462A * EXPORTING "FAREA "462A * I_COBL = COBL "FAREA "462A * IMPORTING "FAREA "462A * E_COBL = COBL. "FAREA "462A
FM4D_CHECK_CARRIER_ACTIV CALL FUNCTION 'FM4D_CHECK_CARRIER_ACTIV' EXPORTING i_fikrs = p_fikrs i_geber = g_t_data-geber i_gjahr = p_gjahr IMPORTING e_budget_active = l_structure_active EXCEPTIONS OTHERS = 1.
KBPS_CHECK_VERSION CALL FUNCTION 'KBPS_CHECK_VERSION' EXPORTING im_applik = l_funds im_geber = p_i_geber im_object = l_objnr im_version = p_zversn im_wrttp = l_wfbudget im_kokrs = p_kokrs im_gjahr = p_gjahr EXCEPTIONS version_not_found = 1 version_no_overwrite = 2 version_no_update = 3 version_not_useable = 4 OTHERS = 5.
FM4C_READ_HIERARCHY CALL FUNCTION 'FM4C_READ_HIERARCHY' EXPORTING i_fikrs = g_t_data-fikrs * I_FIPOS = G_T_DATA-FIPOS i_fipex = g_t_data-fipex "FIPEX i_fistl = g_t_data-fistl i_geber = g_t_data-geber i_farea = g_t_data-farea "FAREA i_gjahr = g_t_data-gjahr * importing * e_profil = * tables * t_ex_carr = EXCEPTIONS * fikrs_not_found = 1 * fipos_not_found = 2 * fistl_not_found = 3 OTHERS = 4.
FM4C_GET_HIERARCHY_INFO * call function 'FM4C_GET_HIERARCHY_INFO' "KI4K053216 ** exporting "KI4K053216 ** I_FIKRS = "KI4K053216 ** I_GEBER = "KI4K053216 ** I_GJAHR = "KI4K053216 * importing "KI4K053216 * e_entries_all = l_entries "KI4K053216 ** e_entries_display = "KI4K053216 ** e_bucar_active = "KI4K053216 ** e_pocar_active = "KI4K053216 ** e_cocar_pay_active = "KI4K053216 ** e_cocar_com_active = "KI4K053216 * exceptions "KI4K053216 * others = 1. "KI4K053216
FM4C_GET_ITEM_SINGLE * call function 'FM4C_GET_ITEM_SINGLE' "KI4K053216 * exporting "KI4K053216 * i_index = l_entries "KI4K053216 * i_text_1 = 'X' "KI4K053216 * importing "KI4K053216 * e_fmfctr = fmfctr "KI4K053216 ** E_FMFPO = FMFPO "FIPEX * e_fmci = fmci "FIPEX * exceptions "KI4K053216 * others = 2. "KI4K053216
GET_CTR_OBJNR_FROM_FICTR CALL FUNCTION 'GET_CTR_OBJNR_FROM_FICTR' EXPORTING ip_fictr = p_i_fictr ip_fikrs = p_i_fikrs IMPORTING op_ctr_objnr = l_ctr_objnr EXCEPTIONS not_found = 1 OTHERS = 2.
FM4D_CHECK_CARRIER CALL FUNCTION 'FM4D_CHECK_CARRIER' EXPORTING i_fikrs = p_i_fikrs i_fond = p_i_fond i_gjahr = p_i_gjahr i_ctr_objnr = l_ctr_objnr i_posit = p_e_posit i_budget_carrier = 'X' EXCEPTIONS no_carrier = 1 OTHERS = 2.
FM4C_GET_ITEM_SINGLE CALL FUNCTION 'FM4C_GET_ITEM_SINGLE' EXPORTING i_index = 0 i_objnr = l_ctr_objnr i_posit = p_e_posit i_farea = p_i_farea IMPORTING e_fmbu = l_fmbu "KI4K063524 e_index = l_index EXCEPTIONS not_found = 1 OTHERS = 2.
FM4C_READ_ITEM_HIGH CALL FUNCTION 'FM4C_READ_ITEM_HIGH' EXPORTING i_index = l_index IMPORTING e_index = l_new_index EXCEPTIONS wrong_index = 1 no_upper = 2 OTHERS = 3.
FM4C_GET_ITEM_SINGLE CALL FUNCTION 'FM4C_GET_ITEM_SINGLE' EXPORTING i_index = l_new_index i_text_1 = 'X' IMPORTING e_fmfctr = l_f_fmfctr e_fmci = l_f_fmci EXCEPTIONS not_found = 1 OTHERS = 2.
GET_CTR_OBJNR_FROM_FICTR CALL FUNCTION 'GET_CTR_OBJNR_FROM_FICTR' EXPORTING ip_fictr = p_e_fictr ip_fikrs = p_i_fikrs IMPORTING op_ctr_objnr = l_ctr_objnr EXCEPTIONS not_found = 1 OTHERS = 2.
FM4D_CHECK_CARRIER CALL FUNCTION 'FM4D_CHECK_CARRIER' EXPORTING i_fikrs = p_i_fikrs i_fond = p_i_fond i_gjahr = p_i_gjahr i_ctr_objnr = l_ctr_objnr i_posit = p_e_posit i_budget_carrier = 'X' EXCEPTIONS no_carrier = 1 OTHERS = 2.
FM5B_GET_PROFILE CALL FUNCTION 'FM5B_GET_PROFILE' EXPORTING i_fikrs = p_fikrs "DEC20 i_fincode = p_e_geber IMPORTING e_profil = g_t_bpak-e_profil.
KBPS_CHECK_PROFIL CALL FUNCTION 'KBPS_CHECK_PROFIL' EXPORTING applik = l_funds profil = g_t_bpak-e_profil IMPORTING ex_bp1c = tbp1c.
KBPP_IMPORT_DATA CALL FUNCTION 'KBPP_IMPORT_DATA' EXPORTING *----Also before this correction, there has been no * difference between I_CHECK_DATA = SPACE or 'X' * -> now it is clear that there has to be a check * for version = 0 i_check_data = 'X' "KI4K023441 i_check_data_only = p_test * I_COMMIT_WORK = 'X' "KI4K035994 i_commit_work = ' ' "KI4K035994 i_delta_amounts = 'X' i_dialog_update = 'X' i_rollup = 'X' i_uname = text-026 IMPORTING e_errors_found = p_e_errors_found TABLES i_bpak = p_t_bpak i_bpak_per = g_t_bpak_per return = p_t_return EXCEPTIONS OTHERS = 1.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = p_percentage text = l_text EXCEPTIONS OTHERS = 1.
RS_TEXTPOOL_READ CALL FUNCTION 'RS_TEXTPOOL_READ' EXPORTING objectname = 'RFFMCOPI' action = 'SHOW' TABLES tpool = text_tab EXCEPTIONS OTHERS = 0.
CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING * DATE = TKA07-PLDAT "462A date = g_f_tka07-pldat "462A foreign_currency = fm01-waers local_amount = p_e_value local_currency = tka01-waers * TYPE_OF_RATE = TKA07-KURST "462A type_of_rate = g_f_tka07-kurst "462A IMPORTING foreign_amount = p_e_value.
HELPSCREEN_NA_CREATE CALL FUNCTION 'HELPSCREEN_NA_CREATE' EXPORTING meldung = l_meldung meld_id = g_t_return_msg-id meld_nr = g_t_return_msg-number msgv1 = g_t_return_msg-message_v1 msgv2 = g_t_return_msg-message_v2 msgv3 = g_t_return_msg-message_v3 msgv4 = g_t_return_msg-message_v4 * PFKEY = ' ' * PROGRAMM = ' ' titel = l_title.
FINCODE_READ CALL FUNCTION 'FINCODE_READ' EXPORTING ip_fikrs = u_fikrs ip_fincode = u_geber ip_gjahr = u_gjahr EXCEPTIONS OTHERS = 1.
FM_FIPOS_READ_MULTIPLE * CALL FUNCTION 'FM_FIPOS_READ_MULTIPLE' * EXPORTING * I_FIKRS = U_FIKRS * I_GJAHR = U_GJAHR * TABLES * R_FIPOS = L_R_FIPOS * T_FMFPO = L_T_FMFPO * T_FMFCPO = L_T_FMFCPO * EXCEPTIONS * MASTER_DATA_NOT_FOUND = 1.
FM_COM_ITEM_READ_MULTIPLE_DATA CALL FUNCTION 'FM_COM_ITEM_READ_MULTIPLE_DATA' EXPORTING i_fikrs = u_fikrs i_gjahr = u_gjahr TABLES r_fipex = l_r_fipex e_t_fmci = l_t_fmci EXCEPTIONS master_data_not_found = 1.
FM_FICTR_READ_MULTIPLE CALL FUNCTION 'FM_FICTR_READ_MULTIPLE' EXPORTING i_fikrs = u_fikrs i_gjahr = u_gjahr TABLES r_fictr = l_r_fictr t_fmfctr = l_t_fmfctr EXCEPTIONS master_data_not_found = 1.
FM17_ACTIVITY_ALLOWED_GET CALL FUNCTION 'FM17_ACTIVITY_ALLOWED_GET' EXPORTING i_fikrs = u_fikrs i_gjahr = l_f_bpak-e_gjahr i_geber = l_f_bpak-e_geber i_versn = l_f_bpak-e_versn i_activity = l_activity i_flg_com_bud = l_flg_com_bud i_flg_pay_bud = l_flg_pay_bud EXCEPTIONS error_message = 1.
FM17_ACTIVITY_ALLOWED_GET CALL FUNCTION 'FM17_ACTIVITY_ALLOWED_GET' EXPORTING i_fikrs = u_fikrs i_gjahr = '0000' i_geber = l_f_bpak-e_geber i_versn = l_f_bpak-e_versn i_activity = l_activity i_flg_com_bud = l_flg_com_bud i_flg_pay_bud = l_flg_pay_bud EXCEPTIONS error_message = 1.
MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.
MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = sy-msgid msgty = sy-msgty msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 txtnr = sy-msgno.
MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = l_t_mesg.
FM23_GET_BUDGET_HORIZON CALL FUNCTION 'FM23_GET_BUDGET_HORIZON' EXPORTING i_fmarea = u_fikrs IMPORTING e_max_csh_eff = l_max_csh_eff e_max_fin_pln = l_max_fin_pln.
FMFK_FIKRS_READ CALL FUNCTION 'FMFK_FIKRS_READ' EXPORTING ip_fikrs = p_fikrs IMPORTING f_fm01 = fm01 EXCEPTIONS input_error = 1 not_found = 2 OTHERS = 3.
FM_GET_FIKRS_FROM_KOKRS CALL FUNCTION 'FM_GET_FIKRS_FROM_KOKRS' EXPORTING i_kokrs = p_kokrs IMPORTING e_fikrs = l_fikrs EXCEPTIONS kokrs_not_found = 1 no_fikrs_assigned = 2 assigned_fikrs_not_found = 3 fm_area_not_unique = 4 OTHERS = 5.
RK_BUKRS_OF_KOKRS CALL FUNCTION 'RK_BUKRS_OF_KOKRS' "DEC20 EXPORTING "DEC20 kokrs = p_kokrs "DEC20 TABLES "DEC20 t_bukrs = g_t_bukrs "DEC20 EXCEPTIONS "DEC20 no_bukrs_found = 1 "DEC20 not_found = 2 "DEC20 OTHERS = 3 "DEC20 .
FMFK_GET_FIKRS_FROM_BUKRS CALL FUNCTION 'FMFK_GET_FIKRS_FROM_BUKRS' EXPORTING i_bukrs = g_t_bukrs-bukrs IMPORTING e_fikrs = l_fikrs EXCEPTIONS no_fikrs_for_bukrs = 1 OTHERS = 2.
FIRST_AND_LAST_DAY_IN_YEAR_GET CALL FUNCTION 'FIRST_AND_LAST_DAY_IN_YEAR_GET' EXPORTING i_gjahr = u_qgjahr i_periv = tka01-lmona IMPORTING e_first_day = l_first_day.
FM_FYC_SCHEDMAN_INIT CALL FUNCTION 'FM_FYC_SCHEDMAN_INIT' EXPORTING i_repid = 'RFFMCOPI' i_flg_test = p_test i_wfitem = wf_witem i_wflist = wf_wlist IMPORTING e_f_schedman_key = g_f_schedman_key.
FM_FYC_SCHEDMAN_CLOSE CALL FUNCTION 'FM_FYC_SCHEDMAN_CLOSE' EXPORTING i_f_schedman_key = g_f_schedman_key i_wfitem = wf_witem i_wfokey = wf_okey i_aplstat = g_aplstat i_cnt_obj = l_cnt_sum_result.
KBPS_ENQUEUE CALL FUNCTION 'KBPS_ENQUEUE' EXPORTING i_global_objhi = l_objhi i_global_wrttp = l_wfbudget i_global_all_geber = 'X' i_global_versn = p_zversn i_global_all_farea = 'X' i_global_enqueue = on i_enq_mode = 'E' i_wait = on.
KBPS_ENQUEUE CALL FUNCTION 'KBPS_ENQUEUE' EXPORTING i_global_objhi = l_objhi i_global_wrttp = l_wpbudget i_global_all_geber = 'X' i_global_versn = p_zversn i_global_all_farea = 'X' i_global_enqueue = on i_enq_mode = 'E' i_wait = on.
KBPS_ENQUEUE CALL FUNCTION 'KBPS_ENQUEUE' EXPORTING i_global_objhi = l_objhi i_global_wrttp = l_wffinplan i_global_all_geber = 'X' i_global_versn = p_zversn i_global_all_farea = 'X' i_global_enqueue = on i_enq_mode = 'E' i_wait = on.
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 RFFMCOPI or its description.
RFFMCOPI - Plan Data Transfer from CO RFFMCOPI - Plan Data Transfer from CO RFFMCONVPD - Conversion of Old Documents for Payment Distribution RFFMCONVPD - Conversion of Old Documents for Payment Distribution RFFMCOMPARE_STRATEGY - Compare Derivation Strategy across Systems/Clients RFFMCOMPARE_STRATEGY - Compare Derivation Strategy across Systems/Clients