SAP Reports / Programs | Financial Accounting | General Ledger Accounting(FI-GL) SAP FI

FAGLINCF SAP ABAP INCLUDE - documentation and ABAP source code







FAGLINCF 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 FAGLINCF 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 FAGLINCF. "Basic submit
SUBMIT FAGLINCF AND RETURN. "Return to original report after report execution complete
SUBMIT FAGLINCF 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 FAGLINCF

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:

RGRE_ERGSL_TO_RACCT_CONVERT * CALL FUNCTION 'RGRE_ERGSL_TO_RACCT_CONVERT' * EXPORTING * I_BS_VERSION = L_VERSN * I_BS_ITEM = L_ERGSL * TABLES * T_ACCOUNTS = LT_ACCOUNTS * EXCEPTIONS * BS_VERSION_NOT_EXIST = 1 * OTHERS = 2.

FAGL_CHECK_GLFLEX_ACTIVE CALL FUNCTION 'FAGL_CHECK_GLFLEX_ACTIVE' IMPORTING E_GLFLEX_ACTIVE = GB_FLEX.

FAGL_BUKRS_ACTIVE_IN_CLIENT CALL FUNCTION 'FAGL_BUKRS_ACTIVE_IN_CLIENT' IMPORTING e_glflex_active = GB_FLEX.

RS_SET_SELSCREEN_STATUS * CALL FUNCTION 'RS_SET_SELSCREEN_STATUS' " 4.5B

NAMETAB_GET * CALL FUNCTION 'NAMETAB_GET' * EXPORTING * LANGU = SY-LANGU * ONLY = 'T' * TABNAME = TABNAME * TABLES * NAMETAB = LT_NAMTAB * EXCEPTIONS * INTERNAL_ERROR = 1 * TABLE_HAS_NO_FIELDS = 2 * TABLE_NOT_ACTIV = 3 * NO_TEXTS_FOUND = 4 * OTHERS = 5.

FAGL_CHECK_GLFLEX_ACTIVE CALL FUNCTION 'FAGL_CHECK_GLFLEX_ACTIVE' EXPORTING id_bukrs = ls_t001-bukrs IMPORTING e_glflex_active = gb_flex.

RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING CURR_REPORT = Ld_CURR_REPORT TABLES SELECTION_TABLE = Lt_SEL_TAB EXCEPTIONS NOT_FOUND = 01 NO_REPORT = 02.

FAGL_MGPLN_IN_CLIENT CALL FUNCTION 'FAGL_MGPLN_IN_CLIENT' IMPORTING E_MIGPLN_EXIST = gb_xmig.

FAGL_GET_ACTIVE_MGPLN CALL FUNCTION 'FAGL_GET_ACTIVE_MGPLN' EXPORTING I_BUKRS = ls_t001-bukrs I_RLDNR = gv_relevant_ledger IMPORTING * ET_FAGL_MIG_002 = ET_FAGL_MIG_001 = gt_FAGL_MIG_001 * EF_ACTIVE_MGPLN = EXCEPTIONS INVALID_INPUT = 1 NO_DATA_FOUND = 2 INVALID_CUSTOMIZING = 3 OTHERS = 4 .

BUKRS_AUTHORITY_CHECK call function 'BUKRS_AUTHORITY_CHECK' EXPORTING xdatabase = pa_koart TABLES xbukreis = so_bukrs.

BUKRS_AUTHORITY_CHECK call function 'BUKRS_AUTHORITY_CHECK' EXPORTING xdatabase = 'B' TABLES xbukreis = so_bukrs.

FAGL_CHECK_IF_LEDGER_IS_GLFLEX CALL FUNCTION 'FAGL_CHECK_IF_LEDGER_IS_GLFLEX' EXPORTING I_RLDNR = gv_relevant_ledger EXCEPTIONS * NOT_FOUND = 1 NO_GLFLEX_LEDGER = 2 * GLFLEX_ROLLUP_LEDGER = 3 * WRONG_APPLICATION = 4 * GLFLEX_DEPENDENT_LEDGER = 5 * OTHERS = 6 .

