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

BPCOPYI2 SAP ABAP INCLUDE - Funds Management: Copy Versions - Global Forms







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


Text pool values


Title: Funds Management: Copy Versions - Global Forms


INCLUDES used within this REPORT BPCOPYI2

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:

FM00_CHECK_ISPS CALL FUNCTION 'FM00_CHECK_ISPS' IMPORTING "KI3K033657 e_da_activ = l_da_active. "KI3K033657

FM00_CHECK_ISPS CALL FUNCTION 'FM00_CHECK_ISPS' * EXPORTING * i_fikrs = l_fikrs IMPORTING e_da_activ = l_da_active e_flg_isps_not_active = l_flg_isps_not_active.

FM_AUTH_CHECK_FM_AREA CALL FUNCTION 'FM_AUTH_CHECK_FM_AREA' EXPORTING i_fikrs = gf_info-fikrs i_actvt = fmau_ve_cop * I_ACTVT_A = i_msgty = 'E'.

FM_AUTH_CHECK_VERSION CALL FUNCTION 'FM_AUTH_CHECK_VERSION' EXPORTING i_fikrs = gf_info-fikrs i_versn = gf_info-d_vers i_actvt = fmau_ve_cop i_msgty = 'E'.

KBPS_EDIT_TEXT CALL FUNCTION 'KBPS_EDIT_TEXT' EXPORTING i_edit = p_edit i_textid = l_tdid i_textname = l_textname EXCEPTIONS no_text = 01.

READ_TEXT CALL FUNCTION 'READ_TEXT' EXPORTING id = l_tdid language = sy-langu name = l_textname object = l_tdobject TABLES lines = lt_dummy_line EXCEPTIONS not_found = 04.

KBPS_OBJHI_NAME_GENERATE CALL FUNCTION 'KBPS_OBJHI_NAME_GENERATE' EXPORTING i_application = l_funds i_fm_area = gf_info-fikrs IMPORTING e_objhi = gf_info-objhi.

FMFK_FIKRS_READ CALL FUNCTION 'FMFK_FIKRS_READ' EXPORTING ip_fikrs = gf_info-fikrs IMPORTING f_fm01 = lf_fm01.

KBPS_FIND_LEDGER CALL FUNCTION 'KBPS_FIND_LEDGER' EXPORTING currency = lf_fm01-waers periv = lf_fm01-ca_periv IMPORTING ledger = gf_info-lednr TABLES bp_cur = lt_dummy.

FM_FIKRS_CHECK_MD_YEAR_DEPEND CALL FUNCTION 'FM_FIKRS_CHECK_MD_YEAR_DEPEND' "YYPOS EXPORTING "YYPOS i_fikrs = gf_info-fikrs "YYPOS IMPORTING "YYPOS e_flg_year_master_data = gf_info-md_yeardep. "YYPOS

FINCODE_READ CALL FUNCTION 'FINCODE_READ' EXPORTING ip_fikrs = gf_info-fikrs ip_fincode = gt_funds-low.

KBPS_CHECK_VERSION CALL FUNCTION 'KBPS_CHECK_VERSION' EXPORTING im_applik = l_funds im_version = gf_info-s_vers im_wrttp = l_wfbudget.

KBPS_CHECK_VERSION CALL FUNCTION 'KBPS_CHECK_VERSION' EXPORTING im_applik = l_funds im_version = gf_info-d_vers im_wrttp = l_wfbudget.

KBPS_CHECK_VERSION CALL FUNCTION 'KBPS_CHECK_VERSION' EXPORTING im_applik = l_funds im_geber = p_geber im_object = gf_info-objhi im_update = on im_version = gf_info-d_vers * im_wrttp = p_wrttp "DCPY im_wrttp = l_wrttp EXCEPTIONS version_no_update = 1 OTHERS = 2.

FM17_ACTIVITY_ALLOWED_GET CALL FUNCTION 'FM17_ACTIVITY_ALLOWED_GET' EXPORTING i_fikrs = gf_info-fikrs i_gjahr = gf_info-d_year i_geber = p_geber i_versn = gf_info-d_vers i_activity = l_activity i_flg_com_bud = l_check_com_bud i_flg_pay_bud = l_check_pay_bud * TABLES * T_ACT_TAB = EXCEPTIONS OTHERS = 1.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING titel = text-015 textline1 = text-016 textline2 = text-017 IMPORTING answer = l_answer.

FM5B_GET_PROFILE CALL FUNCTION 'FM5B_GET_PROFILE' EXPORTING i_fikrs = gf_info-fikrs i_fincode = p_geber IMPORTING e_profil = l_profile.

KBPS_CHECK_PROFIL CALL FUNCTION 'KBPS_CHECK_PROFIL' EXPORTING applik = l_funds profil = l_profile IMPORTING ex_bp1c = gf_tbp1c EXCEPTIONS not_found = 01.

KBPA_GET_START_FISCAL_YEAR





CALL FUNCTION 'KBPA_GET_START_FISCAL_YEAR' EXPORTING i_fm_area = gf_info-fikrs i_fin_code = p_geber IMPORTING e_start_fiscal_year = p_year.

