SAP Reports / Programs | Public Sector Management | Funds Management | Budgeting(PSM-FM-BCS-BU) SAP PSM

RFFMCY_PREP SAP ABAP Report - Generate Planning Data







RFFMCY_PREP is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Generate Plan Data from Planning/Budget Data This program copies plan data, budget or released data of the 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 RFFMCY_PREP 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

FMCYPREP - Copy budget data (preparation)


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 RFFMCY_PREP. "Basic submit
SUBMIT RFFMCY_PREP AND RETURN. "Return to original report after report execution complete
SUBMIT RFFMCY_PREP 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: P_ALLPT = All combinations
Selection Text: P_BUD = Budget
Selection Text: P_COMBS = Choose specific combinations
Selection Text: P_DETAIL = D .
Selection Text: P_DKEY = D .
Selection Text: P_FLGBT = Budget type
Selection Text: P_FLGBTS = Budget type from source
Selection Text: P_FLGDK = Distribution key
Selection Text: P_FLGPER = Period
Selection Text: P_FMAREA = D .
Selection Text: P_PREP = All planning data
Selection Text: P_REL = Release
Selection Text: P_REVAL = Revaluation(%)
Selection Text: P_SFYEAR = D .
Selection Text: P_SPERFR = Source period (from)
Selection Text: P_SPERTO = Source period (to)
Selection Text: P_SVERS = D .
Selection Text: S_SBCAT = D .
Selection Text: S_MEASR = D .
Selection Text: S_GRANT = D .
Selection Text: S_FONDS = D .
Selection Text: S_FIPEX = D .
Selection Text: S_FICTR = D .
Selection Text: S_FAREA = D .
Selection Text: S_BUDPER = D .
Selection Text: P_UPMTXT = Update mode text
Selection Text: P_UPMODE = D .
Selection Text: P_TVERS = Target version
Selection Text: P_TPERTO = Target period (to)
Selection Text: P_TPERFR = Target period (from)
Selection Text: P_TFYEAR = Target fiscal year
Selection Text: P_TEST = Test run
Selection Text: P_TBT = Target budget type
Selection Text: P_TBCAT = Target Budget Category
Title: Generate Planning Data
Text Symbol: 065 = Target Yr.of Cash Effect.
Text Symbol: 074 = Detail List
Text Symbol: 075 = Layout





Text Symbol: 080 = Budget Category
Text Symbol: 081 = Version
Text Symbol: 082 = Fiscal Year
Text Symbol: 099 = or Group
Text Symbol: 100 = Fund
Text Symbol: 101 = Grant
Text Symbol: 102 = Funds Center
Text Symbol: 103 = Commitment Item
Text Symbol: 104 = Functional Area
Text Symbol: 105 = Funded Program
Text Symbol: 106 = Value type
Text Symbol: 107 = Budget
Text Symbol: 108 = Release
Text Symbol: 109 = From
Text Symbol: 200 = Budget Period
Text Symbol: L01 = Years of Cash Effectivity
Text Symbol: L03 = Budget Category / YCE
Text Symbol: L04 = Budget type
Text Symbol: P01 = Period
Text Symbol: 064 = Source Yr. of Cash Effect.
Text Symbol: 029 = To
Text Symbol: 028 = Period
Text Symbol: 027 = Fiscal year
Text Symbol: 026 = Version
Text Symbol: 025 = Target
Text Symbol: 024 = Source
Text Symbol: 023 = Budget category
Text Symbol: 022 = Financial Management area
Text Symbol: 021 = Grouping settings
Text Symbol: 020 = Rounding
Text Symbol: 019 = Choose combinations
Text Symbol: 018 = Target budget type
Text Symbol: 017 = Target fiscal year
Text Symbol: 016 = Fiscal Year
Text Symbol: 015 = Distribution key
Text Symbol: 014 = Target period
Text Symbol: 013 = To
Text Symbol: 012 = Period
Text Symbol: 011 = Target version





Text Symbol: 010 = Source version
Text Symbol: 009 = and budget type
Text Symbol: 008 = One specific process
Text Symbol: 007 = Specific processes and budget types
Text Symbol: 006 = All processes and budget types
Text Symbol: 005 = Processing options
Text Symbol: 003 = Target settings
Text Symbol: 002 = Basis for calculation
Text Symbol: 001 = FM account assignments
Text Symbol: 030 = Processing status
Text Symbol: 063 = Target budget category
Text Symbol: 062 = Source budget category
Text Symbol: 060 = Rounding up
Text Symbol: 059 = Rounding off
Text Symbol: 058 = Commercial
Text Symbol: 057 = All planning data
Text Symbol: 052 = FM area
Text Symbol: 051 = Change FM area
Text Symbol: 050 = Rounding factor
Text Symbol: 049 = Rounding mode
Text Symbol: 048 = Copy planning data
Text Symbol: 047 = Budget type description
Text Symbol: 046 = Budget type
Text Symbol: 045 = Process description
Text Symbol: 044 = Process
Text Symbol: 043 = Copy budget type
Text Symbol: 042 = Update mode
Text Symbol: 041 = Process / Budget type combinations
Text Symbol: 040 = Number of error messages
Text Symbol: 039 = Number of warning messages
Text Symbol: 038 = Revaluation (%)
Text Symbol: 037 = Number of copied records
Text Symbol: 036 = Add data
Text Symbol: 035 = Add new data only
Text Symbol: 034 = Reset and overwrite
Text Symbol: 033 = Mode
Text Symbol: 032 = Update run
Text Symbol: 031 = Test run


