SAP Reports / Programs | Public Sector Management | Funds Management | Information system(PSM-FM-IS) SAP PSM

RFFM_CREATE_FC_SET_HIER SAP ABAP Report - Create Funds Center Set Hierarchy from the Master Data Hierarchy







RFFM_CREATE_FC_SET_HIER is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report creates a funds center 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 RFFM_CREATE_FC_SET_HIER 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

FMRP_FC_SET_HIER - Create FC Set Hier. from Master Data


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 RFFM_CREATE_FC_SET_HIER. "Basic submit
SUBMIT RFFM_CREATE_FC_SET_HIER AND RETURN. "Return to original report after report execution complete
SUBMIT RFFM_CREATE_FC_SET_HIER 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_VAR = D .
Selection Text: P_TEST = Test Run
Selection Text: P_SUPPRE = D .
Selection Text: P_PREFIX = Set Prefix
Selection Text: P_OVERRI = Overwrite the whole hierarchy
Selection Text: P_LANGU = Alternative language
Selection Text: P_GJAHR = D .
Selection Text: P_GENSET = D .
Selection Text: P_FMAREA = D .
Selection Text: P_FCSET = Funds Center Group Hierarchy
Selection Text: P_CANCEL = Do not create the hierarchy
Title: Create Funds Center Set Hierarchy from the Master Data Hierarchy
Text Symbol: S00 = Variant
Text Symbol: H00 = Funds Center set hierarchy
Text Symbol: 903 = Conflicting Set Handling
Text Symbol: 902 = Set Hierarchy Type
Text Symbol: 901 = Main Parameters
Text Symbol: 804 = caused a failure.
Text Symbol: 803 = A method in the automation queue
Text Symbol: 802 = Internal error:
Text Symbol: 801 = Automation Queue failure
Text Symbol: 400 = Funds Center set hierarchy
Text Symbol: 300 = Set / Funds Center
Text Symbol: 001 = Prefix
Text Symbol: 002 = does not begin with '4B'
Text Symbol: 003 = Test Run
Text Symbol: 004 = Set / Funds Center
Text Symbol: 005 = Description
Text Symbol: 006 = Non-Unique
Text Symbol: 007 = Data Element
Text Symbol: 008 = Bad Subset
Text Symbol: 009 = Other
Text Symbol: 010 = Status
Text Symbol: 011 = Set Prefix
Text Symbol: 012 = Update Run
Text Symbol: 013 = If conflicting sets are encountered:
Text Symbol: 015 = Conflicting sets found - Hierarchy not created
Text Symbol: 016 = Conflicting sets found - Hierarchy overwritten





Text Symbol: 017 = Conflicting sets found
Text Symbol: 018 = Conflicting set
Text Symbol: 019 = General Set Hierarchy
Text Symbol: 020 = Basic Set
Text Symbol: 021 = Single-dimension Set
Text Symbol: 022 = Value
Text Symbol: 100 = ERROR
001 Status Set / Funds Center Description


INCLUDES used within this REPORT RFFM_CREATE_FC_SET_HIER

INCLUDE RFFM_CREATE_FC_SET_HIER_TOP.


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_HIVARNT_READ_HIERARCHY CALL FUNCTION 'FM_HIVARNT_READ_HIERARCHY' EXPORTING i_fikrs = u_fmarea i_hivarnt = u_var i_flg_sort = 'X' "very important for correct output TABLES t_fmhisv = g_t_fmhisv_levsort.

G_SET_ENCRYPT_SETID CALL FUNCTION 'G_SET_ENCRYPT_SETID' EXPORTING setclass = gsetc_fisl_setclass shortname = l_shortname IMPORTING setid = l_set_hier-set_header-setnr.

G_SET_ENCRYPT_SETID CALL FUNCTION 'G_SET_ENCRYPT_SETID' EXPORTING setclass = gsetc_funds_center_setclass shortname = l_shortname fikrs = p_fmarea IMPORTING setid = l_set_hier-set_header-setnr.

G_SET_GENERATE * CALL FUNCTION 'G_SET_GENERATE' * EXPORTING * set_header = set_header * TABLES * set_lines_basic = set_lines_basic.

G_SET_ENCRYPT_SETID CALL FUNCTION 'G_SET_ENCRYPT_SETID' EXPORTING setclass = gsetc_fisl_setclass shortname = l_shortname IMPORTING setid = l_set_hier-set_header-setnr.

G_SET_ENCRYPT_SETID CALL FUNCTION 'G_SET_ENCRYPT_SETID' EXPORTING setclass = gsetc_funds_center_setclass shortname = l_shortname fikrs = p_fmarea IMPORTING setid = l_set_hier-set_header-setnr.

