SAP Reports / Programs

RFFMFG_FMUSFGA SAP ABAP Report - Drilldown Report for Federal Ledger







RFFMFG_FMUSFGA is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The line item report is designed to be used as receiver report from the Report Writer reporting tool as well as the BW reporting tool...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 RFFMFG_FMUSFGA 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 RFFMFG_FMUSFGA. "Basic submit
SUBMIT RFFMFG_FMUSFGA AND RETURN. "Return to original report after report execution complete
SUBMIT RFFMFG_FMUSFGA 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_DRCRK = D .
Selection Text: S_BUDPER = D .
Selection Text: S_BUDAT = D .
Selection Text: S_ALC = D .
Selection Text: SYRBAUTH = D .
Selection Text: STRAGCY = D .
Selection Text: STRACCT = D .
Selection Text: SSUBKEY = D .
Selection Text: SPUBLAW = D .
Selection Text: SFREIMB = D .
Selection Text: SFPART = D .
Selection Text: SFFED = D .
Selection Text: SFEXCHG = D .
Selection Text: SFENTITY = D .
Selection Text: SFDEFNT = D .
Selection Text: SFCUSTO = D .
Selection Text: SFCOVER = D .
Selection Text: SFBORROW = D .
Selection Text: SFBEA = D .
Selection Text: SFAVAIL = D .
Selection Text: SFAUTHOR = D .
Selection Text: SFAPPORT = D .
Selection Text: SFADVANC = D .
Selection Text: SDEFIND = D .
Selection Text: S_SIRID = D .
Selection Text: S_SGL_AC = D .
Selection Text: S_RYEAR = D .
Selection Text: S_RVERS = D .
Selection Text: S_RVBUND = D .
Selection Text: S_RTCUR = D .
Selection Text: S_RRCTY = D .
Selection Text: S_RPROJK = D .
Selection Text: S_RPRCTR = D .
Selection Text: S_RPMAX = D .
Selection Text: S_RORDNR = D .
Selection Text: S_RLDNR = D .
Selection Text: S_RFUND = D .
Selection Text: S_RFISTL = D .





Selection Text: S_RFIPEX = D .
Selection Text: S_RFINUS = D .
Selection Text: S_RFAREA = D .
Selection Text: S_RCNTR = D .
Selection Text: S_RBUSA = D .
Selection Text: S_RBUKRS = D .
Selection Text: S_RACCT = D .
Selection Text: S_MEASUR = D .
Selection Text: S_LOGSYS = D .
Selection Text: S_FDTYPE = D .
Selection Text: SCOHORT = D .
Selection Text: F_ACTIV = D .
Selection Text: F_AWTYP = D .
Selection Text: F_DOCCT = D .
Selection Text: F_DOCLN = D .
Selection Text: F_DOCNR = D .
Selection Text: F_RDOCCT = D .
Selection Text: F_RDOCLN = D .
Selection Text: F_RDOCNR = D .
Selection Text: F_RRYEAR = D .
Selection Text: PDISVIEW = Display View
Selection Text: PDYNSCNT = Counter of Dynamic Selections
Selection Text: P_VARI = D .
Selection Text: SBDGTFC = D .
Selection Text: SBLSTAT = D .
Title: Drilldown Report for Federal Ledger
Text Symbol: 233 = Runtime control
Text Symbol: 222 = Active
Text Symbol: 221 = Dynamic Selections
Text Symbol: 219 = Internal Category
Text Symbol: 215 = Federal Ledger items
Text Symbol: 212 = Item Activity
Text Symbol: 211 = Beginning Balance
Text Symbol: 210 = Federal Ledger items to fiscal year YYYY
Text Symbol: 209 = Federal Ledger line items
Text Symbol: 207 = Federal Ledger items to fiscal year YYYY and period PPP
Text Symbol: 201 = Special Ledger Items
Text Symbol: 130 = Selection Screen Information
Text Symbol: 123 = Option