KBPS_GET_GJAHR CALL FUNCTION 'KBPS_GET_GJAHR' EXPORTING im_applik = l_funds im_bp1c = gf_tbp1c im_periv = gf_info-periv im_fikrs = gf_info-fikrs im_md_year_depend = gf_info-md_yeardep "YYPOS im_geber = p_geber IMPORTING ex_ejahr = l_ejahr ex_sjahr = l_sjahr EXCEPTIONS OTHERS = 1.

FINCODE_READ CALL FUNCTION 'FINCODE_READ' EXPORTING ip_fikrs = gf_info-fikrs ip_fincode = p_geber ip_gjahr = gf_info-d_year EXCEPTIONS customer_invalid = 1 input_error = 2 master_data_not_found = 3 finuse_not_defined = 4 OTHERS = 5.

FM23_GET_BUDGET_HORIZON CALL FUNCTION 'FM23_GET_BUDGET_HORIZON' "KI4K042113 EXPORTING "KI4K042113 i_fmarea = gf_info-fikrs "KI4K042113 IMPORTING "KI4K042113 e_max_csh_eff = l_max_csh_eff. "KI4K042113

FM23_GET_BUDGET_HORIZON CALL FUNCTION 'FM23_GET_BUDGET_HORIZON' "KI4K042113 EXPORTING "KI4K042113 i_fmarea = gf_info-fikrs "KI4K042113 IMPORTING "KI4K042113 e_max_fin_pln = l_max_fin_pln. "KI4K042113

FM4D_CHECK_CARRIER_ACTIV CALL FUNCTION 'FM4D_CHECK_CARRIER_ACTIV' EXPORTING i_fikrs = gf_info-fikrs i_geber = p_geber i_gjahr = p_year IMPORTING e_budget_active = l_bud_carr_active EXCEPTIONS OTHERS = 1.

FM4C_READ_HIERARCHY_SET CALL FUNCTION 'FM4C_READ_HIERARCHY_SET' EXPORTING i_read_complete = l_read_complete i_carrier_hierarchy = on i_post_carrier = off i_only_30_pos = on *(DEL) i_finuse_check = off. "KI3K089618

FM4C_SET_INTERNAL_BUDGET * call function 'FM4C_SET_INTERNAL_BUDGET' "KI3K089618 * tables "KI3K089618 * t_bpge = gt_extract_bpge "KI3K089618 * t_bpja = gt_extract_bpja. "KI3K089618

FM4C_READ_HIERARCHY CALL FUNCTION 'FM4C_READ_HIERARCHY' EXPORTING i_fikrs = gf_info-fikrs i_geber = p_geber *(DEL) i_gjahr = p_year. "KI3K089618

FM4C_SET_FORMAT CALL FUNCTION 'FM4C_SET_FORMAT' EXPORTING i_activate_format = off.

FM_FICTR_READ_MULTIPLE CALL FUNCTION 'FM_FICTR_READ_MULTIPLE' EXPORTING i_fikrs = g_masterdata_info-fikrs i_gjahr = g_masterdata_info-gjahr TABLES r_fictr = lr_dummy_fictr t_fmfctr = lt_fmfctr EXCEPTIONS OTHERS = 1.

FM_FIPEX_READ_MULTIPLE_DATA CALL FUNCTION 'FM_FIPEX_READ_MULTIPLE_DATA' EXPORTING i_fikrs = g_masterdata_info-fikrs i_gjahr = g_masterdata_info-gjahr TABLES r_fipex = lr_fipex t_vfmpg = lt_vfmpg EXCEPTIONS OTHERS = 1.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' EXPORTING collect_and_send = ' '.

KBPP_COPY_VERSION CALL FUNCTION 'KBPP_COPY_VERSION' EXPORTING im_version_src = gf_info-s_vers im_version_dest = gf_info-d_vers im_time = lf_time im_fin_code = p_geber im_copy_mode = l_copy_mode im_bpin = lf_bpin im_funds_param_ex = funds_param_ex IMPORTING ex_subrc = l_subrc e_datachanged = l_datachanged e_error = l_error e_commit = l_commit TABLES t_copy = lt_copy.

KBPS_ENQUEUE CALL FUNCTION 'KBPS_ENQUEUE' "KI3K040849 EXPORTING "KI3K040849 i_global_objhi = gf_info-objhi "KI3K040849 i_global_wrttp = l_wfbudget "KI3K040849 i_global_geber = p_geber "KI3K040849 i_global_versn = gf_info-d_vers "KI3K040849 i_global_enqueue = on "KI3K040849 i_wait = on "KI3K040849 i_global_all_farea = on "FAREA EXCEPTIONS "KI3K040849 foreign_lock = 1 "KI3K040849 system_failure = 2. "KI3K040849

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

KBPS_LONGTEXT_CLONE CALL FUNCTION 'KBPS_LONGTEXT_CLONE' EXPORTING name = lt_bptx_dest_upda-tdname * LANGUAGE = SY-LANGU IMPORTING clone_name = lt_bptx_dest_upda-tdname EXCEPTIONS not_found = 1 OTHERS = 2.