INCLUDES used within this REPORT RFFMCY_PREP

INCLUDE IRFFMCY_PREPTOP.



INCLUDE FMMP_MULTI_BUDCAT_YCE_SCREEN.
INCLUDE FMMP_MD_SELECTION.
INCLUDE FMMP_PROPOSAL_FROM_PTCOMB.
INCLUDE FMMP_SOURCE_TARGET.
INCLUDE FMMP_ALV_VARIANT.
INCLUDE FMMP_GROUPING_SETTINGS.
INCLUDE RKASMAWF.
INCLUDE IFMBAS_ACCESSIBILITY_MODE.
INCLUDE FMMP_GROUP_SELECTION.
INCLUDE FMMP_GROUP_SELECTION_GET.
INCLUDE FMMP_ALV_VARIANT_FORM.
INCLUDE FMMP_MULTI_BUDCAT_YCE_FORMS.
INCLUDE FMMP_GET_MD_SELECTION.
INCLUDE FMMP_GROUP_SELECTION_CHECK.


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_FYC_SELSCR_STATUS_SET CALL FUNCTION 'FM_FYC_SELSCR_STATUS_SET' EXPORTING i_t_fcode_excl = g_t_fcode.

FM_FYC_SCHEDMAN_INIT CALL FUNCTION 'FM_FYC_SCHEDMAN_INIT' EXPORTING i_repid = 'RFFMCY_PREP' i_tcode = 'FMCYPREP' i_wfitem = wf_witem i_wflist = wf_wlist i_flg_test = p_test IMPORTING e_f_schedman_key = g_f_schedman_key.

FM_FYC_SCHEDMAN_CLOSE CALL FUNCTION 'FM_FYC_SCHEDMAN_CLOSE' EXPORTING i_f_schedman_key = g_f_schedman_key i_wfitem = wf_witem i_wfokey = wf_okey i_aplstat = g_aplstat i_cnt_obj = g_records_screen.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_enter_more text = text-019 info = text-019 * ADD_STDINF = 'X' IMPORTING result = p_ptpop EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_display_more text = text-019 info = text-019 * ADD_STDINF = 'X' IMPORTING result = p_ptpop EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_enter_more text = text-020 info = text-020 * ADD_STDINF = 'X' IMPORTING result = p_round EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_display_more text = text-020 info = text-020 * ADD_STDINF = 'X' IMPORTING result = p_round EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_display_more text = text-021 info = text-021 * ADD_STDINF = 'X' IMPORTING result = p_grp EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

FMKU_GET_PERIOD_INFO CALL FUNCTION 'FMKU_GET_PERIOD_INFO' EXPORTING i_fm_area = u_fm_area IMPORTING e_special_periods_active = c_special_periods_active e_nb_periods = c_nb_periods.

FMKU_SET_FM_AREA CALL FUNCTION 'FMKU_SET_FM_AREA' EXPORTING i_flg_process_popup = u_flg_popup CHANGING c_fikrs = c_fm_area EXCEPTIONS no_fikrs_selected = 1.

FMBAS_GET_USERDIM_SET_DEF CALL FUNCTION 'FMBAS_GET_USERDIM_SET_DEF' EXCEPTIONS no_sets_used = 1 OTHERS = 0.

FMMP_SET_BUDCAT_CEFFYEAR CALL FUNCTION 'FMMP_SET_BUDCAT_CEFFYEAR' EXPORTING i_fm_area = p_fmarea i_fiscyear = p_sfyear i_t_budcat = g_t_budcat i_flg_single_budcat = g_flg_single_budcat IMPORTING e_flg_budcat_ceffyear = g_flg_budcat_yce e_t_budcat_ceffyear_active = g_t_yce_budcat CHANGING c_t_rows = g_t_rows_yce.

FMMP_FILL_BUDCAT_CEFFYEAR CALL FUNCTION 'FMMP_FILL_BUDCAT_CEFFYEAR' EXPORTING i_fm_area = p_fmarea i_fiscyear = p_sfyear i_t_budcat = g_t_budcat IMPORTING e_t_budcat_ceffyear = g_t_yce_budcat.

FMMP_SET_BUDCAT_YCE_TARGET CALL FUNCTION 'FMMP_SET_BUDCAT_YCE_TARGET' EXPORTING i_fm_area = p_fmarea i_fiscyear = p_tfyear i_shift = l_shift i_t_budcat = g_t_budcat i_t_rows = g_t_rows_yce i_flg_single_budcat = g_flg_single_budcat i_flg_yce = g_flg_yce IMPORTING e_flg_budcat_ceffyear = g_flg_budcat_yce CHANGING c_flg_data_changed = g_flg_data_changed c_t_budcat_ceffyear_active = g_t_yce_budcat.



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