SAP Reports / Programs | Public Sector Management | Funds Management | Budgeting(PSM-FM-BCS-BU) SAP PSM

IFMKU_MIGRATE_ED_FORM SAP ABAP INCLUDE - Include IFMKU_MIGRATE_ED_FORM







IFMKU_MIGRATE_ED_FORM is a standard ABAP INCLUDE 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 IFMKU_MIGRATE_ED_FORM into the relevant SAP transactions such as SE38 or SE80


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


Text pool values


Title: Include IFMKU_MIGRATE_ED_FORM


INCLUDES used within this REPORT IFMKU_MIGRATE_ED_FORM

No INCLUDES are used within this REPORT code!


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:

FMKU_READ_TECHORG CALL FUNCTION 'FMKU_READ_TECHORG' EXPORTING i_techorg = con_mig_documents IMPORTING e_s_techorg_flags = l_f_techorg_flags.

KBPR_READ_DATA CALL FUNCTION 'KBPR_READ_DATA' EXPORTING fikrs = u_fm_area fikrs_ca_periv = con_on geber = u_fund farea_all = con_on new_ledger = 'X' posit_all = con_on trgkz = l_node versn = u_svers year_end = l_to_year_fund year_start = l_from_year_fund read_bpja = con_off read_bpge = con_off read_bppe = con_off read_bptr = con_off read_bpjv = con_off read_bptx = con_off read_bpgv = con_off read_bpij = con_off read_bpig = con_off read_bpdk = con_on IMPORTING subrc = l_subrc TABLES * Hierarchy document bp_bk = l_t_bpbk bp_eg = l_t_bpeg bp_ej = l_t_bpej bp_ep = l_t_bpep * Entry documents bp_dk = l_t_bpdk tab_objnr = u_t_objnr.

FMKU_DELETE_ED CALL FUNCTION 'FMKU_DELETE_ED' EXPORTING i_fm_area = u_fm_area i_version = u_tvers i_ref_msg = u_ref_msg i_flg_lock_docs = con_off i_simulate = con_off i_t_docid = l_t_docid IMPORTING e_error = l_flg_failed EXCEPTIONS wrong_input = 1 not_found = 2 OTHERS = 3.

KBPB_DOCUMENT_READ CALL FUNCTION 'KBPB_DOCUMENT_READ' EXPORTING i_belnr = u_docnr * I_MSGTY = 'E' * I_REFRESH = 'X' * I_CHECK = 'X' * I_ENQUEUE = ' ' TABLES t_bpdk = l_t_bpdk t_bpdkt = l_t_bpdkt t_bpdz = l_t_bpdz t_bpdzt = l_t_bpdzt t_bpdg = l_t_bpdg t_bpdj = l_t_bpdj t_bpdp = l_t_bpdp EXCEPTIONS not_found = 1 document_locked = 2 OTHERS = 3.

KBPS_INIT CALL FUNCTION 'KBPS_INIT' EXPORTING bp_import = l_f_bpin IMPORTING bp_in = l_f_bpin.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = l_f_fmbh-postdate i_periv = u_periv IMPORTING e_buper = l_period EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.

FMKU_CUMULATE_MSG_FROM_EXCEPT CALL FUNCTION 'FMKU_CUMULATE_MSG_FROM_EXCEPT' EXPORTING i_sy = l_sy i_ref_msg = u_ref_msg_gnl.

FMBWB_SPREAD_VALUE CALL FUNCTION 'FMBWB_SPREAD_VALUE' EXPORTING i_distkey = u_distkey i_fiscyear = u_f_fmbl-fiscyear i_value = l_amount i_decimals = u_decimals i_periv = u_periv IMPORTING e_value = l_value_after TABLES t_cepfv = l_t_cepfv EXCEPTIONS manual_distkey = 1 OTHERS = 2.

FMKU_GET_DOCFAM CALL FUNCTION 'FMKU_GET_DOCFAM' EXPORTING i_doctype = c_f_fmbh-doctype i_fm_area = u_f_docid-fm_area i_docyear = u_f_docid-docyear IMPORTING e_docfam = l_docfam EXCEPTIONS interval_error = 1 OTHERS = 2.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = l_f_fmbh-postdate i_periv = u_periv IMPORTING e_buper = l_period EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.

FMKU_CUMULATE_MSG_FROM_EXCEPT CALL FUNCTION 'FMKU_CUMULATE_MSG_FROM_EXCEPT' EXPORTING i_sy = l_sy i_ref_msg = u_ref_msg_gnl.

FMCU_CHECK_BUDCAT CALL FUNCTION 'FMCU_CHECK_BUDCAT' EXPORTING i_fm_area = u_fm_area i_budcat = c_f_fmbl-budcat IMPORTING e_flg_ceffyear_used = c_flg_ceffyear_used EXCEPTIONS no_budcat = 1 OTHERS = 2.