KBPS_LONGTEXT_CLONE CALL FUNCTION 'KBPS_LONGTEXT_CLONE' EXPORTING name = lt_bptx_dest_ins-tdname * LANGUAGE = SY-LANGU IMPORTING clone_name = lt_bptx_dest_ins-tdname EXCEPTIONS not_found = 1 OTHERS = 2.

KBPS_LONGTEXT_DELETE CALL FUNCTION 'KBPS_LONGTEXT_DELETE' EXPORTING name = lt_bptx_dest_old-tdname * LANGUAGE = SY-LANGU EXCEPTIONS not_found = 1.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = l_progname dynumb = l_dynnr TABLES dynpfields = lt_dynp EXCEPTIONS OTHERS = 1.




KBPS_OBJHI_NAME_GENERATE CALL FUNCTION 'KBPS_OBJHI_NAME_GENERATE' EXPORTING i_application = l_funds i_fm_area = l_fikrs i_object_initial_allowed = on IMPORTING e_objhi = p_objhi.

KBPS_SHOW_VERSIONS CALL FUNCTION 'KBPS_SHOW_VERSIONS' EXPORTING applik = l_funds object = p_objhi geber_all = on wrttp = l_wfbudget wrttp2 = l_wpbudget im_cop_versn = l_cop_versn im_all_versn = l_all_versn IMPORTING version = l_version EXCEPTIONS no_versions = 01.

RETRIEVAL_TEXT CALL FUNCTION 'RETRIEVAL_TEXT' EXPORTING id = l_tdid language = sy-langu IMPORTING header = lf_thead EXCEPTIONS OTHERS = 1.

KBPS_SHOW_BUDGET_SUBTYPES CALL FUNCTION 'KBPS_SHOW_BUDGET_SUBTYPES' EXPORTING fm_area = l_fikrs bdgt_type = 'KBUD' IMPORTING bdgt_subtype = p_s_tsubvo * BDGT_SUBTYPE_TEXT = * EXCEPTIONS * NO_BDGT_SUBTYPE = 1 * OTHERS = 2 .

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = detail_data.

KBPS_GET_WRTTP_TEXT CALL FUNCTION 'KBPS_GET_WRTTP_TEXT' EXPORTING i_wrttp = gt_prot-wrttp * I_VORGA = IMPORTING e_text_20 = txt_wrttp EXCEPTIONS not_found = 1.

RPY_MESSAGE_COMPOSE CALL FUNCTION 'RPY_MESSAGE_COMPOSE' EXPORTING * LANGUAGE = SY-LANGU message_id = p_gt_prot-arbgb message_number = l_txtnr message_var1 = p_gt_prot-msgv1 message_var2 = p_gt_prot-msgv2 message_var3 = p_gt_prot-msgv3 message_var4 = p_gt_prot-msgv4 IMPORTING message_text = header01 * TABLES * LONGTEXT = EXCEPTIONS message_not_found = 1 OTHERS = 2.

KBPS_GET_WRTTP_TEXT CALL FUNCTION 'KBPS_GET_WRTTP_TEXT' EXPORTING i_wrttp = gt_prot-wrttp * I_VORGA = IMPORTING e_text_20 = txt_wrttp EXCEPTIONS not_found = 1.

RPY_MESSAGE_COMPOSE CALL FUNCTION 'RPY_MESSAGE_COMPOSE' EXPORTING * LANGUAGE = SY-LANGU message_id = p_gt_prot-arbgb message_number = l_txtnr message_var1 = p_gt_prot-msgv1 message_var2 = p_gt_prot-msgv2 message_var3 = p_gt_prot-msgv3 message_var4 = p_gt_prot-msgv4 IMPORTING message_text = header01 * TABLES * LONGTEXT = EXCEPTIONS message_not_found = 1 OTHERS = 2.

HELP_OBJECT_SHOW CALL FUNCTION 'HELP_OBJECT_SHOW' EXPORTING dokclass = 'NA' * DOKLANGU = SY-LANGU dokname = dokname * DOKTITLE = ' ' * CALLED_BY_PROGRAM = ' ' * CALLED_BY_DYNP = ' ' * CALLED_FOR_TAB = ' ' * CALLED_FOR_FIELD = ' ' * CALLED_FOR_TAB_FLD_BTCH_INPUT = ' ' msg_var_1 = g_hide-msgv1 msg_var_2 = g_hide-msgv2 msg_var_3 = g_hide-msgv3 msg_var_4 = g_hide-msgv4 * CALLED_BY_CUAPROG = ' ' * CALLED_BY_CUASTAT = TABLES links = dummy EXCEPTIONS object_not_found = 1 sapscript_error = 2 OTHERS = 3.

FM16_SUBTYPE_READ_CUSTOMIZING CALL FUNCTION 'FM16_SUBTYPE_READ_CUSTOMIZING' EXPORTING fm_area = p_fikrs bdgt_type = 'KBUD' bdgt_subtype = p_target_subvo.



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