RS_REFRESH_FROM_DYNAMICAL_SEL * CALL FUNCTION 'RS_REFRESH_FROM_DYNAMICAL_SEL' * EXPORTING CURR_REPORT = CURR_REPORT * MODE_WRITE_OR_MOVE = 'M' * IMPORTING P_TRANGE = LT_DYNSEL * EXCEPTIONS NOT_FOUND = 1 * WRONG_TYPE = 2 * OTHERS = 3.

FREE_SELECTIONS_RANGE_2_EX * CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX' * EXPORTING * FIELD_RANGES = LT_DYNSEL * IMPORTING * EXPRESSIONS = LT_DYNSEL_EX.

RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING CURR_REPORT = CURR_REPORT TABLES SELECTION_TABLE = SEL_TAB EXCEPTIONS NOT_FOUND = 01 NO_REPORT = 02.

FAGL_CHECK_GLFLEX_ACTIVE CALL FUNCTION 'FAGL_CHECK_GLFLEX_ACTIVE' EXPORTING id_bukrs = ls_t001-bukrs IMPORTING e_glflex_active = gb_flex.

G_GET_USER_PARAMETER * CALL FUNCTION 'G_GET_USER_PARAMETER' * EXPORTING * parameter_id = 'GLN_FLEX' * IMPORTING * parameter_value = lv_ledger_user_format * rc = lv_return_code.

GL_USER_DATA_GET call function 'GL_USER_DATA_GET' EXPORTING owner = gc_owner name = gc_parameter_id IMPORTING value = cc_relevant_ledger EXCEPTIONS invalid_owner = 1 name_not_found = 2.

FAGL_GET_LEADING_LEDGER





CALL FUNCTION 'FAGL_GET_LEADING_LEDGER' IMPORTING e_rldnr = cc_relevant_ledger EXCEPTIONS not_found = 1.

FAGL_GET_TABLENAMES CALL FUNCTION 'FAGL_GET_TABLENAMES' EXPORTING i_ledger = p_rldnr IMPORTING es_tabnames = ls_tablenames.

FAGL_GET_LEADING_LEDGER CALL FUNCTION 'FAGL_GET_LEADING_LEDGER' IMPORTING e_rldnr = cc_leading_ledger EXCEPTIONS not_found = 1.

POPUP_GET_VALUES_USER_BUTTONS CALL FUNCTION 'POPUP_GET_VALUES_USER_BUTTONS' EXPORTING * F1_FORMNAME = ' ' * F1_PROGRAMNAME = ' ' f4_formname = 'F4_LEDGER' f4_programname = 'FAGL_ACCOUNT_BALANCE' formname = 'CHECK_OK_CODES' programname = 'FAGL_ACCOUNT_BALANCE' popup_title = TEXT275 ok_pushbuttontext = '' icon_ok_push = ic_icon_okay quickinfo_ok_push = LD_text273 first_pushbutton = ' ' icon_button_1 = ic_icon_save quickinfo_button_1 = LD_text274 * SECOND_PUSHBUTTON = ' ' * ICON_BUTTON_2 = * QUICKINFO_BUTTON_2 = ' ' start_column = '25' start_row = '7' * NO_CHECK_FOR_FIXED_VALUES = ' ' * IMPORTING * RETURNCODE = TABLES fields = it_chosen_values EXCEPTIONS error_in_fields = 1 OTHERS = 2.

FAGL_GET_REPORTING_FIELDS CALL FUNCTION 'FAGL_GET_REPORTING_FIELDS' EXPORTING i_rldnr = gv_relevant_ledger IMPORTING et_fields = gt_reporting_fields et_dfies = gt_dfies_reporting_fields.

