SAP Reports / Programs

BPCALC01 SAP ABAP Report - Calculate Budget Surcharges







BPCALC01 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Program BPCALC01 calculates surcharges in the budget...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 BPCALC01 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

OF4C - Calculate Budget Surcharges


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 BPCALC01. "Basic submit
SUBMIT BPCALC01 AND RETURN. "Return to original report after report execution complete
SUBMIT BPCALC01 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: G_VERSN = Version
Selection Text: G_RESET = Reset Surcharges
Selection Text: G_GJAHR = Fiscal year
Selection Text: G_FOND = Fund
Selection Text: G_FIKRS = FM area
Title: Calculate Budget Surcharges
Text Symbol: 400 = Budget Surcharges
Text Symbol: 301 = Reset Surcharges
Text Symbol: 300 = Selection Parameters
Text Symbol: 241 = Surchrg Old
Text Symbol: 240 = Surcharge Old
Text Symbol: 231 = Surcharge New
Text Symbol: 230 = Surcharge New
Text Symbol: 220 = Basis
Text Symbol: 210 = Value Type
Text Symbol: 202 = C/Basis
Text Symbol: 201 = Cat/Basis
Text Symbol: 200 = Category/Basis
Text Symbol: 104 = Document Number/RCode
Text Symbol: 021 = Commitment Budget
Text Symbol: 020 = Payment Budget
Text Symbol: 006 = CB Parked Reserved
Text Symbol: 005 = CB Parked Marked
Text Symbol: 004 = PB Parked Reserved
Text Symbol: 003 = Payment Budget Parked and Flagged
Text Symbol: 002 = Current Budget
Text Symbol: 001 = Original Budget
003 Commitment Budget Payment Budget
002 Surcharge % Amount Surcharge % Amount
001 Vers. FMA FYear Fund Funds Center Commitment Item Category/Base


INCLUDES used within this REPORT BPCALC01

INCLUDE LFMAUEQU.
INCLUDE LKBPPSTN.
INCLUDE LKBPPEQU.


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 EXPORTING i_eu_env = 'X' EXCEPTIONS error_message = 1.

FMFK_FIKRS_READ CALL FUNCTION 'FMFK_FIKRS_READ' EXPORTING ip_fikrs = g_fikrs IMPORTING f_fm01 = l_f_fm01 EXCEPTIONS input_error = 1 not_found = 2 OTHERS = 3.

KBPA_GET_START_FISCAL_YEAR_OPT CALL FUNCTION 'KBPA_GET_START_FISCAL_YEAR_OPT' EXPORTING i_fm_area = g_fikrs i_fin_code = l_fond IMPORTING e_start_fiscal_year = g_gjahr EXCEPTIONS OTHERS = 01.

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

FM_AUTH_CHECK_FM_AREA CALL FUNCTION 'FM_AUTH_CHECK_FM_AREA' EXPORTING i_fikrs = g_fikrs i_actvt = fmau_ac_act i_msgty = 'E'.

FM_FIPOS_GET_FROM_FIPEX CALL FUNCTION 'FM_FIPOS_GET_FROM_FIPEX' "FIPEX aufber.

CONVERSION_EXIT_FIPOS_INPUT * call function 'CONVERSION_EXIT_FIPOS_INPUT' "FIPEX aufber.

GET_POSIT_FROM_FIPOS CALL FUNCTION 'GET_POSIT_FROM_FIPOS' EXPORTING ip_fikrs = g_fikrs ip_fipos = l_fipos IMPORTING op_posit = g_t_bpca-posit.

FINCODE_READ CALL FUNCTION 'FINCODE_READ' EXPORTING ip_fikrs = g_fikrs ip_fincode = g_fond-low ip_gjahr = g_gjahr.

KBPR_READ_DATA CALL FUNCTION 'KBPR_READ_DATA' EXPORTING fikrs = g_fikrs fikrs_ca_periv = 'X' geber = g_t_geber-geber versn = g_versn year_end = g_gjahr year_start = g_gjahr TABLES bp_ja = g_t_bpja tab_objnr = l_t_objnr tab_posit = l_t_posit.

KBPP_EXTERN_UPDATE CALL FUNCTION 'KBPP_EXTERN_UPDATE' EXPORTING imp_fcode = f_fubuec imp_commit = on TABLES imp_bpak = l_t_bpak.

KBPP_EXTERN_UPDATE CALL FUNCTION 'KBPP_EXTERN_UPDATE' EXPORTING imp_fcode = f_fubuec imp_commit = on TABLES imp_bpak = l_t_bpak.

KBPP_EXTERN_UPDATE CALL FUNCTION 'KBPP_EXTERN_UPDATE' EXPORTING imp_fcode = f_fubuec imp_commit = on TABLES imp_bpak = l_t_bpak.

FM5B_GET_PROFILE CALL FUNCTION 'FM5B_GET_PROFILE' EXPORTING i_fikrs = g_fikrs i_fincode = g_t_geber-geber IMPORTING e_profil = g_profil.

FMFK_FIKRS_READ CALL FUNCTION 'FMFK_FIKRS_READ' EXPORTING ip_application_data = on ip_fikrs = g_fikrs IMPORTING f_fm01 = fm01.

KBPS_FIND_LEDGER CALL FUNCTION 'KBPS_FIND_LEDGER' EXPORTING currency = fm01-waers periv = fm01-ca_periv IMPORTING ledger = g_lednr TABLES bp_cur = l_t_dummy.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS OTHERS = 1.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = l_t_mesg.

OUTBOUND_CALL_00101133_P





CALL FUNCTION 'OUTBOUND_CALL_00101133_P' EXPORTING i_chgtype = 'D' i_origin = 'BPCALC01 RESET_CALCULATION' TABLES t_bpja = l_t_bpja_bw.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = ls_repid i_callback_user_command = 'USER_COMMAND' i_callback_top_of_page = 'TOP_OF_PAGE' i_callback_html_top_of_page = 'HTML_TOP_OF_PAGE' i_grid_title = text-400 is_layout = ls_layo it_fieldcat = lt_fcat it_sort = ls_sort i_save = 'X' TABLES t_outtab = gt_master EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = sy-repid i_internal_tabname = 'GT_MASTER' i_inclname = sy-repid CHANGING ct_fieldcat = c_t_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS OTHERS = 1.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = l_t_mesg.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' EXPORTING reset = 'X' EXCEPTIONS log_not_active = 1 wrong_identification = 2 OTHERS = 3.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = g_t_mesg-arbgb msgty = g_t_mesg-msgty msgv1 = g_t_mesg-msgv1 msgv2 = g_t_mesg-msgv2 msgv3 = g_t_mesg-msgv3 msgv4 = g_t_mesg-msgv4 txtnr = g_t_mesg-txtnr EXCEPTIONS message_type_not_valid = 1 not_active = 2 OTHERS = 3.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING i_use_grid = 'X' EXCEPTIONS inconsistent_range = 1 no_messages = 2 OTHERS = 3.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS OTHERS = 1.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = c_t_mesg.

PAK_GET_SHORTTEXT_DTEL CALL FUNCTION 'PAK_GET_SHORTTEXT_DTEL' EXPORTING i_elem_key = p_0486 i_language = sy-langu IMPORTING e_short_text = c_string_header.



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