G_SET_DECRYPT_SETID CALL FUNCTION 'G_SET_DECRYPT_SETID' EXPORTING setid = l_fmhisv_psort-setnr IMPORTING shortname = l_shortname.

G_SET_GENERATE * CALL FUNCTION 'G_SET_GENERATE' * EXPORTING * set_header = set_header * TABLES * set_lines_basic = set_lines_basic * set_lines_single = set_lines_single.

G_SET_DECRYPT_SETID CALL FUNCTION 'G_SET_DECRYPT_SETID' EXPORTING setid = l_fmhisv_psort-setnr IMPORTING shortname = l_shortname.

G_SET_GENERATE * CALL FUNCTION 'G_SET_GENERATE' * EXPORTING * set_header = set_header * TABLES * set_lines_single = set_lines_single.

G_SET_DECRYPT_SETID CALL FUNCTION 'G_SET_DECRYPT_SETID' EXPORTING setid = setnr IMPORTING setclass = l_class shortname = l_shortname fikrs = l_fikrs.

G_SET_GET_INFO CALL FUNCTION 'G_SET_GET_INFO' EXPORTING class = l_class * NO_SET_TITLE = ' ' setname = l_shortname * TABLE = ' ' * FIELDNAME = ' ' * USE_TABLE_BUFFER = 'X' * CLIENT = * IMPORTING * INFO = EXCEPTIONS set_not_found = 1 * ILLEGAL_FIELD_REPLACEMENT = 2 OTHERS = 3 .

FM_FICTR_READ_SINGLE CALL FUNCTION 'FM_FICTR_READ_SINGLE' EXPORTING i_fikrs = p_fmarea i_fictr = p_fistl * I_CTR_OBJNR = ' ' i_hivarnt = p_var i_flag_text = 'X' * I_FLAG_HIER = ' ' * I_LANGUAGE = SY-LANGU i_date = l_datum i_gjahr = p_gjahr IMPORTING e_f_fmfctr = l_fmfctr e_f_fmfctrt = l_fmfctrt * E_F_FMHISV = EXCEPTIONS input_error = 1 master_data_not_found = 2 hierarchy_data_not_found = 3 OTHERS = 4.






G_SET_DECRYPT_SETID CALL FUNCTION 'G_SET_DECRYPT_SETID' EXPORTING setid = g_topsetnr IMPORTING setclass = l_class shortname = l_shortname fikrs = l_fikrs.

G_SET_TREE_DELETE CALL FUNCTION 'G_SET_TREE_DELETE' EXPORTING class = l_class no_authority_check = 'X' * NO_COMMIT_WORK = set = l_shortname * SUBCLASSMASK = '*' * SUBSETMASK = '*' * BLOCKING_CHECK = * DONT_DELETE_CLASS_0 = * DONT_DELETE_STD_HIER = * TAB = * TABLES * USED_SUBSETS = EXCEPTIONS not_found = 1 no_authority = 2 set_is_used = 3 set_is_blocked = 4 OTHERS = 5 .

G_DELETE_SET CALL FUNCTION 'G_DELETE_SET' EXPORTING client = sy-mandt set = g_topsetnr force_deletion = 'X' EXCEPTIONS no_authority = 1 not_found = 2 * set_is_used = 3 .

G_SET_GENERATE CALL FUNCTION 'G_SET_GENERATE' EXPORTING * CLIENT = ' ' * LANGU = SY-LANGU set_header = l_set_hier-set_header * TOLERATE_AMBIGUITY = ' ' * NOTHING_CHANGED = ' ' * FLAG_USE_RGSBS_USER = ' ' * REF_SET = ' ' TABLES * FORMULA_LINES = set_lines_basic = l_set_hier-set_lines_basic * SET_LINES_DATA = * SET_LINES_MULTI = * SET_LINES_SINGLE = EXCEPTIONS * BAD_FORMULA = 1 * DOUBLE_FIELD = 2 * ENTRY_NOT_FOUND = 3 not_unique = 4 old_set_has_wrong_data_element = 5 * OLD_SET_HAS_WRONG_TYPE = 6 * SET_IS_RECURSIVE = 7 * SETNAME_TOO_LONG = 8 * SUBSET_DOES_NOT_EXIST = 9 * SUBSET_HAS_WRONG_CLASS = 10 * SUBSET_HAS_WRONG_DATA_ELEMENT = 11 * SUBSET_HAS_WRONG_TYPE = 12 * TABLE_OR_FIELDNAME_MISSING = 13 * TEMPORARY_IN_PERMANENT_SET = 14 * VARIABLE_DOES_NOT_EXIST = 15 * VARIABLE_HAS_WRONG_DATA_ELEM = 16 * VARIABLE_HAS_WRONG_TABLE = 17 * VARIABLE_HAS_WRONG_TYPE = 18 * WRONG_INTERVAL = 19 * WRONG_SETCLASS = 20 * SUBSET_HAS_WRONG_TABLE = 21 OTHERS = 22.

