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

FAGL_MIG_SUBSEQ_POST SAP ABAP Report - Update Documents to New General Ledger Accounting







FAGL_MIG_SUBSEQ_POST is a standard Executable ABAP Report 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_MIG_SUBSEQ_POST into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

FAGL_MIG_REPOST - Subsequent Posting in Migration


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_MIG_SUBSEQ_POST. "Basic submit
SUBMIT FAGL_MIG_SUBSEQ_POST AND RETURN. "Return to original report after report execution complete
SUBMIT FAGL_MIG_SUBSEQ_POST VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: S_MONAT = D .
Selection Text: S_GJAHR = D .
Selection Text: S_BUKRS = D .
Selection Text: S_BELNR = 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_TEST = Test Run
Selection Text: P_PROC = Number of Parallel Processes
Selection Text: P_PACKSI = Package Size
Selection Text: PC_PAR = D .
Title: Update Documents 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 = Update Run
Text Symbol: 200 = Test Run
Text Symbol: 101 = Transfer of Documents to New General Ledger Accounting: Update Run
Text Symbol: 100 = Transfer of Documents to New General Ledger Accounting: Test Run
Text Symbol: 006 = Parallel Processing
Text Symbol: 004 = Output Control
Text Symbol: 003 = Transfer of Opening Balance Actual Data to General Ledger
Text Symbol: 002 = Control Data
Text Symbol: 001 = Further Selections


INCLUDES used within this REPORT FAGL_MIG_SUBSEQ_POST

INCLUDE FAGL_MIG_CONSTANTS.
INCLUDE FAGL_MIG_ICL_BAL.
INCLUDE FAGL_MIG_SUBSEQ_POST_PARR.


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_SET_GLFLEX_ACT_FOR_INTMOD CALL FUNCTION 'FAGL_SET_GLFLEX_ACT_FOR_INTMOD' EXPORTING id_active = abap_true.

FAGL_GET_BUKRS_LEDGER_IN_MGPLN CALL FUNCTION 'FAGL_GET_BUKRS_LEDGER_IN_MGPLN' EXPORTING i_mgpln = p_mgpln IMPORTING et_bukrs = gt_bukrs et_rldnr = gt_rldnr et_bukrs_rldnr = gt_bukrs_rldnr EXCEPTIONS invalid_input = 1 no_data_found = 2 OTHERS = 3.

ENQUEUE_EFAGL_RPITEM CALL FUNCTION 'ENQUEUE_EFAGL_RPITEM' EXPORTING mode_fagl_mig_rpitems = 'E' mandt = sy-mandt mgpln = p_mgpln.

DEQUEUE_EFAGL_RPITEM CALL FUNCTION 'DEQUEUE_EFAGL_RPITEM' EXPORTING mode_fagl_mig_rpitems = 'E' mandt = sy-mandt mgpln = p_mgpln.

ENQUEUE_EFAGL_RPITEM CALL FUNCTION 'ENQUEUE_EFAGL_RPITEM' EXPORTING mode_fagl_mig_rpitems = 'S' mandt = sy-mandt mgpln = p_mgpln.

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_RPITEMS_SELECT CALL FUNCTION 'FAGL_MIG_RPITEMS_SELECT' EXPORTING id_mgpln = p_mgpln ir_monat = s_monat[] ir_bukrs = gt_bukrs_range ir_belnr = s_belnr[] ir_gjahr = s_gjahr[] id_status_next = con_final_status IMPORTING et_rpkey = gt_rpitem.

FAGL_MIG_RPITEMS_SELECT CALL FUNCTION 'FAGL_MIG_RPITEMS_SELECT' EXPORTING id_mgpln = p_mgpln ir_monat = s_monat[] ir_bukrs = gt_bukrs_range ir_belnr = s_belnr[] ir_gjahr = s_gjahr[] id_status_next = con_final_status id_status_prev = con_split_status IMPORTING et_rpkey = gt_rpitem.

FAGL_MIG_RPITEMS_POST CALL FUNCTION 'FAGL_MIG_RPITEMS_POST' STARTING NEW TASK gd_process_name DESTINATION IN GROUP p_rfcdst PERFORMING rfc_result ON END OF TASK EXPORTING it_items = gt_rp_package it_target_ledger = gt_target_ledger ib_process_splitter = abap_false ib_update_glflex = abap_true ib_check_records = abap_true ib_test = p_test ib_provide_log = p_l_out EXCEPTIONS communication_failure = 1 system_failure = 2 resource_failure = 3 OTHERS = 4.

FAGL_MIG_RPITEMS_POST CALL FUNCTION 'FAGL_MIG_RPITEMS_POST' EXPORTING it_items = gt_rpitem it_target_ledger = gt_target_ledger ib_process_splitter = abap_false ib_update_glflex = abap_true ib_check_records = abap_true ib_test = p_test ib_provide_log = p_l_out IMPORTING e_cnt_ok = g_cnt_ok e_cnt_err = g_cnt_err et_rpitems_err = gt_rpitems_err et_rpitem = gt_rpitems_log.

DEQUEUE_EFAGL_RPITEM CALL FUNCTION 'DEQUEUE_EFAGL_RPITEM' EXPORTING mode_fagl_mig_rpitems = 'S' mandt = sy-mandt mgpln = p_mgpln.

DEQUEUE_EFAGL_RPITEM CALL FUNCTION 'DEQUEUE_EFAGL_RPITEM' EXPORTING mode_fagl_mig_rpitems = 'S' mandt = sy-mandt mgpln = p_mgpln.

FAGL_MIG_RPITEMS_OUTPUT_ALV CALL FUNCTION 'FAGL_MIG_RPITEMS_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_rpitems_err = gt_rpitems_err it_rpitems_log = gt_rpitems_log.

/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.



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