SAP Reports / Programs

FAGL_FILL_COST_ELEM SAP ABAP Report - New Gen. Ledger Accounting: Correction Program for the COST_ELEM Field







FAGL_FILL_COST_ELEM 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_FILL_COST_ELEM 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_FILL_COST_ELEM. "Basic submit
SUBMIT FAGL_FILL_COST_ELEM AND RETURN. "Return to original report after report execution complete
SUBMIT FAGL_FILL_COST_ELEM 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_ACTIV = Transaction (ACTIV)
Selection Text: P_AWTYP = Reference Transaction (AWTYP)
Selection Text: P_BUKRS = Company Code
Selection Text: P_LEDG = Ledger
Selection Text: P_RACCT = Account
Selection Text: P_YEAR = Fiscal Year
Title: New Gen. Ledger Accounting: Correction Program for the COST_ELEM Field
Text Symbol: 001 = Line items were converted
Text Symbol: 002 = Totals records converted


INCLUDES used within this REPORT FAGL_FILL_COST_ELEM

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:

FAGL_GET_TABLENAMES CALL FUNCTION 'FAGL_GET_TABLENAMES' EXPORTING i_ledger = p_ledg IMPORTING es_tabnames = gs_tabnames.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

G_UPDATE_TOTALS CALL FUNCTION 'G_UPDATE_TOTALS' EXPORTING i_record = i_renumber_obj = 'X' i_tabname = gs_tabnames-tot_table.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

G_GET_ORGANIZATIONAL_DATA CALL FUNCTION 'G_GET_ORGANIZATIONAL_DATA' EXPORTING I_RLDNR = id_rldnr I_ORGUNIT = id_bukrs IMPORTING ORGANIZATIONAL_INFO = ls_org_info EXCEPTIONS OTHERS = 4.

G_POSTING_DATE_OF_YEAR_GET CALL FUNCTION 'G_POSTING_DATE_OF_YEAR_GET' EXPORTING VARIANT = ls_org_info-periv YEAR = id_ryear IMPORTING FROM_DATE = ld_from_date TO_DATE = ld_to_date EXCEPTIONS OTHERS = 3.

KOKRS_GET_FROM_BUKRS CALL FUNCTION 'KOKRS_GET_FROM_BUKRS' EXPORTING I_BUKRS = id_bukrs IMPORTING E_KOKRS = ld_kokrs EXCEPTIONS others = 1.

RK_KSTAR_CHECK CALL FUNCTION 'RK_KSTAR_CHECK' EXPORTING DATUM = ld_from_date KOKRS = ld_kokrs KSTAR = ld_cost_elem IMPORTING V_CSKB = ls_cskbv EXCEPTIONS kstar_not_found = 2 OTHERS = 5.

RK_KSTAR_CHECK CALL FUNCTION 'RK_KSTAR_CHECK' EXPORTING DATUM = ld_to_date KOKRS = ld_kokrs KSTAR = ld_cost_elem IMPORTING V_CSKB = ls_cskbv EXCEPTIONS kstar_not_found = 2 OTHERS = 5.

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