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

FAGLSKF_POST_LOCAL SAP ABAP Report - Entry of Statistical Key Figures in General Ledger (with ALV)







FAGLSKF_POST_LOCAL is a standard Executable ABAP Report 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 FAGLSKF_POST_LOCAL 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

FAGLSKF - Post Statistical Key Figures(Actual)
FAGLSKF1 - Post Statistical Key Figures (Plan)


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 FAGLSKF_POST_LOCAL. "Basic submit
SUBMIT FAGLSKF_POST_LOCAL AND RETURN. "Return to original report after report execution complete
SUBMIT FAGLSKF_POST_LOCAL VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Entry of Statistical Key Figures in General Ledger (with ALV)
Text Symbol: 001 = Data Backup
Text Symbol: 002 = Do you want to save the data before switching the layout?
Text Symbol: 003 = Yes
Text Symbol: 004 = No
Text Symbol: 005 = Yes, save data first
Text Symbol: 006 = No, continue without saving
Text Symbol: 007 = Data Backup
Text Symbol: 008 = Do you want to save the data before switching company code?
Text Symbol: 009 = Yes
Text Symbol: 010 = No
Text Symbol: 011 = Yes, save data first
Text Symbol: 012 = No, continue without saving
Text Symbol: 013 = Data Backup
Text Symbol: 014 = Do you want to save the data before quitting?
Text Symbol: 015 = Yes
Text Symbol: 016 = No
Text Symbol: 017 = Yes, save data first
Text Symbol: 018 = No, continue w/o saving
Text Symbol: 019 = Append Line
Text Symbol: 030 = Item Data


INCLUDES used within this REPORT FAGLSKF_POST_LOCAL

INCLUDE FAGLSKF_POST_LOCALTOP.
INCLUDE FAGLSKF_POST_LOCALF01.
INCLUDE FAGLSKF_POST_LOCALF02.
INCLUDE FAGLSKF_POST_LOCALF03.
INCLUDE FAGLSKF_POST_LOCALF04.
INCLUDE FAGLSKF_POST_LOCALF05.
INCLUDE FAGLSKF_POST_LOCALF06.


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:

FAGLSKF_GET_TABINFO_FROM_APPL CALL FUNCTION 'FAGLSKF_GET_TABINFO_FROM_APPL' IMPORTING es_tabinfo = ls_tabinfo EXCEPTIONS error_in_cust = 1 OTHERS = 2.

KOKRS_GET_FROM_BUKRS CALL FUNCTION 'KOKRS_GET_FROM_BUKRS' EXPORTING i_bukrs = ld_bukrs IMPORTING e_kokrs = ld_kokrs EXCEPTIONS no_kokrs_found = 1 OTHERS = 2.

DOCHEADER_COMP_CODE_WITH_POPUP CALL FUNCTION 'DOCHEADER_COMP_CODE_WITH_POPUP' IMPORTING e_bukrs = ld_bukrs EXCEPTIONS canceled = 1 OTHERS = 2.

KOKRS_GET_FROM_BUKRS CALL FUNCTION 'KOKRS_GET_FROM_BUKRS' EXPORTING i_bukrs = ld_bukrs IMPORTING e_kokrs = ld_kokrs EXCEPTIONS no_kokrs_found = 1 OTHERS = 2.

KOKRS_GET_FROM_BUKRS CALL FUNCTION 'KOKRS_GET_FROM_BUKRS' EXPORTING i_bukrs = ld_bukrs IMPORTING e_kokrs = ld_kokrs EXCEPTIONS no_kokrs_found = 1 OTHERS = 2.

FAGL_AUTHORITY_CHECK_KEYFIG CALL FUNCTION 'FAGL_AUTHORITY_CHECK_KEYFIG' EXPORTING id_activ = faglskf_head-activ id_actvt = '02' id_bukrs = faglskf_head-bukrs is_auth = ls_auth EXCEPTIONS no_authority = 1 data_missing = 2 OTHERS = 3.

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING tabname = ld_strucname TABLES dfies_tab = lt_dfies EXCEPTIONS not_found = 1 OTHERS = 2.

FAGL_GET_FIELDS_FROM_SCENARIO CALL FUNCTION 'FAGL_GET_FIELDS_FROM_SCENARIO' EXPORTING id_bukrs = faglskf_head-bukrs IMPORTING et_fieldlist = lt_fieldlist.

RK_RATIO_READ CALL FUNCTION 'RK_RATIO_READ' EXPORTING kokrs = id_kokrs stagr = id_stagr IMPORTING grtyp = cd_grtyp msehi = cd_runit EXCEPTIONS ka03_not_complete = 1 ka03_not_found = 2 OTHERS = 3.

