SAP Reports / Programs

RFGMAB30 SAP ABAP Report - Budget Vs. Commit./Actual Journal







RFGMAB30 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The report displays released and posted budget compared with commitment/actuals on a line item basis for period-based encumbrance/actual tracking...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 RFGMAB30 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 RFGMAB30. "Basic submit
SUBMIT RFGMAB30 AND RETURN. "Return to original report after report execution complete
SUBMIT RFGMAB30 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: S_SPROG = D .
Selection Text: S_SPART = Sponsor
Selection Text: S_SCLAS = D .
Selection Text: S_GRANT = D .
Selection Text: S_FUND = D .
Selection Text: S_BUKRS = D .
Selection Text: S_BUDAT = D .
Selection Text: SHOWPAY = Show Payments
Selection Text: P_SGMPER = Show Validity Periods in Range
Selection Text: P_SGMOBJ = Show All Sponsored Objects
Selection Text: P_GRGRP = Grant Group
Selection Text: P_C_TYPE = D .
Selection Text: P_C_DATE = D .
Selection Text: P_C_CURR = D .
Selection Text: PVERSION = D .
Selection Text: PUSEOMAP = D .
Selection Text: PSTOTAL = Subtotal per Timeslice
Selection Text: PBYPROG = By Grant/Fund/Prog
Selection Text: PBYGRANT = By Grant
Selection Text: PBYCLASS = By Grant/Fund/Prog/Class
Title: Budget Vs. Commit./Actual Journal
Text Symbol: 931 = Budget
Text Symbol: 921 = Report Extraction
Text Symbol: 911 = Report Currency
Text Symbol: 901 = Options
Text Symbol: 533 = Balance Sequence
Text Symbol: 532 = Position
Text Symbol: 531 = Header
Text Symbol: 331 = Prepare Output
Text Symbol: 330 = Retrieve GM Data
Text Symbol: 303 = Subtotal
Text Symbol: 302 = Prior Actual Total
Text Symbol: 301 = Prior Budget Total
Text Symbol: 300 = Beginning Total
Text Symbol: 222 = active
Text Symbol: 221 = Dynamic Selections
Text Symbol: 156 = Grant Currency
Text Symbol: 155 = Currency:





Text Symbol: 154 = Budget Version:
Text Symbol: 151 = By Grant Validity
Text Symbol: 150 = Posting Dates:


INCLUDES used within this REPORT RFGMAB30

INCLUDE GMINCLUDE1.
INCLUDE GMREPINCLFKT.


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:

FREE_SELECTIONS_INIT call function 'FREE_SELECTIONS_INIT' exporting kind = 'T' expressions = c_f_dyns-texpr importing selection_id = l_selection_id where_clauses = c_f_dyns-clauses expressions = c_f_dyns-texpr field_ranges = c_f_dyns-trange " field_groups_key = l_rsdsqcat number_of_active_fields = c_dynscnt tables tables_tab = l_t_tables fields_tab = l_t_fields exceptions too_many_fields = 13.

FREE_SELECTIONS_DIALOG call function 'FREE_SELECTIONS_DIALOG' exporting selection_id = l_selection_id title = l_title frame_text = ' ' as_window = con_on importing where_clauses = c_f_dyns-clauses expressions = c_f_dyns-texpr field_ranges = c_f_dyns-trange number_of_active_fields = c_dynscnt tables fields_tab = l_t_fields exceptions no_action = 2.

GM_GET_BUDGET_VERSION call function 'GM_GET_BUDGET_VERSION' exporting i_bdgt_version = u_bdgt_version * I_LANGUAGE = SY-LANGU importing e_f_gmbdgtversion = c_f_bdgtversion-gm e_bdgt_version_desc = c_f_bdgtversion-text exceptions others = 1.

DYNP_VALUES_READ call function 'DYNP_VALUES_READ' exporting dyname = sy-cprog "Current program dynumb = sy-dynnr "Current screen tables dynpfields = l_dynpfields. "Relevant screen fields