FMKU_CUMULATE_MSG_FROM_EXCEPT CALL FUNCTION 'FMKU_CUMULATE_MSG_FROM_EXCEPT' EXPORTING i_sy = l_sy i_ref_msg = u_ref_msg.

KBPR_READ_DATA CALL FUNCTION 'KBPR_READ_DATA' EXPORTING fikrs = u_fm_area fikrs_ca_periv = con_on geber = u_fund farea_all = con_on new_ledger = 'X' posit_all = con_on trgkz = l_node versn = u_svers year_end = c_to_year_fund year_start = '0000' * We check for all years instead of c_from_year_fund to be sure that * the fund is a pure overall read_bpja = con_on read_bpge = con_off read_bppe = con_off read_bptr = con_off read_bpjv = con_off read_bptx = con_off read_bpgv = con_off read_bpij = con_off read_bpig = con_off read_bpdk = con_off IMPORTING subrc = l_subrc TABLES bp_ja = l_t_bpja tab_objnr = u_t_objnr.

FMKU_CALL_DERIVATION_MIG CALL FUNCTION 'FMKU_CALL_DERIVATION_MIG' EXPORTING i_s_source_line = l_f_source_mig i_s_target_line = l_f_init_target_mig IMPORTING * E_S_MIGRATE_SOURCE_SUPPL = e_s_migrate_target = l_f_target_mig * E_TRACE_HANDLE = EXCEPTIONS migration_failed = 1 OTHERS = 2.

FMCU_GET_RELEASE_AUTO_BUDTYPE CALL FUNCTION 'FMCU_GET_RELEASE_AUTO_BUDTYPE' EXPORTING i_fm_area = u_fm_area i_flg_eligibility = con_off IMPORTING e_budtype = c_f_fmbl-budtype.

FMCU_GET_RELEASE_AUTO_BUDTYPE CALL FUNCTION 'FMCU_GET_RELEASE_AUTO_BUDTYPE' EXPORTING i_fm_area = u_fm_area i_flg_eligibility = con_on IMPORTING e_budtype = c_f_fmbl-budtype.

FMCU_GET_BUDTYPE CALL FUNCTION 'FMCU_GET_BUDTYPE' EXPORTING i_fm_area = u_fm_area i_valtype = con_statistical IMPORTING e_t_budtype = l_t_budtype EXCEPTIONS not_found.

KBPB_DOCUMENT_READ





CALL FUNCTION 'KBPB_DOCUMENT_READ' EXPORTING i_belnr = u_rev_docnr TABLES t_bpdk = l_t_bpdk t_bpdkt = l_t_bpdkt EXCEPTIONS not_found = 1 document_locked = 2 OTHERS = 3.

READ_TEXT CALL FUNCTION 'READ_TEXT' EXPORTING * CLIENT = SY-MANDT id = con_tdid_std language = l_langu name = l_name object = 'TEXT' TABLES lines = l_t_lines[] EXCEPTIONS OTHERS = 8.

READ_TEXT CALL FUNCTION 'READ_TEXT' EXPORTING * CLIENT = SY-MANDT id = 'BPMT' language = l_langu name = l_name object = 'TEXT' IMPORTING header = l_f_header TABLES lines = l_t_lines[] EXCEPTIONS id = 1 language = 2 name = 3 not_found = 4 object = 5 reference_check = 6 wrong_access_to_archive = 7 OTHERS = 8.

SAVE_TEXT CALL FUNCTION 'SAVE_TEXT' EXPORTING * CLIENT = SY-MANDT header = l_f_header TABLES lines = l_t_lines[] EXCEPTIONS OTHERS = 5.

COMMIT_TEXT CALL FUNCTION 'COMMIT_TEXT'.

FMKU_CONSTRUCT_TEXTNAME CALL FUNCTION 'FMKU_CONSTRUCT_TEXTNAME' EXPORTING i_fm_area = u_fm_area IMPORTING e_provisory_name = l_provisary_name.

READ_TEXT CALL FUNCTION 'READ_TEXT' EXPORTING * CLIENT = SY-MANDT id = 'BPMK' language = l_langu name = l_name object = con_object IMPORTING header = l_f_header TABLES lines = l_t_lines[] EXCEPTIONS id = 1 language = 2 name = 3 not_found = 4 object = 5 reference_check = 6 wrong_access_to_archive = 7 OTHERS = 8.

SAVE_TEXT CALL FUNCTION 'SAVE_TEXT' EXPORTING * CLIENT = SY-MANDT header = l_f_header TABLES lines = l_t_lines[] EXCEPTIONS OTHERS = 5.

BAL_LOG_HDR_READ CALL FUNCTION 'BAL_LOG_HDR_READ' EXPORTING i_log_handle = g_log_handle IMPORTING e_statistics = l_f_statistics.

