FAGL_PLAN_ITEMS_GL is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for When the update of plan line items is activated in the system, the system also creates line item documents for each change made to plan totals records...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter FAGL_PLAN_ITEMS_GL into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
FAGLP03 - Display Plan Line Items
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.
Selection Text: PA_BUKRS = D .
Selection Text: PA_DVAR = D .
Selection Text: PA_PAGGR = D .
Selection Text: PA_RLDNR = D .
Selection Text: PA_RVERS = D .
Selection Text: PA_RYEAR = D .
Selection Text: SO_DOCNR = D .
Selection Text: SO_POPER = D .
Selection Text: SO_RACCT = D .
Selection Text: SO_KSTAR = D .
Title: Plan Line Items
Text Symbol: 001 = Plan Line Items
Text Symbol: ACT = Active
Text Symbol: DIS = Display Options
Text Symbol: FSE = Custom Selections
Text Symbol: SEL = Selection Criteria
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
FAGL_AUTHORITY_LEDGER call function 'FAGL_AUTHORITY_LEDGER' exporting i_bukrs = i_bukrs i_rldnr = i_rldnr * I_LDGRP = i_actvt = '03' i_rrcty = '1' i_rvers = i_rvers exceptions no_authority = 1 others = 2.
FAGL_AUTHORITY_LEDGER call function 'FAGL_AUTHORITY_LEDGER' exporting i_bukrs = i_bukrs i_rldnr = i_rldnr * I_LDGRP = i_actvt = '03' i_rrcty = '3' i_rvers = i_rvers exceptions no_authority = 1 others = 2.
G_GLU1_ITEMS_SELECT call function 'G_GLU1_ITEMS_SELECT' exporting i_ledger = i_rldnr i_selection = lt_sel i_periodagg = ld_per_aggr changing c_t_items = lt_item exceptions not_found = 1 others = 2.
FAGL_CHECK_AUTHORITY_SUM_TABLE call function 'FAGL_CHECK_AUTHORITY_SUM_TABLE' exporting it_fields = lt_fieldname id_actvt = '03' changing it_data = lt_item exceptions no_authority = 1 others = 2.
G_GLU1_PLAN_ITEMS_DISPLAY call function 'G_GLU1_PLAN_ITEMS_DISPLAY' exporting i_ledger = i_rldnr i_items = lt_item i_cwcode = 'X' i_text = ld_text i_selection = lt_sel i_variant = i_variant exceptions internal_error = 1 error_tp_authority = 2 no_info_found = 3 others = 4.
RSTI_APPL_STACK_POP call function 'RSTI_APPL_STACK_POP' importing i_rec = ls_rec exceptions appl_stack_not_initialized = 1.
RSTI_SELECTION_IMPORT call function 'RSTI_SELECTION_IMPORT' tables it_sel = lt_sel it_fields = lt_fields exceptions no_selection_data = 1 others = 2.
RSTI_APPL_STACK_INITIALIZE call function 'RSTI_APPL_STACK_INITIALIZE' exporting e_tool = ls_rec-rtool e_onam = ls_rec-ronam.
RGRE_ERGSL_TO_RACCT_CONVERT call function 'RGRE_ERGSL_TO_RACCT_CONVERT' exporting i_bs_version = ld_versn i_bs_item = ld_ergsl tables t_accounts = lt_account exceptions bs_version_not_exist = 1 others = 2.
FREE_SELECTIONS_INIT call function 'FREE_SELECTIONS_INIT' exporting kind = 'T' expressions = pa_sel-texpr importing selection_id = ld_selid where_clauses = pa_sel-clauses expressions = pa_sel-texpr field_ranges = pa_sel-trange number_of_active_fields = pa_num tables tables_tab = lt_tab fields_tab = lt_fld fields_not_selected = lt_fld_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 = ld_selid title = text-fse tree_visible = ' ' importing where_clauses = pa_sel-clauses expressions = pa_sel-texpr field_ranges = pa_sel-trange number_of_active_fields = pa_num tables fields_tab = lt_fld fields_not_selected = lt_fld_not exceptions internal_error = 1 selid_not_found = 2 illegal_status = 3 others = 0.
DYNP_VALUES_READ call function 'DYNP_VALUES_READ' exporting dyname = sy-repid dynumb = sy-dynnr tables dynpfields = lt_dynpfield.
FAGL_GET_REPORTING_FIELDS call function 'FAGL_GET_REPORTING_FIELDS' exporting i_rldnr = ld_rldnr importing et_fields = lt_reporting_field et_dfies = lt_dfies_reporting_field.
FREE_SELECTIONS_RANGE_2_EX call function 'FREE_SELECTIONS_RANGE_2_EX' exporting field_ranges = pa_sel-trange importing expressions = pa_sel-texpr.
FREE_SELECTIONS_RANGE_2_WHERE call function 'FREE_SELECTIONS_RANGE_2_WHERE' exporting field_ranges = pa_sel-trange importing where_clauses = pa_sel-clauses.
DYNP_VALUES_READ call function 'DYNP_VALUES_READ' exporting dyname = sy-repid dynumb = sy-dynnr tables dynpfields = lt_dynpfield.
FAGL_CHECK_GLFLEX_ACTIVE call function 'FAGL_CHECK_GLFLEX_ACTIVE' importing e_glflex_active = ld_ngl_active.
FAGL_BUKRS_ACTIVE_IN_CLIENT call function 'FAGL_BUKRS_ACTIVE_IN_CLIENT' importing e_glflex_active = ld_ngl_active.
call function 'REUSE_ALV_VARIANT_F4' exporting is_variant = ls_variant i_save = 'A' "search all variants importing e_exit = ld_exit es_variant = ls_variant.
REUSE_ALV_VARIANT_DEFAULT_GET call function 'REUSE_ALV_VARIANT_DEFAULT_GET' exporting i_save = 'A' changing cs_variant = ls_variant exceptions wrong_input = 1 not_found = 2 program_error = 3 others = 4.
REUSE_ALV_VARIANT_DEFAULT_GET call function 'REUSE_ALV_VARIANT_DEFAULT_GET' exporting i_save = space changing cs_variant = ls_variant exceptions wrong_input = 1 not_found = 2 program_error = 3 others = 4.
REUSE_ALV_VARIANT_EXISTENCE call function 'REUSE_ALV_VARIANT_EXISTENCE' exporting i_save = 'A' changing cs_variant = ls_variant.
DD_F4_FOR_ROLLNAME call function 'DD_F4_FOR_ROLLNAME' exporting rollname = 'FAGL_RLDNR' importing rc = ld_rc tables return_values = lt_retval.
DOCU_CALL call function 'DOCU_CALL' exporting displ = 'X' displ_mode = '2' id = 'DE' langu = sy-langu object = 'FAGL_RLDNR' exceptions others = 1.
RSTI_SELECTION_IMPORT call function 'RSTI_SELECTION_IMPORT' tables it_sel = lt_sels it_fields = lt_fields exceptions no_selection_data = 1 others = 2.
G_SET_TREE_IMPORT call function 'G_SET_TREE_IMPORT' exporting setid = ld_setid tables set_values = lt_setvalues.
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_PLAN_ITEMS_GL or its description.