FAGL_MIG_SUBSEQ_POST_OPITEMS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this program to create entries in the line item tables and totals tables in New General Ledger Accounting for the open items to be transferred during migration...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_MIG_SUBSEQ_POST_OPITEMS 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_MIG_REPOST_OP - Transfer Open Items to New GL
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_BELNR = D .
Selection Text: P_TEST = D .
Selection Text: P_S_OUT = D .
Selection Text: P_RFCDST = D .
Selection Text: P_M_OUT = D .
Selection Text: P_MGPLN = D .
Selection Text: P_L_OUT = D .
Selection Text: P_GJAHR = D .
Selection Text: P_BUKRS = D .
Selection Text: PC_PAR = D .
Selection Text: P_PROC = Number of Parallel Processes
Selection Text: P_PACKSI = Package Size
Title: Update Open Items to New General Ledger Accounting
Text Symbol: 321 = Number
Text Symbol: 320 = Text
Text Symbol: 310 = Open Items with Errors
Text Symbol: 300 = Open Items Processed Successfully
Text Symbol: 201 = Upd. Run
Text Symbol: 200 = Test Run
Text Symbol: 101 = Transfer of Docs to New General Ledger Accounting: Update Run
Text Symbol: 100 = Transfer of Docs to New General Ledger Accounting: Test Run
Text Symbol: 006 = Parallel Processing
Text Symbol: 004 = Output Control
Text Symbol: 003 = Transfer Opening Bal.(Act.Data) to Gen. Ledger
Text Symbol: 002 = Control Data
Text Symbol: 001 = Other Selections
INCLUDE FAGL_MIG_CONSTANTS.
INCLUDE FAGL_MIG_ICL_BAL.
INCLUDE FAGL_MIG_ICL_PARALLEL.
No SAP DATABASE tables are accessed within this REPORT code!
FAGL_SET_GLFLEX_ACT_FOR_INTMOD call function 'FAGL_SET_GLFLEX_ACT_FOR_INTMOD' exporting id_active = abap_true.
FAGL_SET_STATUS_OF_MIGRATION CALL FUNCTION 'FAGL_SET_STATUS_OF_MIGRATION' "note 1229202 EXPORTING i_mgpln = p_mgpln i_old_year_closed = 'X' EXCEPTIONS status_existing = 4 OTHERS = 5.
ENQUEUE_EFAGL_OPITEM call function 'ENQUEUE_EFAGL_OPITEM' exporting mode_fagl_mig_opitems = 'E' mandt = sy-mandt mgpln = p_mgpln.
DEQUEUE_EFAGL_OPITEM call function 'DEQUEUE_EFAGL_OPITEM' exporting mode_fagl_mig_opitems = 'E' mandt = sy-mandt mgpln = p_mgpln.
ENQUEUE_EFAGL_OPITEM call function 'ENQUEUE_EFAGL_OPITEM' exporting mode_fagl_mig_opitems = 'S' mandt = sy-mandt mgpln = p_mgpln.
G_GLIN_SET_CARRY_FORWARD_YEAR call function 'G_GLIN_SET_CARRY_FORWARD_YEAR' exporting id_carry_fwd_year = gd_migyear.
FAGL_GET_SPLIT_STATUS call function 'FAGL_GET_SPLIT_STATUS' exporting i_mgpln = p_mgpln importing e_split_active = gb_split_relevant exceptions mgpln_not_found = 1 invalid_input = 2.
FAGL_MIG_OPITEMS_SELECT call function 'FAGL_MIG_OPITEMS_SELECT' exporting id_mgpln = p_mgpln id_bukrs = gd_bukrs ir_belnr = s_belnr[] id_gjahr = p_gjahr id_status_next = con_final_status id_status_prev = con_split_status importing ets_opitem_keys = gts_opitems exceptions no_items_found = 1 error_message = 2.
FAGL_MIG_OPITEMS_SELECT call function 'FAGL_MIG_OPITEMS_SELECT' exporting id_mgpln = p_mgpln id_bukrs = gd_bukrs ir_belnr = s_belnr[] id_gjahr = p_gjahr id_status_next = con_final_status importing ets_opitem_keys = gts_opitems exceptions no_items_found = 1 error_message = 2.
FAGL_MIG_OPITEMS_POST call function 'FAGL_MIG_OPITEMS_POST' starting new task gd_process_name destination in group p_rfcdst performing rfc_result on end of task exporting it_items = gt_oi_package it_target_ledger = gt_target_ledger id_migyear = gd_migyear ib_process_splitter = abap_false ib_update_glflex = abap_true ib_check_records = gb_check_records ib_test = p_test ib_provide_log = p_l_out exceptions communication_failure = 1 system_failure = 2 resource_failure = 3 others = 4.
FAGL_MIG_OPITEMS_POST call function 'FAGL_MIG_OPITEMS_POST' exporting it_items = gts_opitems it_target_ledger = gt_target_ledger ib_process_splitter = abap_false ib_update_glflex = abap_true ib_check_records = gb_check_records ib_test = p_test ib_provide_log = p_l_out importing e_cnt_ok = g_cnt_ok e_cnt_err = g_cnt_err et_opitems_err = gt_opitems_err et_opitem = gt_opitems_log.
DEQUEUE_EFAGL_OPITEM call function 'DEQUEUE_EFAGL_OPITEM' exporting mode_fagl_mig_opitems = 'S' mandt = sy-mandt mgpln = p_mgpln.
DEQUEUE_EFAGL_OPITEM call function 'DEQUEUE_EFAGL_OPITEM' exporting mode_fagl_mig_opitems = 'S' mandt = sy-mandt mgpln = p_mgpln.
FAGL_MIG_OPITEMS_OUTPUT_ALV call function 'FAGL_MIG_OPITEMS_OUTPUT_ALV' exporting ib_test = p_test ib_header_only = p_s_out ib_header_with_err = p_m_out ib_complete_list = p_l_out i_cnt_err = g_cnt_err_sum i_cnt_ok = g_cnt_ok_sum it_opitems_err = gt_opitems_err it_opitems_log = gt_opitems_log.
FAGL_GET_DATA_FOR_MGPLN call function 'FAGL_GET_DATA_FOR_MGPLN' exporting i_mgpln = p_mgpln importing et_fagl_mig_001 = gt_fagl_mig_001 e_migdt = gd_migdt exceptions mgpln_not_found = 1 error_message = 2.
FAGL_GET_BUKRS_LEDGER_IN_MGPLN call function 'FAGL_GET_BUKRS_LEDGER_IN_MGPLN' exporting i_mgpln = p_mgpln importing et_fagl_mig_002 = gt_fagl_mig_002 et_bukrs = gt_bukrs et_rldnr = gt_rldnr et_bukrs_rldnr = gt_bukrs_rldnr exceptions invalid_input = 1 no_data_found = 2 error_message = 3.
G_GET_ORGANIZATIONAL_DATA call function 'G_GET_ORGANIZATIONAL_DATA' exporting i_rldnr = gs_fagl_mig_002-rldnr i_orgunit = gs_fagl_mig_002-bukrs importing organizational_info = gs_org_info exceptions no_info_found = 1 error_in_setup = 2 error_in_depld = 3 error_message = 4.
G_PERIOD_GET call function 'G_PERIOD_GET' exporting date = gd_migdt variant = gs_org_info-periv importing year = gd_migyear exceptions ledger_not_assigned_to_company = 1 period_not_defined = 2 variant_not_defined = 3 error_message = 4.
/NGL/GET_MGPLN_FROM_PACKID
call function '/NGL/GET_MGPLN_FROM_PACKID' "#EC EXISTS exporting i_packid = p_pack importing es_mgpln = ls_fagl_mig_001 exceptions mgpln_not_found = 1 packid_not_found = 2 packid_not_valid_for_newgl = 3 packid_not_assigned = 4 too_many_mgpln_assigned = 5 others = 6.
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_MIG_SUBSEQ_POST_OPITEMS or its description.
FAGL_MIG_SUBSEQ_POST_OPITEMS - Update Open Items to New General Ledger Accounting FAGL_MIG_SUBSEQ_POST_OPITEMS - Update Open Items to New General Ledger Accounting FAGL_MIG_SUBSEQ_POST_ALV - FAGLMIGSUBSEQPOSTALV FAGL_MIG_SUBSEQ_POST - Update Documents to New General Ledger Accounting FAGL_MIG_SUBSEQ_POST - Update Documents to New General Ledger Accounting FAGL_MIG_SELECTION - Determine Worklist for Migration Objects