BPCARRT0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Delete Budget Structure You use program
If you would like to execute this report or see the full code listing simply enter BPCARRT0 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
FM9M - FM: Delete Budget Structure
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: G_TEST = Test run
Selection Text: G_GROUP = Assignments of BS Template
Selection Text: G_GJAHR = Fiscal year
Selection Text: G_FUNDS = Fund
Selection Text: G_FIKRS = FM area
Selection Text: G_CO_PAY = Assignment object pymt bdgt
Selection Text: G_CO_COM = Assignment object commt bdgt
Selection Text: G_BP_PAY = Budget object
Selection Text: G_BALCAR = Net vote object
Selection Text: G_ALL_GJ = Overall
Selection Text: G_ALL_FU = All funds
Selection Text: G_ACCAR = Posting object
Title: Delete Budget Structure
Text Symbol: 507 = Update Run
Text Symbol: 506 = Test Run
Text Symbol: 505 = Processing Status
Text Symbol: 208 = BPCK
Text Symbol: 207 = BPCG
Text Symbol: 206 = BPCJ
Text Symbol: 205 = FMFCTRBP
Text Symbol: 130 = Time base
Text Symbol: 120 = Object categories
Text Symbol: 110 = Fund
Text Symbol: 100 = Object was locked
Text Symbol: 090 = No data was selected for deletion
Text Symbol: 012 = Number of Data Records
Text Symbol: 011 = Number of data records to be deleted:
Text Symbol: 010 = Number of data records deleted:
Text Symbol: 008 = year?
Text Symbol: 007 = Do you really want to delete the bgt structure in
Text Symbol: 006 = Do you really want to delete BS for all years?
Text Symbol: 005 = only for year-dependent master data
Text Symbol: 004 = Fiscal year
Text Symbol: 002 = Do you really want to delete?
Text Symbol: 001 = Delete budget structure
INCLUDE LFMAUEQU.
INCLUDE LKBPPSTN.
INCLUDE LKBPPEQU.
No SAP DATABASE tables are accessed within this REPORT code!
FM_BUD_CHECK_COMPONENT CALL FUNCTION 'FM_BUD_CHECK_COMPONENT' "470 EXCEPTIONS error_message = 1.
FM00_CHECK_ISPS CALL FUNCTION 'FM00_CHECK_ISPS' IMPORTING e_kom_activ = g_kom_system EXCEPTIONS OTHERS = 1.
FM_GET_ACTIVE_DIMENSIONS CALL FUNCTION 'FM_GET_ACTIVE_DIMENSIONS' "470 IMPORTING e_fund_active = g_fund_activ.
FMFK_FIKRS_READ CALL FUNCTION 'FMFK_FIKRS_READ' EXPORTING ip_fikrs = g_fikrs.
FM_AUTH_CHECK_FM_AREA CALL FUNCTION 'FM_AUTH_CHECK_FM_AREA' EXPORTING i_fikrs = g_fikrs i_actvt = fmau_ac_ini i_msgty = 'E'.
FINCODE_READ CALL FUNCTION 'FINCODE_READ' EXPORTING ip_fikrs = g_fikrs ip_fincode = g_funds.
FM_FIKRS_CHECK_MD_YEAR_DEPEND CALL FUNCTION 'FM_FIKRS_CHECK_MD_YEAR_DEPEND' EXPORTING i_fikrs = g_fikrs IMPORTING e_flg_year_master_data = l_flg_year_master_data.
POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING defaultoption = nein textline1 = g_prompt_text1 * textline2 = text-003 titel = text-001 * START_COLUMN = 25 * START_ROW = 6 IMPORTING answer = l_answer EXCEPTIONS OTHERS = 1.
KBPS_OBJHI_NAME_GENERATE CALL FUNCTION 'KBPS_OBJHI_NAME_GENERATE' EXPORTING i_application = l_funds i_fm_area = g_fikrs IMPORTING e_objhi = l_objhi.
KBPD_DELETE_CARRIER *(DEL)call function 'KBPD_DELETE_CARRIER' "KI3K040077 *(DEL) exporting "KI3K040077 *(DEL) delete_mode = l_do_delete "KI3K040077 *(DEL) geber = l_geber "KI3K040077 *(DEL) geber_all = g_all_fu "KI3K040077 *(DEL) objhi = l_objhi "KI3K040077 *(DEL) tables "KI3K040077 *(DEL) tab_objnr = lt_objnr "KI3K040077 *(DEL) tab_werttp = lt_wrttp "KI3K040077 *(DEL) tab_prot = lt_prot. "KI3K040077
FM12_DELETE_CARRIER CALL FUNCTION 'FM12_DELETE_CARRIER' "KI3K040077 EXPORTING "KI3K040077 i_delete_mode = l_do_delete "KI3K040077 i_geber = l_geber "KI3K040077 i_geber_all = g_all_fu "KI3K040077 i_objhi = l_objhi "KI3K040077 i_del_group_assign = g_group "KI3K040077 i_gjahr = g_gjahr "KI4K028116 TABLES "KI3K040077 tab_objnr = lt_objnr "KI3K040077 tab_werttp = lt_wrttp "KI3K040077 tab_prot = lt_prot. "KI3K040077
DEQUEUE_ALL *(DEL) call function 'DEQUEUE_ALL'. "P30K131517 "KI3K076136
DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'. "KI3K076136
KBPS_OBJHI_NAME_GENERATE CALL FUNCTION 'KBPS_OBJHI_NAME_GENERATE' EXPORTING i_application = l_funds i_fm_area = g_fikrs IMPORTING e_objhi = l_objhi.
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' EXPORTING i_global_objhi = l_objhi *(DEL) i_global_wrttp = l_wfbudget "KI3K067412 i_global_wrttp = l_budcarr_enq_wt "KI3K067412 i_global_geber = lt_geber-geber * I_GLOBAL_VERSN = ' ' i_global_enqueue = on i_wait = on EXCEPTIONS foreign_lock = 1 system_failure = 2.
DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.
DDIF_DTEL_GET CALL FUNCTION 'DDIF_DTEL_GET' EXPORTING name = 'FIKRS' langu = sy-langu IMPORTING dd04v_wa = l_dd04v.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = l_repid i_callback_top_of_page = 'TOP_OF_GRID' i_callback_html_top_of_page = 'HTML_TOP_OF_GRID' i_background_id = g_background_id is_layout = l_layout it_fieldcat = gt_fcat i_html_height_top = '30' TABLES t_outtab = gt_list EXCEPTIONS program_error = 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 BPCARRT0 or its description.