FAGL_CHECK_DOCUMENT_SPLIT 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 apply your current Customizing settings for document splitting in your analysis of the documents that have already been posted...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_CHECK_DOCUMENT_SPLIT into the relevant SAP transactions such as SE38 or SE80
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: S_HKONT = D .
Selection Text: S_CPUDT = D .
Selection Text: S_BLART = D .
Selection Text: S_BELNR = D .
Selection Text: P_GJAHR = D .
Selection Text: P_BUKRS = D .
Title: Check on Document Splitting Regarding Current Customizing Settings
Text Symbol: 030 = ACCIT Table
Text Symbol: 031 = ACCCR Table
Text Symbol: 032 = G/L Account
Text Symbol: 034 = WRBTR
Text Symbol: 035 = Simulated
Text Symbol: 036 = Posted
Text Symbol: 037 = Document Status
Text Symbol: 038 = Document Overview
Text Symbol: 039 = Should the migrated documents be included in the analysis?
Text Symbol: 040 = Migrated Documents
Text Symbol: 050 = Transaction Crcy
Text Symbol: 051 = Local Curr.
Text Symbol: 052 = Group Currency
Text Symbol: 053 = Hard Curr.
Text Symbol: 054 = Index Curr.
Text Symbol: 055 = Global Company Curr.
Text Symbol: 100 = System Error
Text Symbol: 001 = Doc. Selection
Text Symbol: 003 = Docs with Errors
Text Symbol: 004 = Documents selected for
Text Symbol: 005 = - Company code:
Text Symbol: 006 = - Fiscal year:
Text Symbol: 007 = - Document range:
Text Symbol: 008 = - G/L account:
Text Symbol: 009 = _________________
Text Symbol: 010 = - Document type:
Text Symbol: 011 = Message Text
Text Symbol: 012 = Char.
Text Symbol: 013 = Value updated
Text Symbol: 014 = Val. simulated
Text Symbol: 015 = Company code -
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
FI_COMPANY_CODE_CHECK call function 'FI_COMPANY_CODE_CHECK' exporting i_bukrs = p_bukrs exceptions company_code = 1 others = 2.
POPUP_TO_CONFIRM call function 'POPUP_TO_CONFIRM' exporting titlebar = text-040 diagnose_object = 'FAGL_CHECK_DOC_MIG_TEXT' text_question = text-039 importing answer = g_answer exceptions text_not_found = 1 others = 2.
FAGL_MIG_ADJUST_MGPLN call function 'FAGL_MIG_ADJUST_MGPLN' exporting id_mgpln = gs_mig_rp_items-mgpln.
FAGL_MIG_ADJUST_MGPLN call function 'FAGL_MIG_ADJUST_MGPLN' exporting id_mgpln = gs_mig_rp_items-mgpln.
MESSAGES_INITIALIZE call function 'MESSAGES_INITIALIZE' importing e_identification = g_identification.
FAGL_SPL_SIM_PERFORM call function 'FAGL_SPL_SIM_PERFORM' exporting i_bukrs = gs_bkpf-bukrs i_belnr = gs_bkpf-belnr i_gjahr = gs_bkpf-gjahr.
MESSAGES_STOP call function 'MESSAGES_STOP' exporting i_identification = g_identification exceptions w_message = 1 i_message = 0 s_message = 0 a_message = 2 e_message = 3 others = 8.
MESSAGES_GIVE call function 'MESSAGES_GIVE' tables t_mesg = gt_mesg.
ICON_CREATE call function 'ICON_CREATE' exporting name = gc_icon_display info = text-025 importing result = gt_mesg_enh-compare.
MESSAGE_PREPARE call function 'MESSAGE_PREPARE' exporting msg_id = gt_mesg-arbgb msg_no = gt_mesg-txtnr msg_var1 = gt_mesg-msgv1 msg_var2 = gt_mesg-msgv2 msg_var3 = gt_mesg-msgv3 msg_var4 = gt_mesg-msgv4 importing msg_text = gt_mesg_enh-text_enh.
REUSE_ALV_GRID_DISPLAY call function 'REUSE_ALV_GRID_DISPLAY' exporting i_callback_program = sy-repid i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = 'USER_COMMAND' i_callback_top_of_page = 'TOP_OF_LIST' i_callback_html_top_of_page = 'HTML_TOP_OF_LIST' i_grid_title = l_grid_title is_layout = ls_layout it_fieldcat = lt_fieldcat i_default = 'X' i_save = 'A' is_variant = ls_variant is_print = ls_print i_html_height_top = l_height_top tables t_outtab = gt_mesg_enh.
HELP_OBJECT_SHOW call function 'HELP_OBJECT_SHOW' exporting dokclass = 'NA' doklangu = sy-langu dokname = l_dokna msg_var_1 = gt_mesg_enh-msgv1 msg_var_2 = gt_mesg_enh-msgv2 msg_var_3 = gt_mesg_enh-msgv3 msg_var_4 = gt_mesg_enh-msgv4 tables links = links.
FAGL_GET_BKPF call function 'FAGL_GET_BKPF' exporting i_bukrs = us_bkpf-bukrs i_belnr = us_bkpf-belnr i_gjahr = us_bkpf-gjahr importing e_bkpf = ls_bkpf.
FAGL_GET_BSEG call function 'FAGL_GET_BSEG' exporting i_bukrs = us_bkpf-bukrs i_belnr = us_bkpf-belnr i_gjahr = us_bkpf-gjahr importing et_bseg = lt_bseg.
FI_DOC_TO_ACC_TRANSFORM call function 'FI_DOC_TO_ACC_TRANSFORM' tables t_bkpf = lt_bkpf t_bseg = lt_bseg t_acchd = lt_acchd_old t_accit = lt_accit_old t_acccr = lt_acccr_old t_accit_ext = lt_accit_old_ex exceptions others = 1.
FAGL_SPL_ACCIT_GET call function 'FAGL_SPL_ACCIT_GET' exporting ib_sort = abap_true ib_bal_items = lv_bal_items importing eb_splexist = lv_splexist changing ct_acchd = lt_acchd_old ct_accit = lt_accit_old ct_accit_ex = lt_accit_old_ex ct_acccr = lt_acccr_old.
FAGL_GET_SIM_DATA call function 'FAGL_GET_SIM_DATA' importing spl_ana_data = gs_spl_sim_data.
DDIC_FIELDNAME_GET call function 'DDIC_FIELDNAME_GET' exporting iv_strucname = 'FAGL_GLT0_ACCIT_EXT' iv_fieldname = lv_fieldname changing cv_field_description = lv_field_description exceptions no_data = 1 others = 2.
MESSAGE_STORE call function 'MESSAGE_STORE' exporting msgty = 'E' msgv1 = space msgv2 = space msgv3 = space msgv4 = space arbgb = 'FAGL_ONLINE_SPLIT' txtnr = '006' exception_if_not_active = space.
REUSE_ALV_GRID_DISPLAY call function 'REUSE_ALV_GRID_DISPLAY' exporting i_callback_program = sy-repid i_callback_pf_status_set = 'SET_PF_STATUS_DEV' i_callback_user_command = 'USER_COMMAND_DEV' i_callback_top_of_page = 'TOP_OF_LIST_DEV' i_callback_html_top_of_page = 'HTML_TOP_OF_LIST_DEV' i_grid_title = l_grid_title it_fieldcat = lt_fieldcat_dev i_default = 'X' is_print = ls_print i_html_height_top = l_height_top i_screen_start_column = 2 i_screen_start_line = 2 i_screen_end_column = 140 i_screen_end_line = 35 tables t_outtab = lt_doc_deviation.
LVC_FIELDCATALOG_MERGE call function 'LVC_FIELDCATALOG_MERGE' exporting i_structure_name = 'FAGL_SPLINFO' i_bypassing_buffer = 'X' changing ct_fieldcat = lt_fieldcat_exp.
DD_DTEL_GET call function 'DD_DTEL_GET' exporting langu = sy-langu roll_name = u_rollname tables dd04t_tab_a = lt_dd04t.
FAGL_MIG_GET_MGPLN_FOR_BUKRS call function 'FAGL_MIG_GET_MGPLN_FOR_BUKRS' exporting it_bukrs = lt_bukrs importing et_fagl_mig_002 = lt_fagl_mig_002 exceptions no_data_found = 1 others = 2.
FAGL_GET_INFO_FROM_LEDGER call function 'FAGL_GET_INFO_FROM_LEDGER' exporting i_budat = ls_mig_rp_items-cpudt i_rldnr = ls_fagl_mig_002-rldnr i_bukrs = ls_fagl_mig_002-bukrs importing e_poper = l_mig_period e_gjahr = l_mig_gjahr.
FAGL_MIG_OPITEMS_GET call function 'FAGL_MIG_OPITEMS_GET' exporting id_mgpln = ls_fagl_mig_002-mgpln id_bukrs = ls_fagl_mig_002-bukrs id_status_next = 'ZZ' importing ets_opitem_keys = lt_mig_open_items exceptions no_items_found = 1 invalid_input = 2 others = 3.
FAGL_MIG_RPITEMS_SELECT call function 'FAGL_MIG_RPITEMS_SELECT' exporting id_mgpln = u_mgpln ir_bukrs = ltr_bukrs ir_gjahr = ltr_gjahr id_status_next = 'ZZ' importing et_rpkey = ct_mig_rp_items.
G_BEB_GET_CONTROL_TAB call function 'G_BEB_GET_CONTROL_TAB' exporting i_method = gs_spl_sim_data-splitmethd i_process = gs_spl_sim_data-process i_variant = gs_spl_sim_data-procvariant importing e_t8g20 = ls_t8g20 tables t_t8g21 = lt_t8g21 t_t8g21a = lt_t8g21a t_t8g22 = lt_t8g22 exceptions others = 1.
MESSAGE_STORE call function 'MESSAGE_STORE' exporting msgty = 'E' msgv1 = space msgv2 = space msgv3 = space msgv4 = space arbgb = 'FAGL_ONLINE_SPLIT' txtnr = '002' exception_if_not_active = space.
MESSAGE_STORE call function 'MESSAGE_STORE' exporting msgty = 'E' msgv1 = space msgv2 = space msgv3 = space msgv4 = space arbgb = 'FAGL_ONLINE_SPLIT' txtnr = '003' exception_if_not_active = space.
MESSAGE_STORE call function 'MESSAGE_STORE' exporting msgty = 'E' msgv1 = space msgv2 = space msgv3 = space msgv4 = space arbgb = 'FAGL_ONLINE_SPLIT' txtnr = '004' exception_if_not_active = space.
MESSAGE_STORE call function 'MESSAGE_STORE' exporting msgty = 'E' msgv1 = space msgv2 = space msgv3 = space msgv4 = space arbgb = 'FAGL_ONLINE_SPLIT' txtnr = '005' exception_if_not_active = space.
FAGL_GET_ALL_TABLES call function 'FAGL_GET_ALL_TABLES' importing et_tabnames = lt_fagl_tabnames.
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_CHECK_DOCUMENT_SPLIT or its description.
FAGL_CHECK_DOCUMENT_SPLIT - Check on Document Splitting Regarding Current Customizing Settings FAGL_CHECK_DOCUMENT_SPLIT - Check on Document Splitting Regarding Current Customizing Settings FAGL_CHECK_DOCUMENT_CHAIN_SIZE - Document Chain Analysis FAGL_CHECK_DOCUMENT_CHAIN_SIZE - Document Chain Analysis FAGL_CHECK_CUST_DOC_TYPE - Check on Business Transaction Assignment for Document Type FAGL_CHECK_CUST_DOC_TYPE - Check on Business Transaction Assignment for Document Type