SAP Reports / Programs

BPCARR00 SAP ABAP Report - Generate Budget Structure from Budget and Actual Data







BPCARR00 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Generate Budget Structure from Budget Data and Actual Data You can use the BPCARR00 program if you want to generate a Budget structure (BS) based on already existing budget data and actual data...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 BPCARR00 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

FM9N - FM: Generate Budget Object


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 BPCARR00. "Basic submit
SUBMIT BPCARR00 AND RETURN. "Return to original report after report execution complete
SUBMIT BPCARR00 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_TEST = Test run
Selection Text: P_GJAHR = From fiscal year
Selection Text: P_FONDS = Fund
Selection Text: P_FIKRS = FM area
Selection Text: P_BP_CAR = Generate budget object
Selection Text: P_AC_CAR = Generate posting object
Title: Generate Budget Structure from Budget and Actual Data
Text Symbol: 507 = Update Run
Text Symbol: 505 = Processing Status
Text Symbol: 100 = Object was locked
Text Symbol: 091 = Commitment Item
Text Symbol: 090 = Funds center
Text Symbol: 052 = Generate payment budget object from payment budget
Text Symbol: 051 = Generate payment budget from commitment budget
Text Symbol: 050 = Generate commitment budget object
Text Symbol: 034 = Budget
Text Symbol: 033 = Posting
Text Symbol: 032 = Cmmt budget
Text Symbol: 028 = Fiscal year
Text Symbol: 027 = No objects created
Text Symbol: 026 = Test run
Text Symbol: 025 = From fiscal year
Text Symbol: 024 = Object for years
Text Symbol: 023 = Object for total
Text Symbol: 022 = Object type
Text Symbol: 021 = Fund
Text Symbol: 020 = FM area


INCLUDES used within this REPORT BPCARR00

INCLUDE LKBPPEQU.
INCLUDE LKBPPSTN.
INCLUDE LFMAUEQU.


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:

FM_BUD_CHECK_COMPONENT CALL FUNCTION 'FM_BUD_CHECK_COMPONENT' "470 EXCEPTIONS error_message = 1.

FM_GET_ACTIVE_DIMENSIONS CALL FUNCTION 'FM_GET_ACTIVE_DIMENSIONS' "470 IMPORTING e_fund_active = g_flg_fund_active.

FMFK_FIKRS_READ CALL FUNCTION 'FMFK_FIKRS_READ' EXPORTING ip_fikrs = p_fikrs IMPORTING f_fm01 = lf_fm01.

FM00_CHECK_ISPS CALL FUNCTION 'FM00_CHECK_ISPS' IMPORTING e_kom_activ = g_kom_activ EXCEPTIONS OTHERS = 2.

FM_FIKRS_CHECK_MD_YEAR_DEPEND CALL FUNCTION 'FM_FIKRS_CHECK_MD_YEAR_DEPEND' "YYPOS EXPORTING "YYPOS i_fikrs = lf_fm01-fikrs "YYPOS IMPORTING "YYPOS e_flg_year_master_data = g_masterdata_yeardep. "YYPOS

FM_AUTH_CHECK_FM_AREA CALL FUNCTION 'FM_AUTH_CHECK_FM_AREA' EXPORTING i_fikrs = p_fikrs i_actvt = fmau_ac_ini i_msgty = 'E'.

KBPA_GET_START_FISCAL_YEAR_OPT CALL FUNCTION 'KBPA_GET_START_FISCAL_YEAR_OPT' EXPORTING i_fm_area = p_fikrs i_fin_code = p_fonds IMPORTING e_start_fiscal_year = l_def_gjahr e_profil = l_profil.

KBPS_CHECK_GJAHR CALL FUNCTION 'KBPS_CHECK_GJAHR' EXPORTING i_gjahr = p_gjahr IMPORTING e_gjahr = l_user_gjahr.

KBPS_OBJHI_NAME_GENERATE CALL FUNCTION 'KBPS_OBJHI_NAME_GENERATE' EXPORTING i_application = l_funds i_fm_area = p_fikrs IMPORTING e_objhi = bpin-objhi.

KBPS_CHECK_PROFIL CALL FUNCTION 'KBPS_CHECK_PROFIL' EXPORTING applik = l_funds profil = l_profil wrttp = l_wfbudget IMPORTING ex_bp1c = tbp1c.

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

ENQUEUE_EBPTR_EX * call function 'ENQUEUE_EBPTR_EX' "KI3K040849 * exporting "KI3K040849 * objnr = gt_enq_obj-objnr "KI3K040849 * posit = l_enq_posit_default "KI3K040849 * trgkz = l_trgkz "KI3K040849 * wrttp = lt_wrttp-wrttp "KI3K040849 * geber = l_enq_geber "KI3K040849 ** versn = "KI3K040849 * _wait = on "KI3K040849 * exceptions "KI3K040849 * foreign_lock = 01 "KI3K040849 * system_failure = 02. "KI3K040849

