SAP Reports / Programs

FAGL_DELETE_RELOAD_LEDGERS SAP ABAP Report - Delete and Post Subsequently to New General Ledger Accounting







FAGL_DELETE_RELOAD_LEDGERS 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 FAGL_DELETE_RELOAD_LEDGERS 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 FAGL_DELETE_RELOAD_LEDGERS. "Basic submit
SUBMIT FAGL_DELETE_RELOAD_LEDGERS AND RETURN. "Return to original report after report execution complete
SUBMIT FAGL_DELETE_RELOAD_LEDGERS 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: SO_BUKRS = D .
Selection Text: SO_GJAHR = D .
Selection Text: SO_RLDNR = D .
Title: Delete and Post Subsequently to New General Ledger Accounting


INCLUDES used within this REPORT FAGL_DELETE_RELOAD_LEDGERS

INCLUDE RGFLPSTTOP . " GLOBAL DATA


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:

FAGL_CHECK_GLFLEX_ACTIVE CALL FUNCTION 'FAGL_CHECK_GLFLEX_ACTIVE' EXPORTING id_bukrs = ls_bukrs-bukrs IMPORTING e_glflex_active = ld_active_bukrs EXCEPTIONS error_in_setup = 1 OTHERS = 2.

G_GET_ORGANIZATIONAL_DATA CALL FUNCTION 'G_GET_ORGANIZATIONAL_DATA' EXPORTING i_rldnr = ld_lead_rldnr i_orgunit = ls_bukrs-bukrs IMPORTING organizational_info = ls_org_info_ll EXCEPTIONS no_info_found = 1 error_in_setup = 2 error_in_depld = 3 OTHERS = 4.

G_GET_ORGANIZATIONAL_DATA CALL FUNCTION 'G_GET_ORGANIZATIONAL_DATA' EXPORTING i_rldnr = ld_ledger_nl i_orgunit = ls_bukrs-bukrs IMPORTING organizational_info = ls_org_info EXCEPTIONS no_info_found = 1 error_in_setup = 2 error_in_depld = 3 OTHERS = 4.

G_POSTING_DATE_OF_YEAR_GET CALL FUNCTION 'G_POSTING_DATE_OF_YEAR_GET' EXPORTING variant = ls_org_info-periv year = ld_year IMPORTING from_date = lv_from_date to_date = lv_to_date EXCEPTIONS variant_not_defined = 1 year_not_defined = 2 OTHERS = 3.

FAGL_DELETE_LEDGER_COMPCODE CALL FUNCTION 'FAGL_DELETE_LEDGER_COMPCODE' EXPORTING id_rldnr = ld_ledger_nl id_bukrs = ls_bukrs-bukrs id_ryear = ld_year id_no_period_zero = 'X' EXCEPTIONS ledger_not_found = 1 no_data_found = 2 OTHERS = 3.

FAGL_SUBSEQ_POSTING CALL FUNCTION 'FAGL_SUBSEQ_POSTING' EXPORTING it_compcode_range = lt_ra_bukrs it_target_ledger = lt_current_ledger it_budat_range = lt_range_budat ib_process_splitter = space ib_check_records = space ib_test = space EXCEPTIONS error_message = 1 OTHERS = 2.

FAGL_SUBSEQ_POSTING CALL FUNCTION 'FAGL_SUBSEQ_POSTING' EXPORTING it_compcode_range = lt_ra_bukrs it_fiscyear_range = lt_ra_year it_target_ledger = lt_current_ledger ib_process_splitter = space ib_check_records = space ib_test = space EXCEPTIONS error_message = 1 OTHERS = 2.

G_MESS_GIVE_ERROR_PROTOCOL CALL FUNCTION 'G_MESS_GIVE_ERROR_PROTOCOL' IMPORTING et_error_position = lt_mess_error_position.

RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING CURR_REPORT = sy-repid TABLES SELECTION_TABLE = lt_rsparams.

G_UPDATE_T800HIST CALL FUNCTION 'G_UPDATE_T800HIST' EXPORTING I_OBJNAME = sy-repid TABLES T_RSPARAMS = lt_rsparams.



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