FAGL_CL_MIG_OPENING_BALANCE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You can use this program to display the opening balance of cash-relevant accounts in the cash ledger and thereby activate the update of cash-relevant processes in this ledger...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_CL_MIG_OPENING_BALANCE into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
FAGL_CL_MIG_OB - Opening Balance in the Cash Ledger
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: P_LDGRP = D .
Selection Text: P_REBLD = D .
Selection Text: P_TEST = D .
Title: Cash Ledger Migration: Post Opening Balance on Cash Accounts
Text Symbol: 001 = Selection Data
Text Symbol: 002 = Ctrl Data
Text Symbol: 003 = Test Run
Text Symbol: 004 = Upd. Run
Text Symbol: 010 = Cash Ldr: Opening Balnce
FAGL_CL_MIG_CLASS_DEFINITION,
FAGL_CL_GLOBAL_DATA,
FAGL_CL_MIG_MSG_HANDLE_IMPL,
FAGL_CL_MIG_SERVICES_IMPL,
FAGL_CL_MIG_POSTING_IMPL.
No SAP DATABASE tables are accessed within this REPORT code!
FAGL_CHECK_GLFLEX_ACTIVE call function 'FAGL_CHECK_GLFLEX_ACTIVE' importing e_glflex_active = gv_glflex_active exceptions others = 1.
FAGL_GET_LEADING_LEDGER call function 'FAGL_GET_LEADING_LEDGER' importing e_rldnr = gv_leading_ledger exceptions not_found = 1 more_than_one = 2 others = 3.
FAGL_CL_CHECK_CL_ACTUALS call function 'FAGL_CL_CHECK_CL_ACTUALS' exporting iv_bukrs = ls_cash_accounts-bukrs exceptions cl_actuals_found = 1.
FAGL_CL_MIG_GET_MIG_STATE call function 'FAGL_CL_MIG_GET_MIG_STATE' exporting iv_bukrs = ls_cash_accounts-bukrs importing es_fagl_clmig_state = gs_fagl_clmig_state.
FAGL_CL_MIG_DELETE_OB call function 'FAGL_CL_MIG_DELETE_OB' exporting iv_bukrs = ls_cash_accounts-bukrs iv_test = p_test exceptions inconsistent_data = 1 no_db_update = 2 others = 3.
FAGL_CL_GET_ACCOUNT_BALANCE call function 'FAGL_CL_GET_ACCOUNT_BALANCE' exporting iv_rldnr = gv_leading_ledger iv_rbukrs = ls_cash_accounts-bukrs iv_racct = ls_cash_accounts-hkont importing et_acc_balance = gt_acc_balance exceptions configuration_error = 1 overflow_occured = 2 others = 3.
MESSAGES_INITIALIZE call function 'MESSAGES_INITIALIZE'.
FAGL_CL_LAST_CHECK call function 'FAGL_CL_LAST_CHECK' exporting it_accit = gt_accit_spl exceptions no_cl_update = 1 others = 2.
FAGL_CL_DOCUMENT_CREATE call function 'FAGL_CL_DOCUMENT_CREATE' exporting it_acchd = gt_acchd it_accit = gt_accit it_acccr = gt_acccr it_accit_ext_spl = gt_accit_ext_spl it_accit_spl = gt_accit_spl it_acccr_spl = gt_acccr_spl it_ausz_clr = gt_ausz_clr.
FAGL_CL_GET_ACC_DOCUMENT call function 'FAGL_CL_GET_ACC_DOCUMENT' importing et_acchd = gt_acchd et_accit = gt_accit_spl et_accit_ext = gt_accit_ext_spl et_acccr = gt_acccr_spl.
AC_DOCUMENT_GENERATE call function 'AC_DOCUMENT_GENERATE' importing e_awref = lv_awref tables t_acchd = gt_acchd t_accit = gt_accit_spl t_acccr = gt_acccr_spl t_accit_ext = gt_accit_ext_spl.
FAGL_CL_MIG_SET_MIG_STATE call function 'FAGL_CL_MIG_SET_MIG_STATE' exporting iv_bukrs = ls_bukrs_cl_active-bukrs iv_set_ob = abap_on iv_set_migdt = abap_on iv_set_cl_active = abap_on iv_migdt = gv_migdt exceptions wrong_customizing = 1 others = 2.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
FAGL_CL_MIG_OPENING_BALANCE - Cash Ledger Migration: Post Opening Balance on Cash Accounts FAGL_CL_MIG_OPENING_BALANCE - Cash Ledger Migration: Post Opening Balance on Cash Accounts FAGL_CL_MIG_OB_DISPLAY - Display Docs on the Opening Balance in the Cash Ledger FAGL_CL_MIG_OB_DISPLAY - Display Docs on the Opening Balance in the Cash Ledger FAGL_CL_MIG_MSG_HANDLE_IMPL - FAGLCLMIGMSGHANDLEIMPL FAGL_CL_MIG_CLASS_DEFINITION - FAGLCLMIGCLASSDEFINITION