KBPS_ENQUEUE CALL FUNCTION 'KBPS_ENQUEUE' "KI3K040849 EXPORTING "KI3K040849 i_global_objhi = bpin-objhi "KI3K040849 *(DEL) i_global_wrttp = l_wfbudget "KI3K040849 "KI3K067412 i_global_wrttp = l_budcarr_enq_wt "KI3K067412 i_global_geber = bpin-geber "KI3K040849 * I_GLOBAL_VERSN = ' ' "KI3K040849 i_global_enqueue = on "KI3K040849 i_wait = on "KI3K040849 EXCEPTIONS "KI3K040849 foreign_lock = 1 "KI3K040849 system_failure = 2. "KI3K040849

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

KBPV_POST_CARRIER CALL FUNCTION 'KBPV_POST_CARRIER' EXPORTING dialog_update = l_dialog TABLES tab_bpck = gt_ins_bpck tab_bpcg = gt_ins_bpcg tab_bpcj = gt_ins_bpcj.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

FM_TOTALS_READ_FOR_BUDGET CALL FUNCTION 'FM_TOTALS_READ_FOR_BUDGET' EXPORTING i_farea = p_fikrs TABLES t_assigned_budget = l_t_assigned t_fonds = l_r_geber t_fyear = l_r_gjahr.

FM_COMMITMENT_ITEM_READ CALL FUNCTION 'FM_COMMITMENT_ITEM_READ' "KI4K020746 EXPORTING "KI4K020746 i_fikrs = p_fikrs "KI4K020746 i_gjahr = bpin-sjahr "KI4K020746 i_fipex = lt_data-fipex "KI4K020746 i_flg_buffer_all = 'X' "KI4K020746 IMPORTING "KI4K020746 e_f_vfmpg = l_f_vfmpg "KI4K020746 EXCEPTIONS "KI4K020746 OTHERS = 1. "KI4K020746

FMFPO_READ_QUICK





* CALL FUNCTION 'FMFPO_READ_QUICK' "KI4K020746 * EXPORTING "KI4K020746 * IP_FIKRS = P_FIKRS "KI4K020746 * IP_GJAHR = BPIN-SJAHR "YYPOS "KI4K020746 * IP_FIPOS = LT_DATA-FIPOS "KI4K020746 * IP_FLG_BUFFER_ALL = 'X' "KI4K020746 * IMPORTING "KI4K020746 * F_FMFPO = L_F_FMFPO "KI4K020746 * EXCEPTIONS "KI4K020746 * OTHERS = 1. "KI4K020746

FM_FICTR_READ_MULTIPLE CALL FUNCTION 'FM_FICTR_READ_MULTIPLE' EXPORTING i_fikrs = bpin-fikrs i_date = l_date_fictr i_gjahr = bpin-sjahr "YYCTR TABLES r_fictr = lr_dummy_fictr r_ctr_objnr = lr_ctr_objnr t_fmfctr = lt_fmfctr t_fmfctrt = lt_dummy_fmfctrt EXCEPTIONS master_data_not_found = 1.

FM_FIPOS_READ_MULTIPLE CALL FUNCTION 'FM_FIPOS_READ_MULTIPLE' EXPORTING i_fikrs = bpin-fikrs i_gjahr = bpin-sjahr "YYPOS TABLES r_fipos = lr_dummy_fipos r_posit = lr_posit t_fmfpo = lt_fmfpo t_fmfpot = lt_dy_fmfpot t_fmfcpo = lt_fmfcpo *(DEL) t_fmfcpot = lt_dy_fmfcpot. "KI3K034970 "KI3K090076

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = sy-repid * I_CALLBACK_PF_STATUS_SET = ' ' * I_CALLBACK_USER_COMMAND = ' ' i_callback_top_of_page = 'TOP_OF_GRID' i_callback_html_top_of_page = 'HTML_TOP_OF_GRID' * I_CALLBACK_HTML_END_OF_LIST = ' ' * I_STRUCTURE_NAME = i_background_id = g_background_id * I_GRID_TITLE = * I_GRID_SETTINGS = is_layout = l_layout it_fieldcat = gt_fcat * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' * I_SAVE = ' ' * IS_VARIANT = * IT_EVENTS = * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 I_HTML_HEIGHT_TOP = '30' * I_HTML_HEIGHT_END = 0 * IT_ALV_GRAPHICS = * IT_HYPERLINK = * IT_ADD_FIELDCAT = * IT_EXCEPT_QINFO = * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = gt_list EXCEPTIONS program_error = 1 OTHERS = 2 .



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