KE_PROFIT_CENTER_CHECK CALL FUNCTION 'KE_PROFIT_CENTER_CHECK' EXPORTING bukrs = id_rbukrs datum = id_date_from datum_bis = id_date_to prctr = id_prctr test_kokrs = id_kokrs EXCEPTIONS not_found = 1 not_defined_for_date = 2 no_kokrs_for_bukrs = 3 parameter_mismatch = 4 prctr_locked = 5 not_defined_for_bukrs = 6 OTHERS = 7.

FAGL_CHECK_SEGMENT * CALL FUNCTION 'FAGL_CHECK_SEGMENT' * EXPORTING * id_segment = cd_segment * EXCEPTIONS * error_segment_not_exists = 1 * OTHERS = 2.

RK_KOSTL_CHECK CALL FUNCTION 'RK_KOSTL_CHECK' EXPORTING datum = id_date_from kokrs = id_kokrs kostl = id_kostl v_bukrs = id_rbukrs EXCEPTIONS input_error = 1 kostl_not_complete = 2 kostl_not_found = 3 no_gsber = 4 no_primary_posting = 5 no_revenues_posting = 6 no_secundary_posting = 7 text_not_found = 8 wrong_bukrs = 9 wrong_gsber = 10 wrong_katyp = 11 cca_not_active = 12 OTHERS = 13.

DOCHEADER_COMP_CODE_WITH_POPUP CALL FUNCTION 'DOCHEADER_COMP_CODE_WITH_POPUP' EXPORTING i_bukrs = ld_bukrs i_status = '1' IMPORTING e_bukrs = ld_bukrs_new EXCEPTIONS canceled = 1 OTHERS = 2.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-007 diagnose_object = ' ' text_question = text-008 text_button_1 = text-009 icon_button_1 = ' ' text_button_2 = text-010 icon_button_2 = ' ' default_button = '1' display_cancel_button = 'X' userdefined_f1_help = ' ' start_column = 25 start_row = 6 popup_type = ' ' iv_quickinfo_button_1 = ld_quick1 iv_quickinfo_button_2 = ld_quick2 IMPORTING answer = ld_answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

FAGL_SKF_LAYOUT_WITH_POPUP CALL FUNCTION 'FAGL_SKF_LAYOUT_WITH_POPUP' EXPORTING i_layout = ld_layou IMPORTING e_layout = ld_layou_new EXCEPTIONS canceled = 1 OTHERS = 2.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-001 diagnose_object = ' ' text_question = text-002 text_button_1 = text-003 icon_button_1 = ' ' text_button_2 = text-004 icon_button_2 = ' ' default_button = '1' display_cancel_button = 'X' userdefined_f1_help = ' ' start_column = 25 start_row = 6 popup_type = ' ' iv_quickinfo_button_1 = ld_quick1 iv_quickinfo_button_2 = ld_quick2 IMPORTING answer = ld_answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

FAGL_GET_FIELDS_FROM_SCENARIO CALL FUNCTION 'FAGL_GET_FIELDS_FROM_SCENARIO' EXPORTING id_bukrs = id_bukrs IMPORTING et_fieldlist = lt_fieldlist.

FAGL_GET_ALL_LEDGERS_IN_BUKRS CALL FUNCTION 'FAGL_GET_ALL_LEDGERS_IN_BUKRS' EXPORTING i_bukrs = faglskf_head-bukrs IMPORTING et_ledgers = lst_ledger et_rollup_ledgers = lst_ledger_roll.

FAGL_GET_LEADING_LEDGER





CALL FUNCTION 'FAGL_GET_LEADING_LEDGER' IMPORTING e_rldnr = ld_leading_ledger EXCEPTIONS not_found = 1 more_than_one = 2 OTHERS = 3.

G_GET_ORGANIZATIONAL_DATA CALL FUNCTION 'G_GET_ORGANIZATIONAL_DATA' EXPORTING i_rldnr = ld_leading_ledger i_orgunit = ld_bukrs IMPORTING organizational_info = ls_glx_org_info EXCEPTIONS no_info_found = 1 error_in_setup = 2 error_in_depld = 3 OTHERS = 4.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = sy-datum i_periv = ls_glx_org_info-periv IMPORTING e_buper = ld_buper e_gjahr = ld_gjahr EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.

FIRST_DAY_IN_PERIOD_GET CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = ld_gjahr i_periv = ls_glx_org_info-periv i_poper = ld_buper IMPORTING e_date = ld_datab EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 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 FAGLSKF_POST_LOCAL or its description.