SAP Reports / Programs | Public Sector Management | Funds Management | Funds Management-Specific Postings(PSM-FM-PO) SAP PSM

RFMBGACORR1 SAP ABAP INCLUDE - documentation and ABAP source code







RFMBGACORR1 is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RFMBGACORR1 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 RFMBGACORR1. "Basic submit
SUBMIT RFMBGACORR1 AND RETURN. "Return to original report after report execution complete
SUBMIT RFMBGACORR1 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT RFMBGACORR1

No INCLUDES are used within this REPORT code!


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:

FIRST_DAY_IN_PERIOD_GET CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = p_gjahr i_periv = g_f_t001-periv i_poper = l_poper IMPORTING e_date = br_budat-low.

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = p_gjahr i_periv = g_f_t001-periv i_poper = l_poper IMPORTING e_date = br_budat-high.

FIRST_AND_LAST_DAY_IN_YEAR_GET CALL FUNCTION 'FIRST_AND_LAST_DAY_IN_YEAR_GET' EXPORTING i_gjahr = p_gjahr i_periv = g_f_t001-periv IMPORTING e_first_day = br_budat-low e_last_day = br_budat-high.

FIND_TAX_SPREADSHEET CALL FUNCTION 'FIND_TAX_SPREADSHEET' EXPORTING buchungskreis = g_f_t001-bukrs IMPORTING schema = l_scheme.

FMBGA_HH_TAX_GET CALL FUNCTION 'FMBGA_HH_TAX_GET' EXPORTING i_bukrs = g_f_t001-bukrs TABLES t_mwskz = l_t_mwskz_hh.

CALCULATE_TAX_FROM_NET_AMOUNT CALL FUNCTION 'CALCULATE_TAX_FROM_NET_AMOUNT' EXPORTING i_bukrs = g_f_t001-bukrs i_mwskz = t_mwskz-mwskz i_waers = g_f_t001-waers i_wrbtr = l_wrbtr IMPORTING e_fwnav = l_nav e_fwnvv = l_nvv TABLES t_mwdat = l_t_mwdat EXCEPTIONS mwskz_not_defined = 1 mwskz_not_valid = 2 ktosl_not_found = 3 OTHERS = 4.

FM_FIPEX_GET_FROM_FIPOS CALL FUNCTION 'FM_FIPEX_GET_FROM_FIPOS' EXPORTING i_fipos = bseg-fipos IMPORTING e_fipex = l_f_corrdocs-fipex EXCEPTIONS OTHERS = 1.

CUSTOMIZED_MESSAGE CALL FUNCTION 'CUSTOMIZED_MESSAGE' EXPORTING i_arbgb = 'FICUSTOM' i_dtype = 'W' i_msgnr = '076'.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = c_t_events.

FIND_TAX_SPREADSHEET CALL FUNCTION 'FIND_TAX_SPREADSHEET' EXPORTING buchungskreis = g_f_t001-bukrs IMPORTING schema = l_schema.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = l_repid i_structure_name = 'FMBGALV_LEGEND' is_layout = l_f_layout is_print = l_f_print it_events = l_t_events TABLES t_outtab = l_t_t007_out.

FM_FIPEX_GET_FROM_FIPOS CALL FUNCTION 'FM_FIPEX_GET_FROM_FIPOS' EXPORTING i_fipos = g_t_docs-fipos IMPORTING e_fipex = l_t_taxdata_doc-fipex EXCEPTIONS OTHERS = 1.

BGA_FROM_FM_ACCOUNT_GET CALL FUNCTION 'BGA_FROM_FM_ACCOUNT_GET' EXPORTING i_fikrs = u_fikrs i_gjahr = u_gjahr i_fipex = l_t_taxdata_doc-fipex i_fistl = g_t_docs-fistl i_geber = g_t_docs-geber IMPORTING e_bga = l_t_taxdata_doc-bga EXCEPTIONS not_found = 1 OTHERS = 2.

REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = 'A' CHANGING cs_variant = l_f_variant EXCEPTIONS not_found = 2.

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = g_f_variant i_save = 'A' IMPORTING e_exit = l_flg_exit es_variant = l_f_variant EXCEPTIONS not_found = 2.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = 'A' CHANGING cs_variant = l_f_variant.

FMBGA_INVALID_KTOSL_GET CALL FUNCTION 'FMBGA_INVALID_KTOSL_GET' TABLES t_invktosl = g_t_invktosl.

FMBGA_COMPANY_CODE_CHECK CALL FUNCTION 'FMBGA_COMPANY_CODE_CHECK' "cc TABLES "cc r_company_code = so_bukrs "cc t_t001 = g_t_t001 "cc EXCEPTIONS "cc OTHERS = 0. "cc

FMBGA_TAX_INFOS_GET





CALL FUNCTION 'FMBGA_TAX_INFOS_GET' EXPORTING i_bukrs = g_f_t001-bukrs i_flg_buffer_all = con_true IMPORTING t_taxinfo = g_t_taxinfos EXCEPTIONS OTHERS = 0.

CALCULATE_TAX_FROM_NET_AMOUNT CALL FUNCTION 'CALCULATE_TAX_FROM_NET_AMOUNT' EXPORTING i_bukrs = bkpf-bukrs i_mwskz = g_t_docs-mwskz i_waers = bkpf-hwaer i_wrbtr = bseg-dmbtr IMPORTING * E_FWNAV = * E_FWNVV = e_fwste = g_t_docs-hwste * E_FWAST = TABLES t_mwdat = l_t_mwdat EXCEPTIONS OTHERS = 1.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = l_t_header.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = l_repid i_structure_name = 'FMBGALV_KTOSL' is_layout = l_f_layout it_events = l_t_events is_print = l_f_print TABLES t_outtab = l_t_ktosl_out.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = l_t_header.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = l_repid i_structure_name = 'FMBGALV_ERRORLIST' is_layout = l_f_layout it_events = l_t_events is_print = l_f_print TABLES t_outtab = l_t_alvtab.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = l_t_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 RFMBGACORR1 or its description.