G_RW_SET_SELECT call function 'G_RW_SET_SELECT' exporting set = l_set class = l_class field_name = l_fieldname table = l_table show_table_name = ' ' show_field_name = ' ' no_field_name_change = 'X' no_table_name_change = 'X' importing set_name = l_set class_name = l_class exceptions no_set_picked = 01 no_sets = 02 others = 999.

DYNP_VALUES_UPDATE call function 'DYNP_VALUES_UPDATE' exporting dyname = sy-cprog dynumb = sy-dynnr tables dynpfields = l_dynpfields.

G_SET_ENCRYPT_SETID call function 'G_SET_ENCRYPT_SETID' exporting setclass = l_class shortname = l_shortname importing setid = l_setid exceptions illegal_setclass = 2 others = 3.

G_SET_TREE_IMPORT call function 'G_SET_TREE_IMPORT' exporting setid = l_setid fieldname = l_fieldname tabname = l_tabname no_descriptions = con_on no_rw_info = con_on exceptions others = 1.

GM_DOCUMENT_DISPLAY call function 'GM_DOCUMENT_DISPLAY' exporting i_gmia = l_gmia * I_SHOW_GM_LINE_ITEM = ' ' exceptions document_not_found = 1 others = 2.

REUSE_ALV_GRID_LAYOUT_INFO_GET call function 'REUSE_ALV_GRID_LAYOUT_INFO_GET' importing es_variant = l_f_variant exceptions no_infos = 1 program_error = 2 others = 3.

REUSE_ALV_LIST_LAYOUT_INFO_GET call function 'REUSE_ALV_LIST_LAYOUT_INFO_GET' importing es_variant = l_f_variant exceptions no_infos = 1 program_error = 2 others = 3.

CONVERT_TO_LOCAL_CURRENCY call function 'CONVERT_TO_LOCAL_CURRENCY' exporting date = adate foreign_amount = i_amount foreign_currency = i_curr local_currency = o_curr type_of_rate = g_rep_c_type importing local_amount = amount exceptions others = 1.

FI_PERIOD_DETERMINE call function 'FI_PERIOD_DETERMINE' exporting i_budat = u_f_eperio-d i_periv = u_f_gmgr-grant_fy_variant importing e_gjahr = u_f_eperio-gjahr e_monat = u_f_eperio-monat e_poper = u_f_eperio-poper exceptions others = 8.

FI_PERIOD_DETERMINE call function 'FI_PERIOD_DETERMINE' exporting i_budat = u_f_eperio-d i_bukrs = u_f_gmgr-company_code importing e_gjahr = u_f_eperio-gjahr e_monat = u_f_eperio-monat e_poper = u_f_eperio-poper exceptions others = 8.

GM_GET_BUDGET_PERIODS call function 'GM_GET_BUDGET_PERIODS' exporting p_grant_nbr = u_grant_nbr p_bdgt_phase = u_bdgt_phase tables t_budget_periods = l_t_budget_periods exceptions others = 1.

FM_FUND_READ call function 'FM_FUND_READ' exporting i_fikrs = u_fmarea i_fincode = u_fund * I_FLG_TEXT = ' ' * I_DATE = * I_POPER_FIKRS = * I_GJAHR_FINCODE = * I_GJAHR_FIKRS = importing e_f_fmfincode = l_f_fmfincode * E_F_FMFINT = exceptions others = 1.






FM_AUTH_CHECK_GRP_FUND call function 'FM_AUTH_CHECK_GRP_FUND' exporting i_fikrs = u_fmarea i_authgrp_fonds = l_f_fmfincode-augrp i_fonds = l_f_fmfincode-fincode i_actvt = '03' * I_ACTVT_A = * I_FLG_FONDS_SPACE = ' ' i_msgty = 'E' importing e_flg_auth = l_flg_auth * E_FLG_AUTH_A = exceptions error_message = 1 others = 2.

T001_READ call function 'T001_READ' exporting bukrs = u_f_gmitem-dat-bukrs importing struct = l_f_t001 exceptions others = 1.