FMKU_GET_PERIOD_INFO CALL FUNCTION 'FMKU_GET_PERIOD_INFO' EXPORTING i_fm_area = u_fm_area IMPORTING e_nb_periods = l_nb_max_periods e_nb_special_periods = l_nb_special_periods e_periv = c_periv EXCEPTIONS OTHERS = 4.

KBPS_GET_CURRENCY CALL FUNCTION 'KBPS_GET_CURRENCY' EXPORTING fikrs = u_fm_area fikrs_ca_periv = con_on IMPORTING twaer = c_currency op_decim = c_decimals.

FM_FIPEX_GET_FROM_POSIT CALL FUNCTION 'FM_FIPEX_GET_FROM_POSIT' EXPORTING i_fikrs = u_fm_area i_posit = u_posit IMPORTING e_fipex = c_cmmtitem EXCEPTIONS OTHERS = 3.

FMKU_COM_ITEM_READ_SINGLE_DATA CALL FUNCTION 'FMKU_COM_ITEM_READ_SINGLE_DATA' EXPORTING i_fm_area = u_fm_area i_fiscyear = u_fiscyear i_cmmtitem = c_cmmtitem IMPORTING e_f_fmci = l_f_fmci EXCEPTIONS OTHERS = 5.

FM_FUND_READ CALL FUNCTION 'FM_FUND_READ' EXPORTING i_fikrs = u_fm_area i_fincode = u_fund EXCEPTIONS OTHERS = 5.

FM5B_GET_PROFILE CALL FUNCTION 'FM5B_GET_PROFILE' EXPORTING i_fikrs = u_fm_area i_fincode = u_fund IMPORTING e_profil = l_profil EXCEPTIONS fm_area_not_found = 1 OTHERS = 2.

KBPS_CHECK_PROFIL CALL FUNCTION 'KBPS_CHECK_PROFIL' EXPORTING applik = l_funds profil = l_profil IMPORTING ex_bp1c = c_fbs_profil EXCEPTIONS not_found = 1 OTHERS = 2.

FM_BUDGET_SCOPE_FOR_FUND CALL FUNCTION 'FM_BUDGET_SCOPE_FOR_FUND' EXPORTING i_fikrs = u_fm_area i_fincode = u_fund IMPORTING e_budget_scope = c_bcs_scope EXCEPTIONS OTHERS = 1.

FM_FINCODE_READ_ALL CALL FUNCTION 'FM_FINCODE_READ_ALL' EXPORTING i_fikrs = u_fm_area TABLES t_fincode = u_t_fund t_fmfincode = l_t_fund EXCEPTIONS OTHERS = 1.

FMKU_CALL_DERIVATION_MIG_ED CALL FUNCTION 'FMKU_CALL_DERIVATION_MIG_ED' EXPORTING i_s_source_line = l_f_source i_s_target_line = l_f_target_init IMPORTING e_s_migrate_target = l_f_target EXCEPTIONS deriv_mig_ed_failed = 1 OTHERS = 2.

FMKU_ENQUEUE CALL FUNCTION 'FMKU_ENQUEUE' EXPORTING i_fm_area = u_fm_area i_version = u_tvers EXCEPTIONS foreign_lock = 1 OTHERS = 2.




FMKU_DELETE_ED CALL FUNCTION 'FMKU_DELETE_ED' EXPORTING i_fm_area = u_fm_area i_version = u_tvers i_ref_msg = u_ref_msg i_flg_lock_docs = con_off i_simulate = con_off i_t_docid = l_t_docid IMPORTING e_error = l_flg_failed EXCEPTIONS wrong_input = 1 not_found = 2 OTHERS = 3.

FMKU_DEQUEUE CALL FUNCTION 'FMKU_DEQUEUE' EXPORTING i_fm_area = u_fm_area i_version = u_tvers i_synchron = con_on.

BUKU_MOVE_PERIOD_VALUES CALL FUNCTION 'BUKU_MOVE_PERIOD_VALUES' EXPORTING i_f_source = i_prefix_source = 'TVAL' i_prefix_target = 'TVAL' CHANGING c_f_target = l_f_tobu.

BUKU_MOVE_PERIOD_VALUES CALL FUNCTION 'BUKU_MOVE_PERIOD_VALUES' EXPORTING i_f_source = i_prefix_source = 'LVAL' i_prefix_target = 'LVAL' CHANGING c_f_target = l_f_tobu.

KBPS_GET_CURRENCY CALL FUNCTION 'KBPS_GET_CURRENCY' EXPORTING fikrs = u_fm_area fikrs_ca_periv = 'X' IMPORTING twaer = l_lcurr.

FM_COM_ITEM_READ_SINGLE_DATA CALL FUNCTION 'FM_COM_ITEM_READ_SINGLE_DATA' EXPORTING i_fikrs = u_fm_area i_gjahr = -fiscyear i_fipex = -address-cmmtitem IMPORTING e_f_fmci = l_f_fmci EXCEPTIONS master_data_not_found = 1 hierarchy_data_not_found = 2 input_error = 3 OTHERS = 4.



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