Text Symbol: 122 = High
Text Symbol: 121 = Low
Text Symbol: 120 = Variable
Text Symbol: 234 = You might experience long runtime.
Text Symbol: 235 = Do you want to continue?
Text Symbol: B02 = Selection Conditions
Text Symbol: B03 = FI-SL Document
Text Symbol: B04 = Reference Document
Text Symbol: B05 = Reporting
Text Symbol: BFG = Federal Attributes
Text Symbol: OBT = Interval
Text Symbol: OCP = Pattern
Text Symbol: OEQ = Single value
Text Symbol: OGE = Greater or equal
Text Symbol: OGT = Greater than
Text Symbol: OLE = Less or equal
Text Symbol: OLT = Less than
Text Symbol: ONB = Outside the interval
Text Symbol: ONE = Not equal
Text Symbol: ONP = Exclude pattern


INCLUDES used within this REPORT RFFMFG_FMUSFGA

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:

RS_SUBMIT_INFO * CALL FUNCTION 'RS_SUBMIT_INFO' * IMPORTING * P_SUBMIT_INFO = l_f_submit_info.

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 number_of_active_fields = c_dynscnt "field_groups_key = l_rsdsqcat TABLES tables_tab = l_t_tables fields_tab = l_t_fields tabfields_not_display = l_t_tabfields_not_display 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.

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

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = l_f_variant i_save = con_variant_save i_tabname_header = con_alv-fgitem * it_default_fieldcat = IMPORTING e_exit = l_exit es_variant = l_f_variant EXCEPTIONS not_found = 2.

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

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = l_table langu = sy-langu lfieldname = l_field IMPORTING dfies_wa = c_f_dfies EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = l_table langu = sy-langu all_types = 'X' IMPORTING dfies_wa = c_f_dfies EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.




DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = 'FMFGRPTA' TABLES dfies_tab = lt_fields EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.

RS_REPORTSELECTIONS_INFO CALL FUNCTION 'RS_REPORTSELECTIONS_INFO' EXPORTING report = g_repid TABLES field_info = lt_finfo EXCEPTIONS no_selections = 01 report_not_existent = 02 subroutine_pool = 03.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING titel = l_title textline1 = l_textline1 textline2 = l_textline2 IMPORTING answer = l_answer.

FI_COMPANY_CODE_DATA CALL FUNCTION 'FI_COMPANY_CODE_DATA' EXPORTING i_bukrs = g_t_fgitem-rbukrs IMPORTING e_t001 = t001 EXCEPTIONS system_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_internal_tabname = u_f_to_fcat-tabname i_structure_name = u_t_tablist-tabname CHANGING ct_fieldcat = l_t_ddfctemp EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

GET_COMPONENT_LIST CALL FUNCTION 'GET_COMPONENT_LIST' EXPORTING program = l_repid fieldname = u_f_to_fcat-tabname TABLES components = l_t_comp[] EXCEPTIONS OTHERS = 1.

FM_ALV_LAYOUT CALL FUNCTION 'FM_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 = 'PF_STATUS_SET_FGPERIOD' i_callback_user_command = 'USER_COMMAND_FGPERIOD' i_structure_name = con_alv-fgperiod i_grid_title = l_f_titletext i_grid_settings = l_f_grid_settings is_layout = l_f_layout it_fieldcat = l_t_fcat it_sort = l_t_sort i_default = con_on i_save = l_save is_variant = l_f_variant is_print = l_f_print it_events = l_t_event TABLES t_outtab = g_t_fgperiod EXCEPTIONS program_error = 1 OTHERS = 2.

FM_ALV_LAYOUT CALL FUNCTION 'FM_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 = 'PF_STATUS_SET_FGPERIOD_CHAR' i_callback_user_command = 'USER_COMMAND_FGPERIOD_CHAR' i_structure_name = con_alv-fgperiod i_grid_title = l_f_titletext i_grid_settings = l_f_grid_settings is_layout = l_f_layout it_fieldcat = l_t_fcat it_sort = l_t_sort i_default = con_on i_save = l_save is_variant = l_f_variant is_print = l_f_print it_events = l_t_event TABLES t_outtab = g_t_fgitem EXCEPTIONS program_error = 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.