FREE_SELECTIONS_RANGE_2_EX call function 'FREE_SELECTIONS_RANGE_2_EX' EXPORTING field_ranges = fs_dyns-trange IMPORTING expressions = fs_dyns-texpr.

FREE_SELECTIONS_RANGE_2_WHERE CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_WHERE' EXPORTING FIELD_RANGES = fs_dyns-trange IMPORTING WHERE_CLAUSES = fs_dyns-clauses.

FREE_SELECTIONS_INIT CALL FUNCTION 'FREE_SELECTIONS_INIT' EXPORTING * kind = 'G' kind = 'T' * kind = 'F' * Alte Abgrenzungen erscheinen wieder expressions = fs_dyns-texpr * FIELD_GROUPS_KEY = ds_groups_key * RESTRICTION = * ALV = * CURR_QUAN_PROG = SY-CPROG * CURR_QUAN_RELATION = IMPORTING selection_id = selection_id where_clauses = fs_dyns-clauses expressions = fs_dyns-texpr field_ranges = fs_dyns-trange number_of_active_fields = fs_num TABLES tables_tab = tables_tab fields_tab = fields * FIELD_DESC = * FIELD_TEXTS = * EVENTS = * EVENT_FIELDS = fields_not_selected = fields_not EXCEPTIONS fields_incomplete = 1 fields_no_join = 2 field_not_found = 3 no_tables = 4 table_not_found = 5 expression_not_supported = 6 incorrect_expression = 7 illegal_kind = 8 area_not_found = 9 inconsistent_area = 10 kind_f_no_fields_left = 11 kind_f_no_fields = 12 too_many_fields = 13 dup_field = 14 field_no_type = 15 field_ill_type = 16 dup_event_field = 17 node_not_in_ldb = 18 area_no_field = 19 OTHERS = 20 .

FREE_SELECTIONS_DIALOG CALL FUNCTION 'FREE_SELECTIONS_DIALOG' EXPORTING selection_id = selection_id title = TEXT276 * FRAME_TEXT = ' ' * STATUS = * AS_WINDOW = ' ' * START_ROW = 2 * START_COL = 2 * NO_INTERVALS = ' ' * JUST_DISPLAY = ' ' * PFKEY = * ALV = ' ' TREE_VISIBLE = ' ' * DIAG_TEXT_1 = * DIAG_TEXT_2 = * WARNING_TITLE = IMPORTING where_clauses = fs_dyns-clauses expressions = fs_dyns-texpr field_ranges = fs_dyns-trange number_of_active_fields = fs_num TABLES fields_tab = fields * FCODE_TAB = fields_not_selected = fields_not EXCEPTIONS * internal_error = * no_action = * selid_not_found = * illegal_status = OTHERS = 0.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING TABNAME = 'FAGLPOSE' TABLES DFIES_TAB = lt_dfies_1 EXCEPTIONS NOT_FOUND = 1 INTERNAL_ERROR = 2 OTHERS = 3.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING TABNAME = ld_tabname TABLES DFIES_TAB = lt_dfies_2 EXCEPTIONS NOT_FOUND = 1 INTERNAL_ERROR = 2 OTHERS = 3.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING TABNAME = gv_si_table TABLES DFIES_TAB = lt_dfies_3 EXCEPTIONS NOT_FOUND = 1 INTERNAL_ERROR = 2 OTHERS = 3.

FAGL_AUTHORITY_LEDGER call function 'FAGL_AUTHORITY_LEDGER' EXPORTING i_bukrs = lt_bukrs i_rldnr = gv_relevant_ledger i_actvt = '03'.

FI_CHECK_DATE call function 'FI_CHECK_DATE' EXPORTING i_bukrs = t001-bukrs i_user = sy-uname i_program = ld_program i_from_date = pa_stida_default IMPORTING e_return = s_return EXCEPTIONS no_authority_prog = 1 no_authority_date = 2 wrong_parameter = 3 others = 4.



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