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

FAGL_SLDATA SAP ABAP INCLUDE - FAGLSLDATA







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

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_REP_LEDGER_WO_CHECK CALL FUNCTION 'FAGL_GET_REP_LEDGER_WO_CHECK' EXPORTING i_ldgrp = gd_ldgrp IMPORTING e_rep_ledger = ld_rep_ldgr.

FAGL_GET_TABLENAMES CALL FUNCTION 'FAGL_GET_TABLENAMES' EXPORTING i_ledger = ld_rep_ldgr IMPORTING es_tabnames = ls_tab.

FAGL_GET_TABLENAMES CALL FUNCTION 'FAGL_GET_TABLENAMES' EXPORTING i_ledger = id_rldnr IMPORTING es_tabnames = ls_tab.

G_TABLE_OPEN_CURSOR CALL FUNCTION 'G_TABLE_OPEN_CURSOR' EXPORTING i_tabname = ls_tab-tot_table "n1351795 i_selection = lt_selection i_aggregation = gusl_c_true IMPORTING e_cursor = ld_cursor.

G_TABLE_FETCH CALL FUNCTION 'G_TABLE_FETCH' EXPORTING i_cursor = ld_cursor CHANGING c_t_glu1 = lt_glu1 EXCEPTIONS no_more_data = 1 invalid_cursor = 2 invalid_fetch = 3 OTHERS = 4.

G_TOTALS_SELECT_WITH_CURRENCY * CALL FUNCTION 'G_TOTALS_SELECT_WITH_CURRENCY' * EXPORTING * I_LEDGER = P_SL ** i_zscode = zs_code * i_selection = lT_SELECTION * I_LEDGERFIELDS = SL_T_F ** i_period_agg = 'X' "saldiert schon ! * IMPORTING * E_T_TOTALS = lt_glu1 * CHANGING * c_t_fieldcat = sl_t_f * EXCEPTIONS * NO_DATA_FOUND = 1 * OTHERS = 4.

G_GLU1_TO_AC_DOC_TRANSFORM * CALL FUNCTION 'G_GLU1_TO_AC_DOC_TRANSFORM' * TABLES * T_GLU1 = lt_glu1 * t_acccr = t_acccr * T_ACCIT = t_accit.

FI_ACC_TO_DOC_TRANSFORM * call function 'FI_ACC_TO_DOC_TRANSFORM' * tables * t_bseg = t_bseg * t_bkpf = t_bkpf * t_accit = T_accit.

G_GET_ORGANIZATIONAL_DATA CALL FUNCTION 'G_GET_ORGANIZATIONAL_DATA' EXPORTING i_rldnr = p_sl i_orgunit = ibukrs * JOIN_OF_VALUTYP_AND_CURT = 'X' * SEND_ERROR_WHEN_DEPLD = ' ' IMPORTING organizational_info = lsl_org EXCEPTIONS no_info_found = 1 error_in_setup = 2 error_in_depld = 3 OTHERS = 4.

G_PERIOD_GET CALL FUNCTION 'G_PERIOD_GET' EXPORTING company = ibukrs date = stichtag * GLOBAL_COMPANY = ' ' ledger = p_sl variant = lsl_org-periv IMPORTING anzbp = ld_anzbp anzsp = ld_anzsp period = eperiod year = eyear * VARIANT = EXCEPTIONS ledger_not_assigned_to_company = 1 period_not_defined = 2 variant_not_defined = 3 OTHERS = 4.

GET_FIELDTAB * CALL FUNCTION 'GET_FIELDTAB' * EXPORTING * TABNAME = 'SAPF100_OUTIN' * TABLES * FIELDTAB = INTTAB * EXCEPTIONS * OTHERS = 1.

G_FIELD_READ CALL FUNCTION 'G_FIELD_READ' EXPORTING table = ld_tab fieldname = ld_field IMPORTING field_attr = ls_dfies EXCEPTIONS not_found = 1 OTHERS = 2.

FUNCTION_EXISTS *CALL FUNCTION 'FUNCTION_EXISTS' * EXPORTING * FUNCNAME = 'K_PCA_GET_BALANCE_FLAG' * exceptions * FUNCTION_NOT_EXIST = 1 * OTHERS = 2.

K_PCA_GET_BALANCE_FLAG *CALL FUNCTION 'K_PCA_GET_BALANCE_FLAG' * EXPORTING * I_BUKRS = ibukrs * IMPORTING * E_BIACT = eflag * EXCEPTIONS * OTHERS = 7.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING * i_program_name = h_repid * i_internal_tabname = 'gt_fagl_fc' * i_inclname = h_repid i_structure_name = 'GLU1' i_client_never_display = 'X' i_bypassing_buffer = 'X' CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS OTHERS = 3.



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