G_GLU1_ITEMS_SELECT CALL FUNCTION 'G_GLU1_ITEMS_SELECT' EXPORTING i_ledger = g_t_fgitem-rldnr i_selection = l_t_selection CHANGING c_t_items = l_t_glu1 EXCEPTIONS not_found = 1 OTHERS = 2.

G_SUMTABLE_AND_MODE_GIVE CALL FUNCTION 'G_SUMTABLE_AND_MODE_GIVE' EXPORTING i_tcode = sy-tcode IMPORTING e_object = l_grid_user_specific.

G_GLU1_ITEMS_DISPLAY CALL FUNCTION 'G_GLU1_ITEMS_DISPLAY' EXPORTING i_ledger = g_t_fgitem-rldnr i_items = l_t_glu1 i_cwcode = 'X' i_text = 'Special Ledger Items'(201) i_variant = l_variant i_user_specific = l_grid_user_specific IMPORTING e_t_catalogue = l_t_catalogue EXCEPTIONS OTHERS = 4.

G_DISPLAY_ORIGINAL_DOCUMENT CALL FUNCTION 'G_DISPLAY_ORIGINAL_DOCUMENT' EXPORTING i_glu1 = l_f_glu1 i_sl_documents = con_on EXCEPTIONS no_document = 1 sl_document = 2 OTHERS = 3.

FM_ALV_LAYOUT CALL FUNCTION 'FM_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 = 'PF_STATUS_SET' i_callback_user_command = 'USER_COMMAND' i_structure_name = con_alv-fgitem i_grid_title = l_f_titletext i_grid_settings = l_f_grid_settings is_layout = l_f_layout it_fieldcat = l_t_fcat it_sort = l_t_sort i_default = 'X' i_save = l_save is_variant = l_f_variant is_print = l_f_print it_events = l_t_event TABLES t_outtab = g_t_fgitem EXCEPTIONS program_error = 1 OTHERS = 2.

DD_DTEL_GET CALL FUNCTION 'DD_DTEL_GET' EXPORTING get_state = l_c_get_state langu = sy-langu roll_name = l_f_roll_name IMPORTING got_state = l_f_gotstate dd04l_wa_a = l_s_dd04l_a TABLES dd04t_tab_a = l_t_dd04t EXCEPTIONS OTHERS = 1.

DD_DDTYPE_TO_ABAPTYPE CALL FUNCTION 'DD_DDTYPE_TO_ABAPTYPE' EXPORTING ddlen = l_s_dd04l_a-leng ddtype = l_s_dd04l_a-datatype IMPORTING ablen = e_s_dfies-intlen abtype = e_s_dfies-inttype EXCEPTIONS OTHERS = 2.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = l_table langu = sy-langu lfieldname = l_field IMPORTING dfies_wa = c_f_dfies EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.

ICON_CREATE call function 'ICON_CREATE' exporting name = &3 text = space info = &4 importing result = l_s_options-icon exceptions icon_not_found = 1 outputfield_too_short = 2 others = 3.

RS_REPORTSELECTIONS_INFO CALL FUNCTION 'RS_REPORTSELECTIONS_INFO' EXPORTING report = l_repid default_values = ' ' TABLES field_info = l_t_finfo def_values = l_t_defval EXCEPTIONS no_selections = 01 report_not_existent = 02 subroutine_pool = 03.

RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING curr_report = l_repid TABLES selection_table = l_t_selpa.

FM_ALV_LAYOUT CALL FUNCTION 'FM_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 = 'PF_STATUS_SET_SELSCR' i_callback_user_command = 'USER_COMMAND' i_structure_name = con_alv-selscr i_grid_title = l_f_titletext i_grid_settings = l_f_grid_settings is_layout = l_f_layout it_fieldcat = l_t_fcat it_sort = l_t_sort i_default = con_on i_save = l_save is_variant = l_f_variant is_print = l_f_print TABLES t_outtab = g_t_selscr EXCEPTIONS program_error = 1 OTHERS = 2.



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