FMFK_GET_FIKRS_FROM_BUKRS call function 'FMFK_GET_FIKRS_FROM_BUKRS' exporting i_bukrs = u_f_gmitem-dat-bukrs importing e_fikrs = u_f_gmitem-dat-fm_area exceptions no_fikrs_for_bukrs = 1 others = 2.

FM_FIKRS_READ call function 'FM_FIKRS_READ' exporting i_fikrs = u_f_gmitem-dat-fm_area i_flg_text = con_on importing e_f_fm01t = l_f_fm01t exceptions others = 1.

GM_GET_GRANT_SINGLE call function 'GM_GET_GRANT_SINGLE' exporting i_grant_nbr = u_f_gmitem-dat-zkey-grant_nbr * I_LANGUAGE = SY-LANGU i_auth_activity = c_gm_activity_display importing e_gmgrtexts = l_f_gmgrtexts exceptions not_found = 1 others = 2.

GM_GET_FUND_ATTRIBUTES call function 'GM_GET_FUND_ATTRIBUTES' exporting i_fund = u_f_gmitem-dat-zkey-fund i_fmarea = u_f_gmitem-dat-fm_area * I_LANGUAGE = SY-LANGU importing e_gmfundattributes = l_f_gmfundattributes exceptions others = 1.

GM_GET_SPONSORED_PROG_SINGLE call function 'GM_GET_SPONSORED_PROG_SINGLE' exporting i_sponsored_prog = u_f_gmitem-dat-zkey-sponsored_prog i_auth_activity = c_gm_activity_display importing e_gmspprogramtexts = l_f_gmspprogramtexts exceptions not_authorized = 1 others = 2.

GM_GET_SPONSORED_CLASS_SINGLE call function 'GM_GET_SPONSORED_CLASS_SINGLE' exporting i_sponsored_class = u_f_gmitem-dat-zkey-sponsored_class i_auth_activity = c_gm_activity_display importing e_gmspclass = l_f_gmspclass e_gmspclasstexts = l_f_gmspclasstexts exceptions not_authorized = 1 others = 2.

GM_GET_BUDGET_KEY_FIGURES call function 'GM_GET_BUDGET_KEY_FIGURES' exporting i_sel_twhere = pdyns-clauses i_fy_detail_from = l_gjahr "Note 1525220 i_fy_detail_to = g_f_selperiod-to-gjahr tables i_r_version = l_r_rvers i_r_grant_nbr = l_r_grant_nbr i_r_sponsored_prog = s_sprog i_r_sponsored_class = g_r_sponsored_class i_r_fund = s_fund i_r_valuetype = g_r_bdgt_released i_r_stats_ind = g_r_rstats_ind i_r_bdgt_state = l_r_bdgt_state e_t_gmip = l_t_gmip exceptions others = 1.

GM_GET_TIMESLICE_ATTR call function 'GM_GET_TIMESLICE_ATTR' exporting i_grant_nbr = l_t_gmip-rgrant_nbr i_valuetype = l_t_gmip-rvaluetype_9 i_version = l_t_gmip-rvers i_bdgt_vldty_nbr = l_t_gmip-rbdgt_vldty_nbr importing e_bdgt_phase = l_f_gmitem-dat-zkey-bdgt_phase e_bdgt_status = l_f_gmitem-dat-zkey-bdgt_status exceptions not_found = 1 others = 2.

GM_GET_ACTUAL_KEY_FIGURES call function 'GM_GET_ACTUAL_KEY_FIGURES' exporting i_sel_twhere = pdyns-clauses i_fy_totals_from = g_f_grantperiod-from-gjahr i_fy_totals_to = g_f_selperiod-from-gjahr * I_FYPP_DETAIL_FROM = * I_FYPP_DETAIL_TO = tables i_r_grant_nbr = l_r_grant_nbr i_r_sponsored_prog = s_sprog i_r_sponsored_class = g_r_sponsored_class i_r_fund = s_fund i_r_stats_ind = g_r_rstats_ind e_t_gmit = l_t_gmit exceptions others = 1.