G_SET_ADD_TITLES CALL FUNCTION 'G_SET_ADD_TITLES' EXPORTING setname = l_set_hier-set_header-setnr TABLES set_titles = l_t_set_titles.

G_SET_GENERATE CALL FUNCTION 'G_SET_GENERATE' EXPORTING * CLIENT = ' ' * LANGU = SY-LANGU set_header = l_set_hier-set_header * TOLERATE_AMBIGUITY = ' ' * NOTHING_CHANGED = ' ' * FLAG_USE_RGSBS_USER = ' ' * REF_SET = ' ' TABLES * FORMULA_LINES = set_lines_basic = l_set_hier-set_lines_basic * SET_LINES_DATA = * SET_LINES_MULTI = set_lines_single = l_set_hier-set_lines_single EXCEPTIONS * BAD_FORMULA = 1 * DOUBLE_FIELD = 2 * ENTRY_NOT_FOUND = 3 not_unique = 4 old_set_has_wrong_data_element = 5 * OLD_SET_HAS_WRONG_TYPE = 6 * SET_IS_RECURSIVE = 7 * SETNAME_TOO_LONG = 8 subset_does_not_exist = 9 subset_has_wrong_class = 10 subset_has_wrong_data_element = 11 subset_has_wrong_type = 12 * TABLE_OR_FIELDNAME_MISSING = 13 * TEMPORARY_IN_PERMANENT_SET = 14 * VARIABLE_DOES_NOT_EXIST = 15 * VARIABLE_HAS_WRONG_DATA_ELEM = 16 * VARIABLE_HAS_WRONG_TABLE = 17 * VARIABLE_HAS_WRONG_TYPE = 18 * WRONG_INTERVAL = 19 * WRONG_SETCLASS = 20 * SUBSET_HAS_WRONG_TABLE = 21 OTHERS = 22.

G_SET_ADD_TITLES CALL FUNCTION 'G_SET_ADD_TITLES' EXPORTING setname = l_set_hier-set_header-setnr TABLES set_titles = l_t_set_titles.

POPUP_TO_INFORM CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = 'Automation Queue failure'(801) txt1 = 'Internal error:'(802) txt2 = 'A method in the automation queue'(803) txt3 = 'caused a failure.'(804).

G_SET_GET_ROOT_SETS CALL FUNCTION 'G_SET_GET_ROOT_SETS' EXPORTING * CLIENT = setid = i_setnr TABLES rootsets = l_t_rootsets.

G_SET_ENCRYPT_SETID CALL FUNCTION 'G_SET_ENCRYPT_SETID' EXPORTING setclass = gsetc_fisl_setclass shortname = e_topsetname IMPORTING setid = e_topsetnr.

G_SET_ENCRYPT_SETID CALL FUNCTION 'G_SET_ENCRYPT_SETID' EXPORTING setclass = gsetc_funds_center_setclass shortname = e_topsetname fikrs = p_fmarea IMPORTING setid = e_topsetnr.

FM_SET_FM_AREA CALL FUNCTION 'FM_SET_FM_AREA' EXPORTING i_flg_process_popup = u_flg_popup IMPORTING e_fikrs = c_fm_area EXCEPTIONS no_fikrs_selected = 1.

FM_FIKRS_CHECK_MD_YEAR_DEPEND CALL FUNCTION 'FM_FIKRS_CHECK_MD_YEAR_DEPEND' EXPORTING i_fikrs = u_fmarea * I_FMA_OBJNR = ' ' IMPORTING * E_FLG_YEAR_POS = P_I_CI_YEAR_DEP e_flg_year_ctr = c_fc_year_dep * E_FLG_YEAR_MASTER_DATA = EXCEPTIONS input_error = 1 not_found = 2 OTHERS = 3.

RS_VARIANT_CONTENTS CALL FUNCTION 'RS_VARIANT_CONTENTS' EXPORTING report = 'RFFM_CREATE_FC_SET_HIER' variant = l_variant TABLES valutab = l_t_valutab.

FMFK_FIKRS_READ CALL FUNCTION 'FMFK_FIKRS_READ' EXPORTING ip_fikrs = u_fm_area.

FM_AUTH_CHECK_FM_AREA CALL FUNCTION 'FM_AUTH_CHECK_FM_AREA' EXPORTING i_fikrs = u_fm_area i_actvt = l_activity i_msgty = 'E' IMPORTING e_flg_auth = l_auth.



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