RBPGJA02 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program enables you to carry unused budget from a closed fiscal year forward to the following year...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 RBPGJA02 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
KOCO - Budget Carryforward for Orders
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: P_VAR = Selection Variant
Selection Text: P_TEST = Test Run
Selection Text: P_LIST = Detail List
Selection Text: P_GJAHR = Fiscal Year
Selection Text: P_BLDAT = Document date
Title: Budget Carryforward for Orders
Text Symbol: 141 = Report
Text Symbol: 140 = Currency
Text Symbol: 134 = Year change already carried out for relevant capital investment program
Text Symbol: 133 = No budget profile has been entered in the order type for the order
Text Symbol: 132 = Error in status management
Text Symbol: 131 = Activity "Receiver carryforward (FYC)" prohibited
Text Symbol: 130 = Activity "Sender carryforward (FYC)" prohibited
Text Symbol: 122 = Warning messages:
Text Symbol: 121 = Error messages:
Text Symbol: 120 = Termination messages:
Text Symbol: 113 = No errors occurred
Text Symbol: 111 = Error log:
Text Symbol: 110 = Document date:
Text Symbol: 109 = Sender fiscal year:
Text Symbol: 108 = Update Run
Text Symbol: 107 = Test Run
Text Symbol: 106 = Number of error messages that occurred:
Text Symbol: 105 = Number of orders for which carryforward is possible:
Text Symbol: 104 = Number of orders for which carry forward took place:
Text Symbol: 103 = Number of orders with budget:
Text Symbol: 102 = Number of orders selected:
Text Symbol: 100 = Selection variant:
Text Symbol: 065 = Prev. carryfwd
Text Symbol: 064 = Actual
Text Symbol: 062 = Budget
Text Symbol: 061 = Carryfwd
Text Symbol: 060 = Order
Text Symbol: 052 = No carryforward (calculated carryforward =0 ):
Text Symbol: 051 = Carry forward negative balance:
Text Symbol: 050 = Carry forward positive balance:
Text Symbol: 003 = Processing options
Text Symbol: 002 = Parameters
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
K_ORDER_BUFFER_REFRESH CALL FUNCTION 'K_ORDER_BUFFER_REFRESH'.
RS_VARIANT_EXISTS CALL FUNCTION 'RS_VARIANT_EXISTS' EXPORTING report = 'RKOSEL00' variant = p_var IMPORTING r_c = subrc.
K_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' EXPORTING popup = c_on IMPORTING e_kokrs = kokrs.
K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING kokrs = kokrs IMPORTING e_tka01 = s_tka01 EXCEPTIONS OTHERS = 1.
DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = sy-datum i_periv = s_tka01-lmona "fiscal year variant IMPORTING e_gjahr = current_gjahr.
K_ORDER_GET_OBJNR * CALL FUNCTION 'K_ORDER_GET_OBJNR' * EXPORTING * INDEX_FROM = INT_FROM * INDEX_TO = INT_TO * TABLES * T_OBJNR = T_OBJNR.
STATUS_BUFFER_REFRESH CALL FUNCTION 'STATUS_BUFFER_REFRESH'.
STATUS_PRE_READ CALL FUNCTION 'STATUS_PRE_READ' TABLES jsto_pre_tab = t_objnr.
K_ORDER_BUFFER_READ * CALL FUNCTION 'K_ORDER_BUFFER_READ' * EXPORTING * I_TABIX = TABIX * IMPORTING * E_AUFK = S_AUFK.
AIPA_CARRY_OVER_PROTOCOL CALL FUNCTION 'AIPA_CARRY_OVER_PROTOCOL'. "coke
RS_VARIANT_CATALOG CALL FUNCTION 'RS_VARIANT_CATALOG' EXPORTING report = 'RKOSEL00' * NEW_TITLE = 'Selektionsvarianten' IMPORTING sel_variant = f_variant.
K_ORDER_SELTAB_STORE CALL FUNCTION 'K_ORDER_SELTAB_STORE' EXPORTING variant = f_variant * TABLES * SELTAB = only relevant in case of dynamically changed * selection variant EXCEPTIONS error_message = 1.
K_ORDER_SELECT CALL FUNCTION 'K_ORDER_SELECT' EXPORTING i_autyp_erl = c_autyp_erl IMPORTING e_tabix = f_buffer_size EXCEPTIONS error_message = 1.
K_ORDER_GET_ALL CALL FUNCTION 'K_ORDER_GET_ALL' * IMPORTING * TABIX = TABLES aufkv_tab = ft_aufkv.
STATUS_CHANGE_FOR_ACTIVITY CALL FUNCTION 'STATUS_CHANGE_FOR_ACTIVITY' EXPORTING check_only = c_on objnr = f_objnr vrgng = f_vrgng EXCEPTIONS activity_not_allowed = 1 * OBJECT_NOT_FOUND = * STATUS_INCONSISTENT = * STATUS_NOT_ALLOWED = * WRONG_INPUT = * WARNING_OCCURED = OTHERS = 2.
KBPR_READ_DATA CALL FUNCTION 'KBPR_READ_DATA' EXPORTING * INIT = 'X' currency = l_owaer "MCUR kokrs = f_kokrs objnr = f_objnr value_typ = c_wrttp_41 versn = c_versn_0 year_end = f_next_gjahr year_start = f_gjahr read_bpja = c_yes read_bpge = c_no read_bppe = c_no read_bpij = c_no read_bpig = c_no read_bptr = c_no IMPORTING subrc = f_subrc TABLES bp_ja = lt_bpja tab_bpcu = lt_bpcu. "MCUR
OBJECT_KEY_GET_OR CALL FUNCTION 'OBJECT_KEY_GET_OR' EXPORTING objnr = f_objnr IMPORTING aufnr = f_aufnr EXCEPTIONS not_found = 1 wrong_obart = 2 OTHERS = 3.
CO_SF_AFVG_READ CALL FUNCTION 'CO_SF_AFVG_READ' EXPORTING aufnr_imp = f_aufnr TABLES tafvc_exp = tafvc EXCEPTIONS not_found = 1 missing_parameter = 2 OTHERS = 3.
K_COSPA_READ_MULTI CALL FUNCTION 'K_COSPA_READ_MULTI' EXPORTING * VON_PERIODE = 001 bis_periode = generated_periods modus = 3 formname = 'ADD_COSP_ACTUAL' ************************************************************************ ** Begin of comment C5053248 ************************************************************************ * PROGNAME = 'RBPGJA02' ************************************************************************ *** End of comment C5053248 ************************************************************************ ************************************************************************ *** Begin of ALV Conversion C5053248 ************************************************************************ progname = 'RBPGJA02' ************************************************************************ *** End of ALV Conversion C5053248 ************************************************************************ TABLES t_cosel = ft_cosel.
RK_KSTAR_READ CALL FUNCTION 'RK_KSTAR_READ' EXPORTING datum = sy-datum kokrs = kokrs kstar = f_cospa-kstar IMPORTING v_cskb = ls_cskbv EXCEPTIONS OTHERS = 3.
BP_COST_ELEMENT_CHECK CALL FUNCTION 'BP_COST_ELEMENT_CHECK' "note 137081 EXPORTING "note 137081 hrkft = f_cospa-hrkft "note 137081 kokrs = kokrs "note 137081 kstar = f_cospa-kstar "note 137081 EXCEPTIONS "note 137081 not_included = 1. "note 137081
KBPS_CURRENCY_CONVERT CALL FUNCTION 'KBPS_CURRENCY_CONVERT' "MCUR EXPORTING "MCUR i_kokrs = t_aufkv-kokrs "MCUR i_cospa = f_cospa "MCUR i_currency = t_aufkv-waers "MCUR IMPORTING "MCUR e_summe = l_sum_cosx_wkg. "MCUR
K_COSSA_READ_MULTI CALL FUNCTION 'K_COSSA_READ_MULTI' EXPORTING * VON_PERIODE = 001 bis_periode = generated_periods modus = 3 formname = 'ADD_COSS_ACTUAL' ************************************************************************ ** Begin of comment C5053248 ************************************************************************ * PROGNAME = 'RBPGJA02' ************************************************************************ *** End of comment C5053248 ************************************************************************ ************************************************************************ *** Begin of ALV Conversion C5053248 ************************************************************************ progname = 'RBPGJA02' ************************************************************************ *** End of ALV Conversion C5053248 ************************************************************************ von_periode = c_first_period TABLES t_cosel = ft_cosel.
RK_KSTAR_READ CALL FUNCTION 'RK_KSTAR_READ' EXPORTING datum = sy-datum kokrs = kokrs kstar = f_cossa-kstar IMPORTING v_cskb = ls_cskbv EXCEPTIONS OTHERS = 3.
BP_COST_ELEMENT_CHECK CALL FUNCTION 'BP_COST_ELEMENT_CHECK' "note 137081 EXPORTING "note 137081 hrkft = f_cossa-hrkft "note 137081 kokrs = kokrs "note 137081 kstar = f_cossa-kstar "note 137081 EXCEPTIONS "note 137081 not_included = 1. "note 137081
KBPS_CURRENCY_CONVERT CALL FUNCTION 'KBPS_CURRENCY_CONVERT' "MCUR EXPORTING "MCUR i_kokrs = t_aufkv-kokrs "MCUR i_cossa = f_cossa "MCUR i_currency = t_aufkv-waers "MCUR IMPORTING "MCUR e_summe = l_sum_cosx_wkg. "MCUR
AIPA_CARRY_OVER_PROTOCOL_PREP CALL FUNCTION 'AIPA_CARRY_OVER_PROTOCOL_PREP' "coke EXPORTING "coke i_kokrs = l_kokrs "coke TABLES "coke it_bobj = t_obj it_bpak = ft_bpak. "coke
KBPP_EXTERN_UPDATE CALL FUNCTION 'KBPP_EXTERN_UPDATE' EXPORTING * IMP_BELNR = ' ' imp_carry_over = c_yes imp_check = f_test imp_commit = c_no imp_fcode = f_buorcf * IMP_TCODE = ' ' * IMP_UNAME = ' ' * IMP_PREL_DEL = ' ' TABLES imp_bpak = ft_bpak.
MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = lt_mesg.
MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.
MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = f_msgid * EXCEPTION_IF_NOT_ACTIVE = 'X' msgty = f_msgty msgv1 = f_msgv1 msgv2 = f_msgv2 msgv3 = f_msgv3 msgv4 = f_msgv4 txtnr = l_txtnr.
K_VRGNG_AUTHORITY_CHECK CALL FUNCTION 'K_VRGNG_AUTHORITY_CHECK' EXPORTING actvt = f_actvt kokrs = f_kokrs vrgng = c_vorga_kbw1 * VRGNG_TEXT = ' ' EXCEPTIONS system_error = 1 user_not_authorized = 2 OTHERS = 3.
K_VRGNG_AUTHORITY_CHECK CALL FUNCTION 'K_VRGNG_AUTHORITY_CHECK' EXPORTING actvt = '16' kokrs = kokrs vrgng = c_vorga_kbw2 vrgng_text = ' ' EXCEPTIONS system_error = 1 user_not_authorized = 2 OTHERS = 3.
MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS a_message = 1 e_message = 2 i_message = 3 w_message = 4 OTHERS = 5.
AIPA_CHECK_MEAS_YRCHG CALL FUNCTION 'AIPA_CHECK_MEAS_YRCHG' EXPORTING i_objnr = f_objnr i_from_year = f_gjahr i_to_year = f_next_gjahr IMPORTING e_subrc = f_subrc.
KBPS_CHECK_PROFIL CALL FUNCTION 'KBPS_CHECK_PROFIL' EXPORTING applik = l_order profil = f_bprof wrttp = '41' IMPORTING ex_bp1c = ls_tbp1c EXCEPTIONS not_found = 1.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid i_callback_pf_status_set = gc_set_pf_status is_layout = ls_layout_list it_fieldcat = lt_fieldcat_list it_events = lt_eventtab_list is_print = gs_print_global TABLES t_outtab = it_outstat EXCEPTIONS program_error = 1 OTHERS = 2.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gv_repid i_structure_name = gc_str1 CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gv_repid i_structure_name = gc_str2 CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = xt_eventtab EXCEPTIONS list_type_wrong = 1 OTHERS = 2.
REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = it_line.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid is_layout = ls_layout_list it_fieldcat = lt_fieldcat_list it_events = lt_eventtab_list is_print = gs_print_global TABLES t_outtab = it_pvcarry EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid is_layout = ls_layout_list it_fieldcat = lt_fieldcat_list it_events = lt_eventtab_list is_print = gs_print_global TABLES t_outtab = it_nvcarry EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid is_layout = ls_layout_list it_fieldcat = lt_fieldcat_list it_events = lt_eventtab_list is_print = gs_print_global TABLES t_outtab = it_nocarry EXCEPTIONS program_error = 1 OTHERS = 2.
BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = is_log IMPORTING e_log_handle = xs_log_handle EXCEPTIONS log_header_inconsistent = 1 OTHERS = 2.
BAL_LOG_MSG_ADD_FREE_TEXT CALL FUNCTION 'BAL_LOG_MSG_ADD_FREE_TEXT' EXPORTING i_log_handle = gs_log_handle i_msgty = iv_msgty i_text = iv_text1 EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.
BAL_LOG_MSG_ADD * CALL FUNCTION 'BAL_LOG_MSG_ADD' * EXPORTING * I_LOG_HANDLE = gs_log_handle * i_s_msg = l_s_msg * EXCEPTIONS * LOG_NOT_FOUND = 0 * OTHERS = 1.
BAL_DSP_PROFILE_DETLEVEL_GET CALL FUNCTION 'BAL_DSP_PROFILE_DETLEVEL_GET' IMPORTING e_s_display_profile = xs_display_profile EXCEPTIONS OTHERS = 1.
AIPA_APPL_LOG_WRITE_AS_LIST CALL FUNCTION 'AIPA_APPL_LOG_WRITE_AS_LIST' EXPORTING id_title = sy-title EXCEPTIONS abend_occured = 1 OTHERS = 2.
BAL_DSP_LOG_DISPLAY * CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' * EXPORTING * i_s_display_profile = xs_display_profile * EXCEPTIONS * profile_inconsistent = 1.
BAL_DSP_LOG_PRINT CALL FUNCTION 'BAL_DSP_LOG_PRINT' EXPORTING i_s_list_append = gc_x i_s_display_profile = xs_display_profile EXCEPTIONS profile_inconsistent = 1.
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 RBPGJA02 or its description.