GM_GET_TIMESLICE_ATTR call function 'GM_GET_TIMESLICE_ATTR' exporting i_grant_nbr = l_t_gmit-rgrant_nbr i_valuetype = l_t_gmit-rvaluetype_9 i_version = l_t_gmit-rvers i_bdgt_vldty_nbr = l_t_gmit-rbdgt_vldty_nbr importing e_bdgt_phase = l_f_gmitem-dat-zkey-bdgt_phase e_bdgt_status = l_f_gmitem-dat-zkey-bdgt_status exceptions not_found = 1 others = 2.

GM_GET_ACTUAL_KEY_FIGURES call function 'GM_GET_ACTUAL_KEY_FIGURES' exporting i_sel_twhere = pdyns-clauses i_fypp_detail_from = l_fypp_from i_fypp_detail_to = l_fypp_to tables i_r_grant_nbr = l_r_grant_nbr i_r_sponsored_prog = s_sprog i_r_sponsored_class = g_r_sponsored_class i_r_fund = s_fund i_r_stats_ind = g_r_rstats_ind e_t_gmia = l_t_gmia exceptions others = 1.

GM_GET_TIMESLICE_ATTR call function 'GM_GET_TIMESLICE_ATTR' exporting i_grant_nbr = l_t_gmia-rgrant_nbr i_valuetype = l_t_gmia-rvaluetype_9 i_version = l_t_gmia-rvers i_bdgt_vldty_nbr = l_t_gmia-rbdgt_vldty_nbr importing e_bdgt_phase = l_f_gmitem-dat-zkey-bdgt_phase e_bdgt_status = l_f_gmitem-dat-zkey-bdgt_status exceptions not_found = 1 others = 2.

GM_GET_BUDGET_OBJECTS call function 'GM_GET_BUDGET_OBJECTS' exporting p_grant_nbr = g_f_gmgr-grant_nbr p_plan = space p_refresh = con_on tables t_programs = l_t_programs t_classes = l_t_classes t_financing_objects = l_t_financing_objects t_combinations = l_t_combinations exceptions others = 1.

GM_GET_BUDGET_OBJECTS call function 'GM_GET_BUDGET_OBJECTS' exporting p_grant_nbr = g_f_gmgr-grant_nbr p_plan = con_on p_refresh = con_on tables t_programs = l_t_programs t_classes = l_t_classes t_financing_objects = l_t_financing_objects t_combinations = l_t_combinations exceptions others = 1.

GM_OM_GET_MAPPED_OBJECTS call function 'GM_OM_GET_MAPPED_OBJECTS' exporting i_sgrant_nbr = g_f_gmgr-grant_nbr tables et_gmomd = l_t_gmomd[] exceptions not_found = 1 others = 2.

GM_GET_BUDGET_KEY_FIGURES call function 'GM_GET_BUDGET_KEY_FIGURES' tables i_r_version = l_r_rvers i_r_grant_nbr = l_r_grant_nbr i_r_sponsored_prog = l_r_sp_prog i_r_sponsored_class = l_r_sp_class i_r_fund = l_r_fund i_r_valuetype = g_r_bdgt_released e_t_gmip = l_t_gmip exceptions others = 1.

GM_GET_TIMESLICE_ATTR call function 'GM_GET_TIMESLICE_ATTR' exporting i_grant_nbr = l_f_gmitem-dat-zkey-grant_nbr i_valuetype = l_f_gmitem-dat-valuetype i_version = l_f_gmitem-dat-rvers importing e_bdgt_phase = l_bdgt_phase e_bdgt_status = l_bdgt_status exceptions not_found = 1 others = 2.

GM_GET_BDGT_VALIDITY_FROM_DATE



call function 'GM_GET_BDGT_VALIDITY_FROM_DATE' exporting i_grant_nbr = l_f_gmitem-dat-zkey-grant_nbr i_release_status = l_bdgt_status i_date = l_f_gmitem-dat-budat importing e_bdgt_vldty_nbr = l_f_gmitem-dat-zkey-bdgt_vldty_nbr exceptions bdgt_validity_not_found = 1 grant_not_found = 2 invalid_status = 3 blocked_validity = 4 others = 5.

GM_GET_TIMESLICE_ATTR call function 'GM_GET_TIMESLICE_ATTR' exporting i_grant_nbr = l_f_gmitem-dat-zkey-grant_nbr i_valuetype = l_f_gmitem-dat-valuetype i_version = l_f_gmitem-dat-rvers i_bdgt_vldty_nbr = l_f_gmitem-dat-zkey-bdgt_vldty_nbr importing e_bdgt_phase = l_f_gmitem-dat-zkey-bdgt_phase e_bdgt_status = l_f_gmitem-dat-zkey-bdgt_status exceptions not_found = 1 others = 2.

DATE_TO_PERIOD_CONVERT call function 'DATE_TO_PERIOD_CONVERT' exporting i_date = l_f_gmitem-dat-budat i_periv = g_f_gmgr-grant_fy_variant importing e_buper = l_f_gmitem-dat-poper e_gjahr = l_f_gmitem-dat-ryear exceptions others = 1.

GM_GET_ACTUAL_KEY_FIGURES call function 'GM_GET_ACTUAL_KEY_FIGURES' tables i_r_grant_nbr = l_r_grant_nbr i_r_sponsored_prog = l_r_sp_prog i_r_sponsored_class = l_r_sp_class i_r_fund = l_r_fund i_r_stats_ind = g_r_rstats_ind e_t_gmia = l_t_gmia exceptions others = 1.

GM_GET_TIMESLICE_ATTR call function 'GM_GET_TIMESLICE_ATTR' exporting i_grant_nbr = l_f_gmitem-dat-zkey-grant_nbr i_valuetype = l_f_gmitem-dat-valuetype i_version = l_f_gmitem-dat-rvers importing e_bdgt_phase = l_bdgt_phase e_bdgt_status = l_bdgt_status exceptions not_found = 1 others = 2.

GM_GET_BDGT_VALIDITY_FROM_DATE call function 'GM_GET_BDGT_VALIDITY_FROM_DATE' exporting i_grant_nbr = l_f_gmitem-dat-zkey-grant_nbr i_release_status = l_bdgt_status i_date = l_f_gmitem-dat-budat importing e_bdgt_vldty_nbr = l_f_gmitem-dat-zkey-bdgt_vldty_nbr exceptions bdgt_validity_not_found = 1 grant_not_found = 2 invalid_status = 3 blocked_validity = 4 others = 5.

GM_GET_TIMESLICE_ATTR call function 'GM_GET_TIMESLICE_ATTR' exporting i_grant_nbr = l_f_gmitem-dat-zkey-grant_nbr i_valuetype = l_f_gmitem-dat-valuetype i_version = l_f_gmitem-dat-rvers i_bdgt_vldty_nbr = l_f_gmitem-dat-zkey-bdgt_vldty_nbr importing e_bdgt_phase = l_f_gmitem-dat-zkey-bdgt_phase e_bdgt_status = l_f_gmitem-dat-zkey-bdgt_status exceptions not_found = 1 others = 2.

DATE_TO_PERIOD_CONVERT call function 'DATE_TO_PERIOD_CONVERT' exporting i_date = l_f_gmitem-dat-budat i_periv = g_f_gmgr-grant_fy_variant importing e_buper = l_f_gmitem-dat-poper e_gjahr = l_f_gmitem-dat-ryear exceptions others = 1.

SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting text = 'Retrieve GM Data'(330) exceptions others = 1.

GM_GET_GRANTS call function 'GM_GET_GRANTS' exporting i_sel_twhere = pdyns-clauses * I_P_RESPONSIBILITY = * I_P_RESP_OBJ_TYPE = * I_P_RESP_OBJ_ID = i_grant_grpname = p_grgrp tables i_r_grant_nbr = s_grant * I_R_REVISION_NBR = * I_R_INT_REFERENCE = * I_R_EXT_REFERENCE = * I_R_VALID_FROM = i_r_company_code = s_bukrs i_r_partner = s_spart * I_R_LIFECYCLE_STATUS = * E_T_GMGR = e_t_grant_nbr = l_t_igrant exceptions not_found = 1 others = 2.

GM_GET_GRANT_SINGLE call function 'GM_GET_GRANT_SINGLE' exporting i_grant_nbr = l_t_igrant-grant_nbr * I_LANGUAGE = SY-LANGU i_auth_activity = c_gm_activity_display importing e_gmgr = g_f_gmgr * E_GMGRTEXTS = * TABLES * E_T_GMGRCOSTSHARE = * E_T_GMGRFUNDRECOVER = * E_T_GMINDIRECTCOST = * E_T_GMGRIDCCAP = * E_T_GMGRRESPONSIBLE = * E_T_GMGRSPONSOREDOBJ = * E_T_GMGRVALUETYPE = exceptions not_found = 1 not_authorized = 2 others = 3.

FI_COMPANY_CODE_DATA call function 'FI_COMPANY_CODE_DATA' exporting i_bukrs = g_f_gmgr-company_code importing e_t001 = g_f_ficocd exceptions others = 1.

SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting text = 'Prepare Output'(331) exceptions others = 1.

REUSE_ALV_COMMENTARY_WRITE call function 'REUSE_ALV_COMMENTARY_WRITE' exporting it_list_commentary = l_t_listheader.

GM_ALV_LAYOUT call function 'GM_ALV_LAYOUT' changing c_f_layout = c_f_layout.

REUSE_ALV_GRID_DISPLAY call function 'REUSE_ALV_GRID_DISPLAY' exporting * i_interface_check = 'X' i_callback_program = g_repid i_callback_pf_status_set = con_form_pf_status i_callback_user_command = con_form_user_cmd i_structure_name = con_tabname_alv " i_grid_title = l_f_titletext i_grid_settings = l_f_grid_settings is_layout = l_f_layout it_fieldcat = l_t_fcat it_special_groups = l_t_sp_groups it_sort = l_t_sort is_sel_hide = l_f_selcrit i_default = con_on i_save = l_save is_variant = l_f_variant is_print = l_f_print it_events = l_t_events tables t_outtab = g_t_output exceptions program_error = 1 others = 2.

REUSE_ALV_LIST_DISPLAY call function 'REUSE_ALV_LIST_DISPLAY' exporting i_callback_program = g_repid i_callback_pf_status_set = con_form_pf_status i_callback_user_command = con_form_user_cmd i_structure_name = con_tabname_alv is_layout = l_f_layout it_fieldcat = l_t_fcat it_special_groups = l_t_sp_groups it_sort = l_t_sort is_sel_hide = l_f_selcrit i_default = con_on i_save = l_save is_variant = l_f_variant it_events = l_t_events tables t_outtab = g_t_output exceptions program_error = 1 others = 2.

FIRST_DAY_IN_PERIOD_GET call function 'FIRST_DAY_IN_PERIOD_GET' exporting i_gjahr = u_fyear * I_MONMIT = 00 i_periv = u_fy_variant i_poper = l_poper importing e_date = l_first_day exceptions others = 1.

GM_GET_GRANT_SINGLE call function 'GM_GET_GRANT_SINGLE' exporting i_grant_nbr = sf_sc-grant_nbr tables e_t_gmgrsponsoredobj = lt_spobj exceptions others = 1.

GM_GET_SPONSORED_CLASSES call function 'GM_GET_SPONSORED_CLASSES' exporting i_sel_twhere = sf_sc-twhere tables i_r_sponsored_class = lr_spcl e_t_sponsored_class = lt_sponsored_class exceptions not_found = 1 others = 2.

GM_GET_SPONSORED_CLASS_SINGLE CALL FUNCTION 'GM_GET_SPONSORED_CLASS_SINGLE' EXPORTING I_SPONSORED_CLASS = u_f_gmitem-dat-zkey-sponsored_class IMPORTING E_GMSPCLASS = lf_gmspclass EXCEPTIONS OTHERS = 1.



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